Use malloc to avoid alignment problems.
authorViktor Dukhovni <openssl-users@dukhovni.org>
Wed, 21 Feb 2018 13:25:49 +0000 (08:25 -0500)
committerRich Salz <rsalz@openssl.org>
Wed, 21 Feb 2018 13:25:49 +0000 (08:25 -0500)
commit649cfb5cbb78e3c4c91ceb65fad2a4daad6047dd
tree0ebdfde9314ee84534bf7e88159d733a14917994
parent405988f2cca816fdfdf8ad62b1285dcf06822e85
Use malloc to avoid alignment problems.

Thanks to Norm Green for reporting this issue.

Signed-off-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5423)
test/asn1_encode_test.c