fix: possible bad null ref
This commit is contained in:
@@ -255,7 +255,7 @@ bool HexToBuffer(const char *errormsg, const char *hexvalue, uint8_t * buffer, s
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (buflen > maxbufferlen) {
|
if (buflen > maxbufferlen) {
|
||||||
PrintAndLog("%s HEX length (%d) more than %d", errormsg, *bufferlen, maxbufferlen);
|
PrintAndLog("%s HEX length (%d) more than %d", errormsg, (bufferlen) ? *bufferlen : -1, maxbufferlen);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user