Skip to content

Commit

Permalink
Fix heap overflow in macho parser ##bin
Browse files Browse the repository at this point in the history
Sample: clusterfuzz-testcase-minimized-ia_fuzz-5651817880354816.dms
  • Loading branch information
radare committed Apr 27, 2019
1 parent 5fa6d8c commit 67d531d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libr/bin/format/mach0/mach0.c
Original file line number Diff line number Diff line change
Expand Up @@ -2070,7 +2070,7 @@ RSkipList *MACH0_(get_relocs)(struct MACH0_(obj_t) *bin) {
if (bin->dyld_info->bind_off+bind_size+lazy_size > bin->size) {
return NULL;
}
int amount = bind_size + lazy_size + weak_size;
ut64 amount = bind_size + lazy_size + weak_size;
if (amount < 0) {
return NULL;
}
Expand Down

0 comments on commit 67d531d

Please sign in to comment.