mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-10-22 19:43:21 +00:00
coverity doesnt think we checked the bytes_read values enough. lets add a check
This commit is contained in:
1 parent
90d1fed1fa
commit
fb35a29ba0
1 file changed
+1
-1
+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