issues
search
roniemartinez
/
libqpsd
PSD (Photoshop Document) & PSB (Photoshop Big) Plugin for Qt/C++ (Qt4/Qt5)
GNU Lesser General Public License v2.1
108
stars
25
forks
source link
fixes crash for psb files > 2GB
#22
Closed
diemmarkus
closed
6 years ago
diemmarkus
commented
6 years ago
totalBytesPerChannel has an overflow if width
height
depth is > INT_MAX in line 108
the cast avoids this overflow and
if ((quint64)imageData.size() != size)
in line 132 becomes true
here is a test image:
https://www.spacetelescope.org/static/archives/images/original/heic1502a.psb
roniemartinez
commented
6 years ago
Thank you @diemmarkus 👍
if ((quint64)imageData.size() != size)
in line 132 becomes true