You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sdl3-image: disable STBI for more security and performance #400074
Currently, sdl3-image uses stb_image for png and jpeg image loading.
stbi is nice for getting up fast on a new platform, or when you are in control of all of your files/assets.
But as they say themselfs:
This project discusses security-relevant bugs in public in Github Issues and Pull Requests, and it may take significant time for security fixes to be implemented or merged. If this poses an unreasonable risk to your project, do not use stb libraries.
Not only that, but stbi is also slower at loading images and supports generally less features.
This should be easy to fix. Just add -DSDLIMAGE_BACKEND_STB=OFF and the libpng and libjpeg dependencies.
Activity
evysgarden commentedon Apr 19, 2025
working on it