mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-07-31 03:50:45 -07:00
fix coverity 420050
This commit is contained in:
parent
0924cb30bb
commit
2401a0e27b
1 changed files with 1 additions and 5 deletions
|
@ -2777,11 +2777,7 @@ int pm3_load_dump(const char *fn, void **pdump, size_t *dumplen, size_t maxdumpl
|
|||
nfc_df_e foo = detect_nfc_dump_format(fn, true);
|
||||
if (foo == NFC_DF_MFC || foo == NFC_DF_MFU || foo == NFC_DF_PICOPASS) {
|
||||
|
||||
if (foo == NFC_DF_MFC) {
|
||||
*pdump = calloc(maxdumplen, sizeof(uint8_t));
|
||||
} else {
|
||||
*pdump = calloc(maxdumplen, sizeof(uint8_t));
|
||||
}
|
||||
*pdump = calloc(maxdumplen, sizeof(uint8_t));
|
||||
if (*pdump == NULL) {
|
||||
PrintAndLogEx(WARNING, "Fail, cannot allocate memory");
|
||||
return PM3_EMALLOC;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue