Revision 767a14c...

Go back to digest for 21st October 2012

Bug Fixes in Graphics

Marcel Wiesweg committed changes in [digikam] /:

Prevent integer overflows when calculating the memory necessary for loading an image.

This can happen particularly for images requiring chunks of >4GB and when using a 32 bit
variable to store width and height. Worst case, a smaller chunk of memory was allocated,
resulting in a crash.

FIXED-IN: 3.0.0

File Changes

Modified 10 files
  •   NEWS
  •   libs/dimg/loaders/dimgloader.cpp
  •   libs/dimg/loaders/dimgloader.h
  •   libs/dimg/loaders/jp2kloader.cpp
  •   libs/dimg/loaders/jpegloader.cpp
  •   libs/dimg/loaders/pgfloader.cpp
  •   libs/dimg/loaders/pngloader.cpp
  •   libs/dimg/loaders/qimageloader.cpp
  •   libs/dimg/loaders/rawloader.cpp
  •   libs/dimg/loaders/tiffloader.cpp
10 files changed in total