diff --git a/CHANGELOG.md b/CHANGELOG.md index cd5926616..1823134ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file. This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log... ## [unreleased][unreleased] + - Fix RESTORE mis-annotation (@VortixDev) - Changed `smart raw` - now uses NG (@iceman1001) - Added `hf iclass configcard` - now can download / generate config card dumps with a cardhelper [WIP] (@iceman1001) - Fix swapped DESELECT and WTX annotations (@VortixDev) diff --git a/client/src/cmdhflist.c b/client/src/cmdhflist.c index 6a6d57fd7..baf60406d 100644 --- a/client/src/cmdhflist.c +++ b/client/src/cmdhflist.c @@ -228,7 +228,10 @@ int applyIso14443a(char *exp, size_t size, uint8_t *cmd, uint8_t cmdsize) { snprintf(exp, size, "DEC(%d)", cmd[1]); break; case MIFARE_CMD_RESTORE: - snprintf(exp, size, "RESTORE(%d)", cmd[1]); + if (cmdsize == 4) + snprintf(exp, size, "RESTORE(%d)", cmd[1]); + else + return 0; break; case MIFARE_CMD_TRANSFER: snprintf(exp, size, "TRANSFER(%d)", cmd[1]);