diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2023-01-11 21:14:35 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-06-23 15:54:54 +0200 |
commit | a9e6100bc98439ca787aa1fce541550ad1ff3e84 (patch) | |
tree | 8d162d109e6f1125ed28f52a9b0842d05ce07806 /test | |
parent | adf33f9e268b17ec1b4739707abb40b03b21ea6a (diff) |
Add decoder fuzzer
This found CVE-2023-0217
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20269)
Diffstat (limited to 'test')
-rw-r--r-- | test/recipes/99-test_fuzz_decoder.t | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/recipes/99-test_fuzz_decoder.t b/test/recipes/99-test_fuzz_decoder.t new file mode 100644 index 0000000000..17758e03d0 --- /dev/null +++ b/test/recipes/99-test_fuzz_decoder.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 = "decoder"; +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); |