mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-09-23 07:14:57 +00:00
Handle invalid texture counts
This commit is contained in:
@@ -149,6 +149,8 @@ namespace SabreTools.Serialization.Streams
|
||||
for (int i = 0; i < textureHeader.TextureCount; i++)
|
||||
{
|
||||
offsets[i] = data.ReadUInt32();
|
||||
if (data.Position >= data.Length)
|
||||
break;
|
||||
}
|
||||
|
||||
textureHeader.Offsets = offsets;
|
||||
|
||||
Reference in New Issue
Block a user