mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-27 09:35:49 +00:00
Fix reading sections
This commit is contained in:
parent
8fd68f1429
commit
ff4d3c8009
@ -61,7 +61,7 @@ static int r_bin_te_init_hdr(struct r_bin_te_obj_t* bin) {
|
||||
}
|
||||
|
||||
static int r_bin_te_init_sections(struct r_bin_te_obj_t* bin) {
|
||||
int sections_size = sizeof(TE_image_file_header) * bin->header->NumberOfSections;
|
||||
int sections_size = sizeof(TE_image_section_header) * bin->header->NumberOfSections;
|
||||
if (sections_size > bin->size) {
|
||||
eprintf ("Invalid NumberOfSections value\n");
|
||||
return R_FALSE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user