mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-15 11:43:14 +08:00
FIX: the "hf list legic" on MIM1024 wrapped around readingbyte 255 due to a too small varible size. Causing the upperbits to drop silently
This commit is contained in:
parent
61f97ca7ad
commit
5660920679
1 changed files with 1 additions and 1 deletions
|
@ -389,7 +389,7 @@ void annotateLegic(char *exp, size_t size, uint8_t* cmd, uint8_t cmdsize){
|
|||
case 9:
|
||||
case 11: {
|
||||
uint8_t cmdBit = (cmd[1] & 1);
|
||||
uint8_t address = (cmd[2] << 7) | cmd[1] >> 1;
|
||||
uint16_t address = (cmd[2] << 7) | cmd[1] >> 1;
|
||||
|
||||
if (cmdBit == LEGIC_READ)
|
||||
snprintf(exp, size, "READ Byte(%d)", address);
|
||||
|
|
Loading…
Reference in a new issue