a few calloc checks, still many to go

This commit is contained in:
Philippe Teuwen committed 2025-03-24 11:17:40 +01:00
1 parent 74c60301d1
commit c37ca881e6
12 files changed
+84 -1

No files matched your search

+4
View File
@@ -547,6 +547,10 @@ static void topaz_print_control_TLVs(uint8_t *memory) {
old = old->next;
}
new = old->next = (dynamic_lock_area_t *) calloc(sizeof(dynamic_lock_area_t), sizeof(uint8_t));
if (new == NULL) {
PrintAndLogEx(ERR, "Memory allocation failed");
return;
}
}
new->next = NULL;