summaryrefslogtreecommitdiff
path: root/test/pixmaps/invalid/unending-comment-c.xpm
diff options
context:
space:
mode:
Diffstat (limited to 'test/pixmaps/invalid/unending-comment-c.xpm')
-rw-r--r--test/pixmaps/invalid/unending-comment-c.xpm30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/pixmaps/invalid/unending-comment-c.xpm b/test/pixmaps/invalid/unending-comment-c.xpm
new file mode 100644
index 0000000..c6056c6
--- /dev/null
+++ b/test/pixmaps/invalid/unending-comment-c.xpm
@@ -0,0 +1,30 @@
+/* XPM */
+static char * sample_xpm[] = {
+"15 19 6 1",
+" c None",
+". c #FFFFFF",
+"+ c #000000",
+"@ c #99FFCC",
+"# c #66CCCC",
+"$ c #339966",
+/* This is the comment that never ends, it just goes on and on again...
+ Based on test case provided by Marco Ivaldi for CVE-2022-46285
+".+++++++++++++.",
+"+@@@@@@@@@@@@#+",
+"+@###########$+",
+"+@###....####$+",
+"+@##......###$+",
+"+@#...$$...##$+",
+"+@#..$$##..$#$+",
+"+@##$$##...$#$+",
+"+@#####...$$#$+",
+"+@####...$$##$+",
+"+@####..$$###$+",
+"+@####..$####$+",
+"+@#####$$####$+",
+"+@####..#####$+",
+"+@####..$####$+",
+"+@#####$$####$+",
+"+@###########$+",
+"+#$$$$$$$$$$$$+",
+".+++++++++++++."};