Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Program crash due to Out-of-memory in function tinyexr::AllocateImage #104
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.
I will show you the output as follow.
I have confirmed them with address sanitizer too.
referenced this issue
Dec 31, 2018
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