[Digikam-devel] [Bug 188334] Crash when applying free rotation to TIF16 picture

Marcel Wiesweg marcel.wiesweg at gmx.de
Mon Jun 29 19:11:33 BST 2009


https://bugs.kde.org/show_bug.cgi?id=188334





--- Comment #17 from Marcel Wiesweg <marcel wiesweg gmx de>  2009-06-29 20:11:27 ---
SVN commit 989198 by mwiesweg:

There are a few strategic places where a chunk memory is allocated the size of
which was read
from an image file. By trying to load a very big image or an image with a
corrupt header
the allocation may fail, leading to std::bad_alloc thrown and abort() called.
Wrap these allocations in try { } catch (std::bad_alloc) in the hope of
converting
such crashes into mere failures.

CCBUG: 188334, 190593, 197254

 M  +6 -1      dimg.cpp  
 M  +20 -0     loaders/dimgloader.cpp  
 M  +3 -0      loaders/dimgloader.h  
 M  +2 -2      loaders/jp2kloader.cpp  
 M  +2 -2      loaders/jpegloader.cpp  
 M  +12 -0     loaders/pgfloader.cpp  
 M  +4 -3      loaders/pngloader.cpp  
 M  +8 -1      loaders/ppmloader.cpp  
 M  +6 -1      loaders/qimageloader.cpp  
 M  +13 -2     loaders/rawloader.cpp  
 M  +12 -16    loaders/tiffloader.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=989198

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list