Test that we don't have a memory leak in d2i_ASN1_OBJECT.
authorShane Lontis <shane.lontis@oracle.com>
Wed, 21 Apr 2021 03:49:29 +0000 (13:49 +1000)
committerRichard Levitte <levitte@openssl.org>
Tue, 27 Apr 2021 10:43:52 +0000 (12:43 +0200)
commite466dc3646bc15fa928366a2c64ed987daab5b2c
treeeb4db326d9dd9b3d11a449e2f3a0c5b4ee8f4cf6
parent1727465471e800548694da96b8970743b7efa7ff
Test that we don't have a memory leak in d2i_ASN1_OBJECT.

Fixes #14667

Reworked test supplied by @smcpeak into a unit test.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14938)

(cherry picked from commit 7c65179ad95d0f6f598ee82e763fce2567fe5802)
test/asn1_decode_test.c