mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-12 17:48:33 +00:00
Fix conditional warning regression in format.pe
This commit is contained in:
parent
5ef2b3cc0f
commit
910ec5d000
@ -2204,7 +2204,7 @@ struct r_bin_pe_import_t* PE_(r_bin_pe_get_imports)(struct PE_(r_bin_pe_obj_t) *
|
||||
if (!bin_pe_parse_imports (bin, &imports, &nimp, dll_name,
|
||||
import_func_name_offset, curr_delay_import_dir->DelayImportAddressTable))
|
||||
break;
|
||||
if ((size_t)(curr_delay_import_dir - off) + sizeof (curr_delay_import_dir) > bin->size) {
|
||||
if ((size_t)(void*)curr_delay_import_dir + sizeof(curr_delay_import_dir) > (size_t)(void*)bin->b->buf + bin->size) {
|
||||
eprintf ("Warning: malformed pe\n");
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user