This commit is contained in:
ahm3dgg
2026-01-07 08:57:09 +02:00
parent 741dadfced
commit f61946335c

View File

@@ -537,7 +537,7 @@ namespace winpe
auto next_section_offset = winpe::get_first_section_offset(nt_headers, nt_headers_offset);
for (size_t i = 0; i < nt_headers.FileHeader.NumberOfSections; i++)
{
const auto section = buffer.as<IMAGE_SECTION_HEADER>(next_section_offset).get();
const auto section = buffer.as<IMAGE_SECTION_HEADER>(static_cast<size_t>(next_section_offset)).get();
auto section_va_start = section.VirtualAddress;
auto section_va_end = section.VirtualAddress + section.Misc.VirtualSize;