Skip to content

Commit

Permalink
macho: Fix improper init for reverse fat entry table (entries won't b…
Browse files Browse the repository at this point in the history
…e randomly bswapped now)
  • Loading branch information
dd86k committed Jan 12, 2025
1 parent 4de2ac9 commit 99a4b20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adbg/objects/macho.d
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ macho_fat_arch_entry_t* adbg_object_macho_fat_arch(adbg_object_t *o, size_t inde
return null;

if (o.status & AdbgObjectInternalFlags.reversed) {
r_fat_entries = cast(bool*)malloc(fat_header.nfat_arch);
r_fat_entries = cast(bool*)calloc(1, fat_header.nfat_arch);
if (r_fat_entries == null) {
adbg_oops(AdbgError.crt);
free(fat_entries);
Expand Down

0 comments on commit 99a4b20

Please sign in to comment.