diff options
author | Bastien Nocera <hadess@hadess.net> | 2019-03-01 12:22:00 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2019-03-01 12:52:35 +0100 |
commit | bdc269f0bae163ce7fbbeaddde577fbb9b2e395d (patch) | |
tree | 7b0fffeaea755a441c4b7cd419d0ebc75c4383be | |
parent | 855ff36b933c078967ebbcf6d31799efccf9485d (diff) | |
download | gdk-pixbuf-bdc269f0bae163ce7fbbeaddde577fbb9b2e395d.tar.gz |
tests: Add test image for invalid XPM data
-rw-r--r-- | tests/test-images/fail/issue-95-too-narrow.xpm | 34 | ||||
-rw-r--r-- | tests/test-images/fail/issue-95-too-short.xpm | 34 |
2 files changed, 68 insertions, 0 deletions
diff --git a/tests/test-images/fail/issue-95-too-narrow.xpm b/tests/test-images/fail/issue-95-too-narrow.xpm new file mode 100644 index 000000000..d5b53100e --- /dev/null +++ b/tests/test-images/fail/issue-95-too-narrow.xpm @@ -0,0 +1,34 @@ +/* XPM */ +static char * plaid[] = { +/* plaid pixmap + * width height ncolors chars_per_pixel */ +"220 220 4 2 ", +/* colors */ +" c red m white s light_color ", +"Y c green m black s lines_in_mix ", +"+ c yellow m white s lines_in_dark ", +"x m black s dark_color ", +/* pixels */ +"x x x x x x x x x x x x + x x x x x ", +" x x x x x x x x x x x x x x x x ", +"x x x x x x x x x x x x + x x x x x ", +" x x x x x x x x x x x x x x x x ", +"x x x x x x x x x x x x + x x x x x ", +"Y Y Y Y Y x Y Y Y Y Y + x + x + x + x + x + ", +"x x x x x x x x x x x x + x x x x x ", +" x x x x x x x x x x x x x x x x ", +"x x x x x x x x x x x x + x x x x x ", +" x x x x x x x x x x x x x x x x ", +"x x x x x x x x x x x x + x x x x x ", +" x x x x Y x x x ", +" x x x Y x x ", +" x x x x Y x x x ", +" x x x Y x x ", +" x x x x Y x x x ", +"x x x x x x x x x x x x x x x x x x x x x x ", +" x x x x Y x x x ", +" x x x Y x x ", +" x x x x Y x x x ", +" x x x Y x x ", +" x x x x Y x x x " +} ; diff --git a/tests/test-images/fail/issue-95-too-short.xpm b/tests/test-images/fail/issue-95-too-short.xpm new file mode 100644 index 000000000..a378c1f93 --- /dev/null +++ b/tests/test-images/fail/issue-95-too-short.xpm @@ -0,0 +1,34 @@ +/* XPM */ +static char * plaid[] = { +/* plaid pixmap + * width height ncolors chars_per_pixel */ +"22 220 4 2 ", +/* colors */ +" c red m white s light_color ", +"Y c green m black s lines_in_mix ", +"+ c yellow m white s lines_in_dark ", +"x m black s dark_color ", +/* pixels */ +"x x x x x x x x x x x x + x x x x x ", +" x x x x x x x x x x x x x x x x ", +"x x x x x x x x x x x x + x x x x x ", +" x x x x x x x x x x x x x x x x ", +"x x x x x x x x x x x x + x x x x x ", +"Y Y Y Y Y x Y Y Y Y Y + x + x + x + x + x + ", +"x x x x x x x x x x x x + x x x x x ", +" x x x x x x x x x x x x x x x x ", +"x x x x x x x x x x x x + x x x x x ", +" x x x x x x x x x x x x x x x x ", +"x x x x x x x x x x x x + x x x x x ", +" x x x x Y x x x ", +" x x x Y x x ", +" x x x x Y x x x ", +" x x x Y x x ", +" x x x x Y x x x ", +"x x x x x x x x x x x x x x x x x x x x x x ", +" x x x x Y x x x ", +" x x x Y x x ", +" x x x x Y x x x ", +" x x x Y x x ", +" x x x x Y x x x " +} ; |