diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2022-12-13 22:10:47 +0100 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-06-01 10:04:32 +1000 |
commit | bc07d371865095643ec4f7190f26b174830a2f02 (patch) | |
tree | 000a6da7de690df3c02698fec6ef9dc1e1e6fde0 /test | |
parent | 3410a72dce57651e08d5d2143409cde0205a8f3b (diff) | |
download | openssl-bc07d371865095643ec4f7190f26b174830a2f02.tar.gz |
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.t | 22 |
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); |