]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Add CVE-2022-37434 test.
authorVladislav Shchapov <vladislav@shchapov.ru>
Fri, 19 Aug 2022 11:33:59 +0000 (16:33 +0500)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 17 Mar 2023 20:27:56 +0000 (21:27 +0100)
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
test/infcover.c

index 3446289eff731a9c42b63cb76a12c8a981902609..cc597f36a5bd74fbf7bc001a040b755bdd109ca2 100644 (file)
@@ -670,6 +670,10 @@ static void cover_fast(void) {
         Z_STREAM_END);
 }
 
+static void cover_cve_2022_37434(void) {
+    inf("1f 8b 08 04 61 62 63 64 61 62 52 51 1f 8b 08 04 61 62 63 64 61 62 52 51 1f 8b 08 04 61 62 63 64 61 62 52 51 1f 8b 08 04 61 62 63 64 61 62 52 51", "wtf", 13, 47, 12, Z_OK);
+}
+
 int main(void) {
     fprintf(stderr, "%s\n", zVersion());
     cover_support();
@@ -678,5 +682,6 @@ int main(void) {
     cover_inflate();
     cover_trees();
     cover_fast();
+    cover_cve_2022_37434();
     return 0;
 }