mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-10-23 17:23:23 +00:00
Fix WRITEBLOCK read out-of-bounds
This commit is contained in:
1 file changed
+1
-1
@@ -424,7 +424,7 @@ int applyIso14443a(char *exp, size_t size, uint8_t *cmd, uint8_t cmdsize, bool i
|
||||
case MIFARE_ULC_WRITE : {
|
||||
if (cmd[1] < 0x21)
|
||||
snprintf(exp, size, "WRITEBLOCK(" _MAGENTA_("%d") ")", cmd[1]);
|
||||
else
|
||||
else if (cmdsize >= 6)
|
||||
// outside limits, useful for some tags...
|
||||
snprintf(exp, size, "WRITEBLOCK(" _MAGENTA_("%d") ") (%s)", cmd[1], sprint_hex_inrow(cmd + 2, 4));
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user