RandyGaul / cute_headers

Collection of cross-platform one-file C/C++ libraries with no dependencies, primarily used for games
4.33k stars 269 forks source link

Cute_Aseprite Fix #377 Uninitialized tag user data #380

Closed KasumiArai closed 6 months ago

KasumiArai commented 6 months ago

The line ase_tag_t tag; does not initialize tag.udata resulting in that uninitialized data getting copied when ase->tags[k] = tag; is hit.

The ase->tags array is initialized to 0 on line 930, so by working directly with the array instead of copying from the temp tag variable, the user data flags for the tag will remain 0.