Skip to content

Commit

Permalink
add test for CVE-2016-2109
Browse files Browse the repository at this point in the history
Reviewed-by: Richard Levitte <levitte@openssl.org>
  • Loading branch information
snhenson committed Apr 22, 2016
1 parent 53e409d commit 9f13d4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Binary file added test/d2i-tests/bad_bio.der
Binary file not shown.
6 changes: 5 additions & 1 deletion test/recipes/25-test_d2i.t
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use OpenSSL::Test qw/:DEFAULT srctop_file/;

setup("test_d2i");

plan tests => 2;
plan tests => 3;

ok(run(test(["d2i_test", "X509", "decode",
srctop_file('test','d2i-tests','bad_cert.der')])),
Expand All @@ -24,3 +24,7 @@ ok(run(test(["d2i_test", "X509", "decode",
ok(run(test(["d2i_test", "GENERAL_NAME", "decode",
srctop_file('test','d2i-tests','bad_generalname.der')])),
"Running d2i_test bad_generalname.der");

ok(run(test(["d2i_test", "ASN1_ANY", "BIO",
srctop_file('test','d2i-tests','bad_bio.der')])),
"Running d2i_test bad_bio.der");

0 comments on commit 9f13d4d

Please sign in to comment.