Skip to content

Commit

Permalink
Merge branch 'master' of github.com:RfidResearchGroup/proxmark3
Browse files Browse the repository at this point in the history
  • Loading branch information
iceman1001 committed Jan 14, 2025
2 parents e59385a + cd2f9ce commit f13c074
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions client/src/fileutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -3048,10 +3048,16 @@ int pm3_load_dump(const char *fn, void **pdump, size_t *dumplen, size_t maxdumpl
switch (dt) {
case BIN: {
res = loadFile_safe(fn, ".bin", pdump, dumplen);
if (res == PM3_SUCCESS && *dumplen > maxdumplen) {
*dumplen = maxdumplen;
}
break;
}
case EML: {
res = loadFileEML_safe(fn, pdump, dumplen);
if (res == PM3_SUCCESS && *dumplen > maxdumplen) {
*dumplen = maxdumplen;
}
break;
}
case JSON: {
Expand Down Expand Up @@ -3080,6 +3086,9 @@ int pm3_load_dump(const char *fn, void **pdump, size_t *dumplen, size_t maxdumpl
}
case MCT: {
res = loadFileMCT_safe(fn, pdump, dumplen);
if (res == PM3_SUCCESS && *dumplen > maxdumplen) {
*dumplen = maxdumplen;
}
break;
}
case FLIPPER: {
Expand Down

0 comments on commit f13c074

Please sign in to comment.