mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
staticnested_2x1nt_rf08s: fix malloc bug
This commit is contained in:
@@ -150,7 +150,7 @@ int main(int argc, char *const argv[]) {
|
||||
}
|
||||
|
||||
keys2 = (uint64_t*)malloc(keycount2 * sizeof(uint64_t));
|
||||
filter_keys2 = (uint8_t*)calloc(keycount1, sizeof(uint8_t));
|
||||
filter_keys2 = (uint8_t*)calloc(keycount2, sizeof(uint8_t));
|
||||
if ((keys2 == NULL)||(filter_keys2 == NULL)) {
|
||||
perror("Failed to allocate memory");
|
||||
fclose(fptr);
|
||||
|
||||
Reference in New Issue
Block a user