mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 02:27:26 -07:00
coverity doesnt think we checked the bytes_read values enough. lets add a check
This commit is contained in:
parent
90d1fed1fa
commit
fb35a29ba0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue