From a21e7bcf0ca3d8c1605b2721a545440260870438 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 29 Apr 2023 18:29:29 -0700 Subject: test: Add test case for CVE-2023-43789 (corrupt colormap info) Generated by clang's -fsanitize/libfuzzer Signed-off-by: Alan Coopersmith --- test/pixmaps/README.md | 3 +++ test/pixmaps/invalid/corrupt-colormap.xpm | Bin 0 -> 156 bytes 2 files changed, 3 insertions(+) create mode 100644 test/pixmaps/invalid/corrupt-colormap.xpm 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 Binary files /dev/null and b/test/pixmaps/invalid/corrupt-colormap.xpm differ -- cgit v1.2.3