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 bounds during loading of Sprite Chunk #40

Open
Miepee opened this issue May 2, 2022 · 1 comment
Open

DogScepter reading out bounds during loading of Sprite Chunk #40

Miepee opened this issue May 2, 2022 · 1 comment
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

Several games create the following exception:

System.IO.IOException: Reading out of bounds
   at DogScepterLib.Core.Util.BufferBinaryReader.ReadInt32() in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Core\Util\BufferBinaryReader.cs:line 108
   at DogScepterLib.Core.Models.GMSprite.Deserialize(GMDataReader reader) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Core\Models\GMSprite.cs:line 208
   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.GMChunkSPRT.Deserialize(GMDataReader reader) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Core\Chunks\GMChunkSPRT.cs:line 27
   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

Games in question are:
down the road, Chromaticity, galactic graffit, haunted home not alone, desolation, detective, tower-guy, a picture a memory, one musician per pond, async, dr rekoil and the last judgement, on the flip side, the cardboard box, kitty citty, the bling bling pumpking king ahrvest pumpkin festival, blackheart no, island, radio you f o, dodgeball duke

@Miepee
Copy link
Contributor Author

Miepee commented May 2, 2022

This may be a duplicate of #17 actually.

@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