mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-09-21 07:46:12 +08:00
Fixed the loadFileDICTIONARY_safe memset alignment. Thanks to @doegox for pointing that out.
This commit is contained in:
parent
2290b2bd88
commit
5167507a83
|
@ -691,8 +691,8 @@ int loadFileDICTIONARY_safe(const char *preferredName, void **pdata, uint8_t key
|
||||||
if (*pdata == NULL) {
|
if (*pdata == NULL) {
|
||||||
return PM3_EFILE;
|
return PM3_EFILE;
|
||||||
} else {
|
} else {
|
||||||
// zero the new memeory (safety first)
|
// zero the new memory (safety first)
|
||||||
memset(*pdata + counter, 0, block_size);
|
memset(*pdata + allocation_size - block_size, 0, block_size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue