Allocate ASN1_bn_print buffer internally.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 4 Feb 2016 18:53:07 +0000 (18:53 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 5 Feb 2016 00:33:33 +0000 (00:33 +0000)
commitac3e3665016e4441475276461d5f910eb9e9ea15
tree70ff5383d5e4a639afc03124312244e4e8594db3
parent907e95006820c84d2efe1adb2c8af8340f3ba6cc
Allocate ASN1_bn_print buffer internally.

Don't require an application to work out the appropriate buffer size for
ASN1_bn_print(), which is unsafe. Ignore the supplied buffer and allocate
it internally instead.

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
crypto/asn1/t_pkey.c