In d2i_test return error for malloc failure.
authorDr. Stephen Henson <steve@openssl.org>
Fri, 22 Apr 2016 17:37:42 +0000 (18:37 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 22 Apr 2016 23:29:03 +0000 (00:29 +0100)
commit53e409db615550c4bf5da2c9a5f56c7065315636
treefee28e7f0064fa3dc5af6883de5c7f7d7c526dda
parentc62981390d6cf9e3d612c489b8b77c2913b25807
In d2i_test return error for malloc failure.

Bad ASN.1 data should never be able to trigger a malloc failure so return
an error in d2i_test if a malloc failure occurs.

Reviewed-by: Richard Levitte <levitte@openssl.org>
test/d2i_test.c