Fix the error handling in CRYPTO_dup_ex_data.
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Sun, 19 Mar 2017 15:14:33 +0000 (16:14 +0100)
committerRichard Levitte <levitte@openssl.org>
Mon, 20 Mar 2017 12:11:31 +0000 (13:11 +0100)
commitb3c31a6572bd7b89f469deb3c78f85f6e303df47
tree7f6da94a8d2cacb405c58a651e425a1da6c04c99
parente41e5d1e73c878261560e4b122cf309a0ecb42b8
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/2988)
crypto/ex_data.c
doc/man3/CRYPTO_get_ex_new_index.pod
include/openssl/crypto.h
test/exdatatest.c