mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-09 03:00:07 -04:00
fix CID #405223 - use after free, all callers must handle bad returns properly
This commit is contained in:
@@ -3572,7 +3572,6 @@ static int DesfireCreateFileParameters(
|
||||
bool userawfrights = false;
|
||||
if (frightsid) {
|
||||
if (CLIGetUint32Hex(ctx, frightsid, 0xeeee, &frights, &userawfrights, 2, "File rights must have 2 bytes length")) {
|
||||
CLIParserFree(ctx);
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user