add NULL checks
This commit is contained in:
1 parent
e3429580fd
commit
57f8613b83
4 files changed
+46
No files matched your search
@@ -169,6 +169,12 @@ static bool RAMFUNC sniff_wait_for_commit(tag_t type) {
|
||||
uint8_t *receivedResp = BigBuf_calloc(MAX_FRAME_SIZE);
|
||||
uint8_t *receivedRespPar = BigBuf_calloc(MAX_PARITY_SIZE);
|
||||
|
||||
if (receivedCmd == NULL || receivedCmdPar == NULL ||
|
||||
receivedResp == NULL || receivedRespPar == NULL) {
|
||||
if (g_dbglevel >= DBG_ERROR) DbpString("hf doegox commit: failed to allocate buffers");
|
||||
goto out;
|
||||
}
|
||||
|
||||
uint8_t previous_data = 0;
|
||||
int maxDataLen = 0, dataLen;
|
||||
bool TagIsActive = false;
|
||||
|
||||
Reference in new issue
Block a user