libretro / libretro-chailove

:heart: 2D Game Framework with ChaiScript
https://raw.githack.com/libretro/libretro-chailove/docs/index.html
MIT License
70 stars 22 forks source link

love: Fix buffer overflow #419

Closed phcoder closed 2 years ago

phcoder commented 2 years ago

sizeof(&md5string[i * 2]) is a sizeof of a pointer, so 4 or 8 instead of intended 3 (2 hex digits + \0) leading to a potential overflow