diff --git a/src/pe/utils.rs b/src/pe/utils.rs index 289ccc52..ad574685 100644 --- a/src/pe/utils.rs +++ b/src/pe/utils.rs @@ -64,6 +64,8 @@ fn section_read_size(section: §ion_table::SectionTable, file_alignment: u32) if virtual_size == 0 { read_size + } else if size_of_raw_data == 0 { + virtual_size } else { cmp::min(read_size, round_size(virtual_size)) }