libsdl-org / SDL_ttf

Support for TrueType (.ttf) font files with Simple Directmedia Layer.
zlib License
343 stars 116 forks source link

Prevent negative draw line and out of bounds. #328

Closed 1bsyl closed 5 months ago

1bsyl commented 5 months ago

can be reproduced with testapp.c, int seed = 1704796537, at iteration ~270

slouken commented 5 months ago

Can you cherry-pick -x this to SDL2?

Thanks!

1bsyl commented 5 months ago

done cherry-picked for SDL2: https://github.com/libsdl-org/SDL_ttf/commit/073da22002e07da48491e8c8e71a6e2895efaaaa