Virtual insanity

This commit is contained in:
Matt Nadareski
2025-09-02 15:53:14 -04:00
parent 8c190a26a5
commit b7e35a8fa8

View File

@@ -1538,7 +1538,7 @@ namespace SabreTools.Serialization.Wrappers
return false;
// Read the section into a local array
int sectionLength = (int)Math.Max(section.SizeOfRawData, section.VirtualSize);
int sectionLength = (int)section.VirtualSize;
byte[]? sectionData = source.ReadFrom(offset, sectionLength, retainPosition: true);
// Parse the section header