summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKurt Roeckx <kurt@roeckx.be>2022-12-13 22:10:47 +0100
committerPauli <pauli@openssl.org>2023-06-01 10:04:32 +1000
commitbc07d371865095643ec4f7190f26b174830a2f02 (patch)
tree000a6da7de690df3c02698fec6ef9dc1e1e6fde0 /test
parent3410a72dce57651e08d5d2143409cde0205a8f3b (diff)
Add PEM fuzzer
This fuzzer can find CVE-2022-4450 Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20242)
Diffstat (limited to 'test')
-rw-r--r--test/recipes/99-test_fuzz_pem.t22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/recipes/99-test_fuzz_pem.t b/test/recipes/99-test_fuzz_pem.t
new file mode 100644
index 0000000000..a0ca846afd
--- /dev/null
+++ b/test/recipes/99-test_fuzz_pem.t
@@ -0,0 +1,22 @@
+#!/usr/bin/env perl
+# Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved.
+#
+# Licensed under the Apache License 2.0 (the "License"). You may not use
+# this file except in compliance with the License. You can obtain a copy
+# in the file LICENSE in the source distribution or at
+# https://www.openssl.org/source/license.html
+
+use strict;
+use warnings;
+
+use OpenSSL::Test qw/:DEFAULT srctop_file/;
+use OpenSSL::Test::Utils;
+
+my $fuzzer = "pem";
+setup("test_fuzz_${fuzzer}");
+
+plan tests => 2; # one more due to below require_ok(...)
+
+require_ok(srctop_file('test','recipes','fuzz.pl'));
+
+fuzz_ok($fuzzer);