From e61aec89eaa34ac107443e736b4a1443c7768b0e Mon Sep 17 00:00:00 2001 From: HeroponRikiBestest <50224630+HeroponRikiBestest@users.noreply.github.com> Date: Thu, 26 Mar 2026 10:40:21 -0700 Subject: [PATCH] Use correct section size for matroschka package extraction (#71) Not sure how it took this long for me to encounter an issue. --- SabreTools.Wrappers/PortableExecutable.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SabreTools.Wrappers/PortableExecutable.cs b/SabreTools.Wrappers/PortableExecutable.cs index f3d3580e..67a2aea7 100644 --- a/SabreTools.Wrappers/PortableExecutable.cs +++ b/SabreTools.Wrappers/PortableExecutable.cs @@ -244,7 +244,7 @@ namespace SabreTools.Wrappers } // Read the section into a local array - var sectionLength = (int)section.VirtualSize; + var sectionLength = (int)section.SizeOfRawData; var sectionData = ReadRangeFromSource(offset, sectionLength); if (sectionData.Length == 0) {