mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-05 22:01:33 +00:00
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:
committed by
GitHub
parent
363ffee738
commit
e61aec89ea
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user