openssl/test/recipes/25-test_d2i.t
Emilia Kasper 1400f013e1 Fix memory leaks in ASN.1
These leaks affect 1.1.0 dev branch only; introduced around commit
f93ad22f6a

Found with LibFuzzer

Reviewed-by: Ben Laurie <ben@openssl.org>
2016-04-04 13:26:06 +02:00

19 lines
434 B
Perl

#! /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");