[Digikam-devel] [Bug 307602] Large TIFF files crash digiKam (>1Gb)

Marcel Wiesweg marcel.wiesweg at gmx.de
Thu Oct 18 21:25:10 BST 2012


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

Marcel Wiesweg <marcel.wiesweg at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
   Version Fixed In|                            |3.0.0
         Resolution|---                         |FIXED
      Latest Commit|                            |http://commits.kde.org/digi
                   |                            |kam/767a14c626384d646276972
                   |                            |c531e9a617e36face

--- Comment #31 from Marcel Wiesweg <marcel.wiesweg at gmx.de> ---
Git commit 767a14c626384d646276972c531e9a617e36face by Marcel Wiesweg.
Committed on 18/10/2012 at 22:18.
Pushed by mwiesweg into branch 'master'.

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

M  +5    -1    NEWS
M  +10   -0    libs/dimg/loaders/dimgloader.cpp
M  +21   -0    libs/dimg/loaders/dimgloader.h
M  +2    -2    libs/dimg/loaders/jp2kloader.cpp
M  +1    -1    libs/dimg/loaders/jpegloader.cpp
M  +2    -2    libs/dimg/loaders/pgfloader.cpp
M  +2    -2    libs/dimg/loaders/pngloader.cpp
M  +1    -1    libs/dimg/loaders/qimageloader.cpp
M  +2    -2    libs/dimg/loaders/rawloader.cpp
M  +3    -3    libs/dimg/loaders/tiffloader.cpp

http://commits.kde.org/digikam/767a14c626384d646276972c531e9a617e36face

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Digikam-devel mailing list