fix a potential overflow

This commit is contained in:
iceman1001 2020-09-18 19:50:45 +02:00
commit 8b2279dd05

View file

@ -54,7 +54,7 @@ typedef struct {
//uint8_t foundKey[2];
} icesector_t;
#define KEYS_IN_BLOCK ((PM3_CMD_DATA_SIZE - 4) / 6)
#define KEYS_IN_BLOCK ((PM3_CMD_DATA_SIZE - 5) / 6)
#define KEYBLOCK_SIZE (KEYS_IN_BLOCK * 6)
#define CANDIDATE_SIZE (0xFFFF * 6)