nothings / stb

stb single-file public domain libraries for C/C++
https://twitter.com/nothings
Other
25.99k stars 7.67k forks source link

Fix integer overflow #1530

Closed JarLob closed 1 month ago

JarLob commented 9 months ago

Cast to size_t to avoid multiplication overflow. Fixes #1529

nothings commented 9 months ago

FYI, you don't need to open a separate issue for every PR, you can just explain the issue in the PR itself. Making them separate doubles the email notifications I get for no apparent benefit that I can see.