From b7e35a8fa8460aae8ebf9c62bbdd7ff57e1e0a8d Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Tue, 2 Sep 2025 15:53:14 -0400 Subject: [PATCH] Virtual insanity --- SabreTools.Serialization/Wrappers/PortableExecutable.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SabreTools.Serialization/Wrappers/PortableExecutable.cs b/SabreTools.Serialization/Wrappers/PortableExecutable.cs index 8925a87e..cbded142 100644 --- a/SabreTools.Serialization/Wrappers/PortableExecutable.cs +++ b/SabreTools.Serialization/Wrappers/PortableExecutable.cs @@ -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