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
Program crash due to Out-of-memory in function tinyexr::AllocateImage #104
Labels
Comments
|
I have confirmed them with address sanitizer too. |
|
Here are some different POC |
|
There are two situations.
I have added a work around for the latter case, but it is recommended to check the return value of |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, there.
I test the program at the master branch.
An Out of Memory problem was discovered in function tinyexr::AllocateImage in tinyexr.h. The program tries to allocate with a large number size( 0x1b80011b980 bytes) of memory. Program crash because of terminating called after throwing an instance of 'std::bad_alloc'
Please use the "./test_tinyexr $POC" to reproduce the bug.
POC.zip
I will show you the output as follow.
The text was updated successfully, but these errors were encountered: