This should be a file offset

This commit is contained in:
Matt Nadareski
2025-08-17 15:20:51 -04:00
parent b5f83215d5
commit c7b03c7765

View File

@@ -89,8 +89,7 @@ namespace SabreTools.Serialization.Deserializers
#region COFF Symbol Table and COFF String Table
// TODO: Validate that this is correct with an "old" PE
long symbolTableAddress = initialOffset
+ coffFileHeader.PointerToSymbolTable.ConvertVirtualAddress(executable.SectionTable);
long symbolTableAddress = initialOffset + coffFileHeader.PointerToSymbolTable;
if (symbolTableAddress != 0 && symbolTableAddress < data.Length)
{
// Seek to the COFF symbol table