OpenPNG crashing
Brought to you by:
aegis
The OpenPNG method in corona/src/OpenPNG.cpp crashes when there's low memory...
There's a few occurances of pixels = new byte[...] and one occurance of palette = new byte[..] that needs checks added to it...
The added file is a diff file for the last three bug reports I submitted...
(That's the OpenJPEG/ConvertPixels/OpenPNG crashes...)
Fix for OpenJPEG/ConvertPixels/OpenPNG crashes
Logged In: YES
user_id=7212
Originator: NO
operator new only returns NULL in older, noncomformant compilers, so the right fix is to catch std::bad_alloc, imo.