diff options
author | Emilia Kasper <emilia@openssl.org> | 2016-03-30 22:37:05 +0200 |
---|---|---|
committer | Emilia Kasper <emilia@openssl.org> | 2016-04-04 13:26:06 +0200 |
commit | 1400f013e10c8ec624947d9187bebb20274385dc (patch) | |
tree | b8006f9b9202c9e4d9d54b73f2e78a75cad5511a /test/recipes/25-test_d2i.t | |
parent | b5851bbc43dcf497189d16395dfa925d1562ee06 (diff) |
Fix memory leaks in ASN.1
These leaks affect 1.1.0 dev branch only; introduced around commit
f93ad22f6adb00e722c130e792799467f3927b56
Found with LibFuzzer
Reviewed-by: Ben Laurie <ben@openssl.org>
Diffstat (limited to 'test/recipes/25-test_d2i.t')
-rw-r--r-- | test/recipes/25-test_d2i.t | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/recipes/25-test_d2i.t b/test/recipes/25-test_d2i.t new file mode 100644 index 0000000000..a9c259d118 --- /dev/null +++ b/test/recipes/25-test_d2i.t @@ -0,0 +1,19 @@ +#! /usr/bin/perl + +use strict; +use warnings; + +use File::Spec; +use OpenSSL::Test qw/:DEFAULT srctop_file/; + +setup("test_d2i"); + +plan tests => 2; + +ok(run(test(["d2i_test", "x509", + srctop_file('test','d2i-tests','bad_cert.der')])), + "Running d2i_test bad_cert.der"); + +ok(run(test(["d2i_test", "generalname", + srctop_file('test','d2i-tests','bad_generalname.der')])), + "Running d2i_test bad_generalname.der"); |