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

Updates stb_image and stb_image_write #409

Merged
merged 3 commits into from
Mar 30, 2023

Conversation

NBickford-NV
Copy link
Contributor

Hi Syoyo!

TinyGLTF currently embeds a copy of stb_image.h v2.21 and stb_image_write.h v1.11 from March 2019. This version of stb_image.h has a couple of security vulnerabilities (see this NIST National Vulnerability Database (NVD) search; CVE-2019-19777 is the earliest one).

This pull request updates stb_image and stb_image_write to the latest dev branch commit, nothings/stb@9f1776a. This commit is the same as main (stb_image v2.28), plus the fix for nothings/stb#1456.

It also applies changes from two pending merge requests:

To make this easier to verify, I've split up the commits so that commit 1 matches the dev branch, the diff for commit 2 matches nothings/stb#1454, and the diff for commit 3 matches nothings/stb#1443.

Thank you!

@syoyo syoyo merged commit d71c6f6 into syoyo:release Mar 30, 2023
@syoyo
Copy link
Owner

syoyo commented Mar 30, 2023

Thanks! Merged!

For reading/writing images, we may better to consider adding wuffs https://github.com/google/wuffs and fpng https://github.com/richgel999/fpng (for PNG only) backend for better security and performance.

@syoyo
Copy link
Owner

syoyo commented Mar 30, 2023

Filed an issue(wuffs and fpng) #410

@NBickford-NV
Copy link
Contributor Author

Thank you Syoyo! I've heard very good things about Wuffs in terms of security and performance.

@syoyo
Copy link
Owner

syoyo commented Mar 31, 2023

@neilbickford-nv Nice! > I've heard very good things about Wuffs

PR of Wuffs backend support is much appreciated!

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.

2 participants