mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-14 00:38:55 +00:00
Fix another tiny crash in mach0
This commit is contained in:
parent
a93d1d496e
commit
3817068e17
@ -753,7 +753,7 @@ struct r_bin_mach0_import_t* MACH0_(r_bin_mach0_get_imports)(struct MACH0_(r_bin
|
||||
return NULL;
|
||||
for (i = j = 0; i < bin->dysymtab.nundefsym; i++) {
|
||||
idx = bin->dysymtab.iundefsym +i;
|
||||
if (idx<0 || idx>bin->nsymtab) {
|
||||
if (idx<0 || idx>=bin->nsymtab) {
|
||||
eprintf ("WARNING: Imports index out of bounds. Ignoring relocs\n");
|
||||
free (imports);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user