mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-04 12:58:41 +00:00
test optional header fields
This commit is contained in:
committed by
Ryan Fleury
parent
fe967a3d36
commit
25710d39b7
@@ -637,6 +637,7 @@ pe_bin_info_from_data(Arena *arena, String8 data)
|
||||
info.file_section_align = file_section_align;
|
||||
info.section_count = clamped_sec_count;
|
||||
info.symbol_count = symbol_count;
|
||||
info.optional_header_off = optional_range.min;
|
||||
info.section_table_range = rng_1u64(sec_array_off, sec_array_off + sizeof(COFF_SectionHeader) * clamped_sec_count);
|
||||
info.symbol_table_range = rng_1u64(symbol_array_off, symbol_array_off + sizeof(COFF_Symbol16) * symbol_count);
|
||||
info.string_table_range = rng_1u64(string_table_off, data.size);
|
||||
|
||||
@@ -1003,6 +1003,7 @@ struct PE_BinInfo
|
||||
U64 file_section_align;
|
||||
U64 section_count;
|
||||
U64 symbol_count;
|
||||
U64 optional_header_off;
|
||||
Rng1U64 section_table_range;
|
||||
Rng1U64 symbol_table_range;
|
||||
Rng1U64 string_table_range;
|
||||
|
||||
Reference in New Issue
Block a user