Fix the error handling in CRYPTO_dup_ex_data.
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 20 Mar 2017 17:52:44 +0000 (18:52 +0100)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 20 Mar 2017 18:35:39 +0000 (19:35 +0100)
commitd63f25ff84740b4fd955bc2de4bb5f55b9d79adf
treef07216ecf04173d68a6e55fb9768fa148e60239b
parent2af4b3fe32a82aed296c88cea13508701d0dd34b
Fix the error handling in CRYPTO_dup_ex_data.
Fix a strict aliasing issue in ui_dup_method_data.
Add test coverage for CRYPTO_dup_ex_data, use OPENSSL_assert.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2997)
crypto/ex_data.c
doc/crypto/CRYPTO_get_ex_new_index.pod
include/openssl/crypto.h
test/exdatatest.c