mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-20 13:23:25 -07:00
coverity scan bug fixes
mfu keyNo buffer overflow mf reader attack key count reduced to not overrun c.d.asBytes buffer.
This commit is contained in:
parent
c2ca50419d
commit
3d542a3dfa
3 changed files with 5 additions and 4 deletions
|
@ -1120,7 +1120,8 @@ int CmdHF14AMfChk(const char *Cmd)
|
|||
}
|
||||
|
||||
void readerAttack(nonces_t ar_resp[], bool setEmulatorMem, bool doStandardAttack) {
|
||||
#define ATTACK_KEY_COUNT 8 // keep same as define in iso14443a.c -> Mifare1ksim()
|
||||
#define ATTACK_KEY_COUNT 7 // keep same as define in iso14443a.c -> Mifare1ksim()
|
||||
// cannot be more than 7 or it will overrun c.d.asBytes(512)
|
||||
uint64_t key = 0;
|
||||
typedef struct {
|
||||
uint64_t keyA;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue