We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug https://github.com/nothings/stb/blob/master/stb_image_write.h#L767 does not check the malloc return value, when it can be NULL and later dereferenced
To Reproduce Found with CodeQL query github/codeql#16524 (only finding in this project)
Expected behavior Check the return value, and return early as in the other cases like https://github.com/nothings/stb/blob/master/stb_image_write.h#L909
Simple patch like would be to ass
if (scratch == NULL) return 0;
The text was updated successfully, but these errors were encountered:
Fix for unchecked malloc return value: nothings#1645
2c63ad9
No branches or pull requests
Describe the bug
https://github.com/nothings/stb/blob/master/stb_image_write.h#L767 does not check the malloc return value, when it can be NULL and later dereferenced
To Reproduce
Found with CodeQL query github/codeql#16524 (only finding in this project)
Expected behavior
Check the return value, and return early as in the other cases like https://github.com/nothings/stb/blob/master/stb_image_write.h#L909
Simple patch like would be to ass
The text was updated successfully, but these errors were encountered: