I'm confused about security notice #1584
-
Hi, I can't understand what kind of security issue this library has? How can someone perform attacks when using stb headers when they are compiled in machine code in final program? Can I get some examples? |
Beta Was this translation helpful? Give feedback.
Answered by
nothings
Nov 28, 2023
Replies: 1 comment 3 replies
-
If you try to use stb_image to load an image provided by an attacker, bad things could potentially happen. If you only use it to load your own choice of images, generally things are fine. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you're just using it to encode images it doesn't matter, but it applies to all formats (jpg and png are also complicated internally).