jpaver / opengametools

A set of open c++ game development tools that are lightweight, easy-to-integrate and free to use. Currently hosting a magicavoxel .vox full scene loader.
MIT License
373 stars 35 forks source link

Fix some heap overruns & uninitialized variables that are read into #14

Closed jorgenpt closed 3 years ago

jorgenpt commented 3 years ago

Running ogt_voxel through address sanitizer in our test suite gave me a hit on some potential buffer overruns, so here's a commit fixing that and some other ones I found through inspection, and also initialize a few variables we read into since the read method might leave them uninitialized.