Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DogScepter reading out of bounds in FONT chunk #46

Open
Miepee opened this issue May 2, 2022 · 0 comments
Open

DogScepter reading out of bounds in FONT chunk #46

Miepee opened this issue May 2, 2022 · 0 comments
Labels
bug Something isn't working serialization Issues pertaining to reading/writing GameMaker data files

Comments

@Miepee
Copy link
Contributor

Miepee commented May 2, 2022

There are a few games getting an exception trying to read out of bounds in a font chunk:

System.IO.IOException: Reading out of bounds
   at DogScepterLib.Core.Util.BufferBinaryReader.ReadUInt16() in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Core\Util\BufferBinaryReader.cs:line 81
   at DogScepterLib.Core.Models.GMGlyph.Deserialize(GMDataReader reader) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Core\Models\GMFont.cs:line 111
   at DogScepterLib.Core.GMDataReader.ReadPointerObjectUnique[T](Int32 ptr, Boolean returnAfter) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Core\GMDataReader.cs:line 181
   at DogScepterLib.Core.GMPointerList`1.DoReadPointerObjectUnique(GMDataReader reader, Boolean notLast) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Core\GMLists.cs:line 167
   at DogScepterLib.Core.GMPointerList`1.Deserialize(GMDataReader reader, ListDeserialize before, ListDeserialize after, ListDeserializeElement elemReader) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Core\GMLists.cs:line
191
   at DogScepterLib.Core.GMPointerList`1.Deserialize(GMDataReader reader) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Core\GMLists.cs:line 199
   at DogScepterLib.Core.Models.GMFont.Deserialize(GMDataReader reader) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Core\Models\GMFont.cs:line 75
   at DogScepterLib.Core.GMDataReader.ReadPointerObjectUnique[T](Int32 ptr, Boolean returnAfter) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Core\GMDataReader.cs:line 181
   at DogScepterLib.Core.GMPointerList`1.DoReadPointerObjectUnique(GMDataReader reader, Boolean notLast) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Core\GMLists.cs:line 167
   at DogScepterLib.Core.GMPointerList`1.Deserialize(GMDataReader reader, ListDeserialize before, ListDeserialize after, ListDeserializeElement elemReader) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Core\GMLists.cs:line
191
   at DogScepterLib.Core.GMPointerList`1.Deserialize(GMDataReader reader) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Core\GMLists.cs:line 199
   at DogScepterLib.Core.Chunks.GMChunkFONT.Deserialize(GMDataReader reader) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Core\Chunks\GMChunkFONT.cs:line 38
   at DogScepterLib.Core.GMChunkFORM.Deserialize(GMDataReader reader) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Core\GMChunk.cs:line 170
   at DogScepterLib.Core.GMDataReader.Deserialize(Boolean clearData) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Core\GMDataReader.cs:line 58
   at DogScepterCLI.ConsoleExtensions.LoadDataFile(IConsole console, String file, Boolean verbose) in C:\Users\narr\gitrepos\dog-scepter\DogScepterCLI\ConsoleExtensions.cs:line 127 

an island of light, hallucia, troll physics, rock salad, the space man who thinks of the sea, fizix, clock escape, atonement, this is what i call a bad situation

@colinator27 colinator27 added bug Something isn't working serialization Issues pertaining to reading/writing GameMaker data files labels May 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working serialization Issues pertaining to reading/writing GameMaker data files
Projects
None yet
Development

No branches or pull requests

2 participants