Set error code on alloc failures
authorRich Salz <rsalz@openssl.org>
Tue, 3 Apr 2018 15:31:16 +0000 (11:31 -0400)
committerRich Salz <rsalz@openssl.org>
Tue, 3 Apr 2018 15:31:16 +0000 (11:31 -0400)
commitcdb10bae3f773401e039c55965eb177a6f3fc160
treec69b1b2bc385d3f600684cf8285b9ff80322c48f
parent29f484d00d732ea4c19a7fd3dc0440045653e79e
Set error code on alloc failures

Almost all *alloc failures now set an error code.

Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/5842)
85 files changed:
crypto/asn1/a_object.c
crypto/asn1/a_strex.c
crypto/asn1/a_strnid.c
crypto/asn1/asn1_err.c
crypto/asn1/asn_moid.c
crypto/asn1/bio_asn1.c
crypto/asn1/bio_ndef.c
crypto/asn1/tasn_enc.c
crypto/asn1/tasn_new.c
crypto/asn1/tasn_utl.c
crypto/asn1/x_int64.c
crypto/async/async_err.c
crypto/async/async_wait.c
crypto/bio/b_addr.c
crypto/bio/b_print.c
crypto/bio/bf_lbuf.c
crypto/bio/bio_err.c
crypto/bio/bss_dgram.c
crypto/bn/bn_ctx.c
crypto/bn/bn_err.c
crypto/cms/cms_enc.c
crypto/cms/cms_err.c
crypto/cms/cms_pwri.c
crypto/conf/conf_err.c
crypto/conf/conf_mod.c
crypto/cpt_err.c
crypto/dh/dh_err.c
crypto/dh/dh_pmeth.c
crypto/ec/ec_err.c
crypto/ec/ec_key.c
crypto/ec/ec_lib.c
crypto/ec/ec_oct.c
crypto/ec/ec_pmeth.c
crypto/ec/ec_print.c
crypto/engine/eng_err.c
crypto/engine/eng_lib.c
crypto/engine/eng_openssl.c
crypto/err/err.c
crypto/err/openssl.txt
crypto/evp/bio_b64.c
crypto/evp/bio_enc.c
crypto/evp/bio_ok.c
crypto/evp/e_aes.c
crypto/evp/e_aria.c
crypto/evp/evp_err.c
crypto/init.c
crypto/kdf/hkdf.c
crypto/kdf/kdf_err.c
crypto/kdf/tls1_prf.c
crypto/o_fopen.c
crypto/objects/obj_err.c
crypto/objects/obj_xref.c
crypto/pem/pem_err.c
crypto/pem/pvkfmt.c
crypto/rsa/rsa_err.c
crypto/rsa/rsa_mp.c
crypto/rsa/rsa_pmeth.c
crypto/srp/srp_vfy.c
crypto/stack/stack.c
crypto/ui/ui_err.c
crypto/ui/ui_lib.c
include/openssl/asn1err.h
include/openssl/asyncerr.h
include/openssl/bioerr.h
include/openssl/bnerr.h
include/openssl/cmserr.h
include/openssl/conferr.h
include/openssl/cryptoerr.h
include/openssl/dherr.h
include/openssl/ecerr.h
include/openssl/engineerr.h
include/openssl/evperr.h
include/openssl/kdferr.h
include/openssl/objectserr.h
include/openssl/pemerr.h
include/openssl/rsaerr.h
include/openssl/sslerr.h
include/openssl/uierr.h
ssl/packet.c
ssl/pqueue.c
ssl/ssl_ciph.c
ssl/ssl_err.c
ssl/ssl_lib.c
ssl/statem/statem_dtls.c
ssl/t1_lib.c