summaryrefslogtreecommitdiffstats
path: root/tests/auto/qimagereader/images
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2011-02-18 08:25:50 (GMT)
committerSamuel Rødal <samuel.rodal@nokia.com>2011-02-18 08:34:50 (GMT)
commitdb9925a187a9ad395ba2cabf23487b9a0e09c67c (patch)
tree068e19d6a0657c7e303c7fd854663b8ba19e6ca4 /tests/auto/qimagereader/images
parent23f9cec65a76e6aa0675ca426f9e4f6717790dbb (diff)
downloadQt-db9925a187a9ad395ba2cabf23487b9a0e09c67c.zip
Qt-db9925a187a9ad395ba2cabf23487b9a0e09c67c.tar.gz
Qt-db9925a187a9ad395ba2cabf23487b9a0e09c67c.tar.bz2
Added test case for corrupt pixel count in XPM image.
Fixed by merge request 1080. Task-number: QTBUG-17254
Diffstat (limited to 'tests/auto/qimagereader/images')
-rw-r--r--tests/auto/qimagereader/images/corrupt-pixel-count.xpm11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/qimagereader/images/corrupt-pixel-count.xpm b/tests/auto/qimagereader/images/corrupt-pixel-count.xpm
new file mode 100644
index 0000000..3a736ff
--- /dev/null
+++ b/tests/auto/qimagereader/images/corrupt-pixel-count.xpm
@@ -0,0 +1,11 @@
+/* XPM */
+static const char *marble_xpm[] = {
+/* width height num_colors chars_per_pixel */
+"2 2 2 -2",
+/* colors */
+"a c #adadad",
+"b c #dedede",
+/* pixels */
+"ab",
+"ba"
+};