summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-04-29 18:29:29 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-09-22 14:11:16 -0700
commita21e7bcf0ca3d8c1605b2721a545440260870438 (patch)
treeeacd1e0c32ad92d9e90bc37b367ce17eeab79555
parent2fa554b01ef6079a9b35df9332bdc4f139ed67e0 (diff)
test: Add test case for CVE-2023-43789 (corrupt colormap info)
Generated by clang's -fsanitize/libfuzzer Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--test/pixmaps/README.md3
-rw-r--r--test/pixmaps/invalid/corrupt-colormap.xpmbin0 -> 156 bytes
2 files changed, 3 insertions, 0 deletions
diff --git a/test/pixmaps/README.md b/test/pixmaps/README.md
index f51af00..4f2cbae 100644
--- a/test/pixmaps/README.md
+++ b/test/pixmaps/README.md
@@ -58,6 +58,9 @@ return XpmFileInvalid when parsed.
- zero-width.xpm & zero-width-v1.xpm - These files declare a width of 0
and a height of nearly UINT_MAX, to test for CVE-2022-44617
+- corrupt-colormap.xpm - This file was generated by the clang libfuzzer,
+ and serves as a test for CVE-2023-43789
+
no-mem
------
diff --git a/test/pixmaps/invalid/corrupt-colormap.xpm b/test/pixmaps/invalid/corrupt-colormap.xpm
new file mode 100644
index 0000000..46cd738
--- /dev/null
+++ b/test/pixmaps/invalid/corrupt-colormap.xpm
Binary files differ