Closed
Description
Hi, there.
I test the program at the master branch.
commit b3eb24bf635c0ed92f1080a1b269bc8271cbb919
Author: Syoyo Fujita <syoyo@lighttransport.com>
Date: Mon Dec 24 20:33:23 2018 +0900
Add IsEXR() API.
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.
$ ./test_tinyexr ./POC
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted