summaryrefslogtreecommitdiff
path: root/lib/libXpm/test/pixmaps/invalid/unending-comment-c.xpm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libXpm/test/pixmaps/invalid/unending-comment-c.xpm')
-rw-r--r--lib/libXpm/test/pixmaps/invalid/unending-comment-c.xpm30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/libXpm/test/pixmaps/invalid/unending-comment-c.xpm b/lib/libXpm/test/pixmaps/invalid/unending-comment-c.xpm
new file mode 100644
index 000000000..c6056c66b
--- /dev/null
+++ b/lib/libXpm/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
+".+++++++++++++.",
+"+@@@@@@@@@@@@#+",
+"+@###########$+",
+"+@###....####$+",
+"+@##......###$+",
+"+@#...$$...##$+",
+"+@#..$$##..$#$+",
+"+@##$$##...$#$+",
+"+@#####...$$#$+",
+"+@####...$$##$+",
+"+@####..$$###$+",
+"+@####..$####$+",
+"+@#####$$####$+",
+"+@####..#####$+",
+"+@####..$####$+",
+"+@#####$$####$+",
+"+@###########$+",
+"+#$$$$$$$$$$$$+",
+".+++++++++++++."};