Menu

#11 OpenPNG crashing

open
nobody
None
5
2006-11-21
2006-11-21
Brian Robb
No

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...)

Discussion

  • Brian Robb

    Brian Robb - 2006-11-21

    Fix for OpenJPEG/ConvertPixels/OpenPNG crashes

     
  • Chad Austin

    Chad Austin - 2006-11-21

    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.

     

Log in to post a comment.

MongoDB Logo MongoDB