mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
fix codeql #155 - narrow type with wide type comparison in loop
This commit is contained in:
parent
0ff12da8e9
commit
b14730d57c
1 changed files with 1 additions and 1 deletions
|
@ -6212,7 +6212,7 @@ int CmdHFMFNDEFWrite(const char *Cmd) {
|
|||
uint8_t freemem[MIFARE_4K_MAXSECTOR] = {0};
|
||||
uint16_t sum = 0;
|
||||
uint8_t block_no = 0;
|
||||
for (uint8_t i = 1; i < madlen; i++) {
|
||||
for (uint8_t i = 1; i < (madlen & 0xFF); i++) {
|
||||
|
||||
freemem[i] = (mad[i] == NDEF_MFC_AID);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue