summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-02-18 09:43:01 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-02-18 09:43:01 (GMT)
commit177131d06d0d7a39d5de210ac8ed5dff9ca4999f (patch)
tree37c1df4b1236447c5960d3d21bbdafdf1bdaec2f /src/gui
parent36c81f4972b5cfbac825d18e99d9a28dd82542d8 (diff)
parentdb9925a187a9ad395ba2cabf23487b9a0e09c67c (diff)
downloadQt-177131d06d0d7a39d5de210ac8ed5dff9ca4999f.zip
Qt-177131d06d0d7a39d5de210ac8ed5dff9ca4999f.tar.gz
Qt-177131d06d0d7a39d5de210ac8ed5dff9ca4999f.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2: Added test case for corrupt pixel count in XPM image. QImage crash when invalid XPM is read. Fix an issue with removing rows in a table model.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/image/qxpmhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/image/qxpmhandler.cpp b/src/gui/image/qxpmhandler.cpp
index a02b3ff..76cd813 100644
--- a/src/gui/image/qxpmhandler.cpp
+++ b/src/gui/image/qxpmhandler.cpp
@@ -882,7 +882,7 @@ static bool read_xpm_body(
QByteArray buf(200, 0);
int i;
- if (cpp > 15)
+ if (cpp < 0 || cpp > 15)
return false;
// For > 256 colors, we delay creation of the image until