mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
coverity doesnt think we checked the bytes_read values enough. lets add a check
This commit is contained in:
+1
-1
@@ -109,7 +109,7 @@ static int CmdNfcDecode(const char *Cmd) {
|
||||
uint8_t *dump = NULL;
|
||||
size_t bytes_read = 4096;
|
||||
res = pm3_load_dump(filename, (void **)&dump, &bytes_read, 4096);
|
||||
if (res != PM3_SUCCESS || dump == NULL) {
|
||||
if (res != PM3_SUCCESS || dump == NULL || bytes_read > 4096) {
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user