mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-02-04 05:36:12 +00:00
Off by one?
This commit is contained in:
@@ -154,7 +154,7 @@ namespace SabreTools.Serialization.Wrappers
|
||||
}
|
||||
|
||||
// Otherwise, cache and return the data
|
||||
overlaySize = Math.Min(overlaySize, int.MaxValue);
|
||||
overlaySize = Math.Min(overlaySize, int.MaxValue - 1);
|
||||
|
||||
_overlayData = ReadRangeFromSource((int)endOfSectionData, (int)overlaySize);
|
||||
return _overlayData;
|
||||
|
||||
@@ -407,7 +407,7 @@ namespace SabreTools.Serialization.Wrappers
|
||||
}
|
||||
|
||||
// Otherwise, cache and return the data
|
||||
overlaySize = Math.Min(overlaySize, int.MaxValue);
|
||||
overlaySize = Math.Min(overlaySize, int.MaxValue - 1);
|
||||
|
||||
_overlayData = ReadRangeFromSource(endOfSectionData, (int)overlaySize) ?? [];
|
||||
return _overlayData;
|
||||
|
||||
Reference in New Issue
Block a user