Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stb_image: prevent int to overflow before converting it to size_t #1658

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

illwieckz
Copy link

@illwieckz illwieckz commented Jun 27, 2024

This fixes some warnings in stb_image_write.h reported by CodeQL:

Multiplication result converted to larger type
Multiplication result may overflow 'int' before it is converted to 'size_t'. 

You may find details about the CodeQL reports in the comments made by the github-advanced-security bot in this thread:

@illwieckz illwieckz changed the title stb_image_write: prevent int to overflow before converting it to size_t stb_image: prevent int to overflow before converting it to size_t Jul 10, 2024
@illwieckz
Copy link
Author

I added a commit doing the same for stb_image.h.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant