Use correct section size for matroschka package extraction (#71)

Not sure how it took this long for me to encounter an issue.
This commit is contained in:
HeroponRikiBestest
2026-03-26 10:40:21 -07:00
committed by GitHub
parent 363ffee738
commit e61aec89ea

View File

@@ -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)
{