mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-15 01:10:01 +00:00
Fix #3444 - Fix infinite loop in PE parser
This commit is contained in:
parent
f9b661f839
commit
60b60aa50a
@ -1778,7 +1778,7 @@ struct r_bin_pe_export_t* PE_(r_bin_pe_get_exports)(struct PE_(r_bin_pe_obj_t)*
|
||||
int ret = r_buf_read_at (bin->b,
|
||||
ordinals_paddr + n * sizeof(PE_Word),
|
||||
(ut8*)&function_ordinal,sizeof (PE_Word));
|
||||
if (!ret) break;
|
||||
if (ret<1) break;
|
||||
// if exist this index into AddressOfOrdinals
|
||||
if (i==function_ordinal) {
|
||||
// get the VA of export name from AddressOfNames
|
||||
|
Loading…
Reference in New Issue
Block a user