openssl/crypto
zsugabubus daa86f9e6b Check input size before NULL pointer test inside mem_write()
Checking is performed after the read-only test so it catches such errors
earlier.

CLA: trivial

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13786)
2021-01-21 18:35:43 +01:00
..
aes remove unused initialisations 2020-12-03 11:22:06 +10:00
aria Reorganize private crypto header files 2019-09-28 20:26:34 +02:00
asn1 X509: Enable printing cert even with invalid validity times, saying 'Bad time value' 2021-01-20 15:55:58 +01:00
async Update copyright year 2021-01-07 13:38:50 +00:00
bf Update copyright year 2020-04-23 13:55:52 +01:00
bio Check input size before NULL pointer test inside mem_write() 2021-01-21 18:35:43 +01:00
bn Fix incorrect use of BN_CTX API 2021-01-13 10:35:27 +01:00
buffer Update copyright year 2020-11-26 14:18:57 +00:00
camellia Update copyright year 2020-04-23 13:55:52 +01:00
cast Fix logic error for building x86 CAST assembly 2020-06-14 12:35:34 -07:00
chacha Fix aarch64 static linking into shared libraries (see issue #10842 and pull request #11464) 2020-10-22 12:16:49 +10:00
cmac Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
cmp CMP: Allow PKCS#10 input also for ir, cr, kur, and rr messages 2021-01-21 17:53:26 +01:00
cms dh_cms_set_shared_info: Use explicit fetch to be able to provide libctx 2021-01-21 18:08:02 +01:00
comp Update copyright year 2020-11-26 14:18:57 +00:00
conf Skip BOM when reading the config file 2021-01-14 11:20:10 +01:00
crmf ERR: Rebuild all generated error headers and source files 2020-11-24 15:22:33 +01:00
ct X509v3_get_ext_by_NID.pod: Add warning on counter-intuitive behavior of X509v3_delete_ext() etc. 2021-01-20 15:59:22 +01:00
des Fix crypto/des/build.info 2021-01-15 11:19:25 +01:00
dh Allow EVP_PKEY private key objects to be created without a public component 2021-01-15 17:24:41 +01:00
dsa Remove pkey_downgrade from PKCS7 code 2021-01-20 15:35:26 +10:00
dso Update copyright year 2020-11-26 14:18:57 +00:00
ec Remove pkey_downgrade from PKCS7 code 2021-01-20 15:35:26 +10:00
encode_decode Use centralized fetching errors 2021-01-12 19:02:11 +01:00
engine Drop OPENSSL_NO_RSA everywhere 2020-12-20 12:19:42 +01:00
err replace all BIO_R_NULL_PARAMETER by ERR_R_PASSED_NULL_PARAMETER 2021-01-16 11:29:43 +01:00
ess ERR: Rebuild all generated error headers and source files 2020-11-24 15:22:33 +01:00
evp Fixes related to broken DH support in CMS 2021-01-21 18:08:02 +01:00
ffc EVP_PKEY & DH: Make DH EVP_PKEY_CTX parameter ctrls / setters more available 2020-12-16 11:55:39 +01:00
hmac Delete unused PKEY MAC files 2020-08-29 17:40:11 +10:00
http Deprecate OCSP_xxx API for OSSL_HTTP_xxx 2021-01-19 11:13:15 +01:00
idea Update copyright year 2020-04-23 13:55:52 +01:00
kdf Deprecate ERR_load_KDF_strings() 2019-11-12 13:30:35 +01:00
lhash Update copyright year 2020-11-26 14:18:57 +00:00
md2 Update copyright year 2020-04-23 13:55:52 +01:00
md4 Update copyright year 2020-04-23 13:55:52 +01:00
md5 Update copyright year 2020-11-26 14:18:57 +00:00
mdc2 Update copyright year 2020-04-23 13:55:52 +01:00
modes Update copyright year 2020-11-26 14:18:57 +00:00
objects Update copyright years of auto-generated headers (make update) 2021-01-04 07:15:24 +01:00
ocsp Deprecate OCSP_xxx API for OSSL_HTTP_xxx 2021-01-19 11:13:15 +01:00
pem Make PEM_X509_INFO_read_bio_ex() conservative on the error queue 2021-01-13 09:09:36 +01:00
perlasm Fix many MarkDown issues in {NOTES*,README*,HACKING,LICENSE}.md files 2020-07-05 11:29:43 +02:00
pkcs7 Remove pkey_downgrade from PKCS7 code 2021-01-20 15:35:26 +10:00
pkcs12 Update copyright year 2020-11-26 14:18:57 +00:00
poly1305 crypto/poly1305/asm: fix armv8 pointer authentication 2020-10-29 17:17:21 +01:00
property ERR: Rebuild all generated error headers and source files 2020-11-24 15:22:33 +01:00
rand Enable locking on the primary DRBG when we create it 2021-01-14 17:30:46 +00:00
rc2 Update copyright year 2020-04-23 13:55:52 +01:00
rc4 rename md5_block_asm_data_order to ossl_md5_block_asm_data_order 2020-11-19 07:38:58 +10:00
rc5 Update copyright year 2020-04-23 13:55:52 +01:00
ripemd Diverse build.info: Adjust paths 2020-09-10 09:50:56 +02:00
rsa Remove pkey_downgrade from PKCS7 code 2021-01-20 15:35:26 +10:00
seed Update copyright year 2020-04-23 13:55:52 +01:00
sha Update copyright year 2020-11-26 14:18:57 +00:00
siphash Delete unused PKEY MAC files 2020-08-29 17:40:11 +10:00
sm2 Add SM2 private key range validation 2021-01-08 23:59:02 +02:00
sm3 Cleanup legacy digest methods. 2019-12-18 14:46:01 +10:00
sm4 Reorganize private crypto header files 2019-09-28 20:26:34 +02:00
srp Ensure SRP BN_mod_exp follows the constant time path 2021-01-20 16:26:22 +00:00
stack Update copyright year 2020-11-26 14:18:57 +00:00
store Use centralized fetching errors 2021-01-12 19:02:11 +01:00
ts Update copyright year 2020-11-26 14:18:57 +00:00
txt_db
ui ERR: Rebuild all generated error headers and source files 2020-11-24 15:22:33 +01:00
whrlpool Avoid undefined behavior with unaligned accesses 2020-05-27 20:11:20 +02:00
x509 X509_REQ_get_extensions(): Return empty stack if no extensions found 2021-01-21 17:53:26 +01:00
alphacpuid.pl Update copyright year 2020-04-23 13:55:52 +01:00
arm64cpuid.pl Read MIDR_EL1 system register on aarch64 2020-12-09 16:17:17 +01:00
arm_arch.h Read MIDR_EL1 system register on aarch64 2020-12-09 16:17:17 +01:00
armcap.c OPENSSL_cpuid_setup FreeBSD arm update. 2021-01-14 08:34:38 +00:00
armv4cpuid.pl Update copyright year 2020-04-23 13:55:52 +01:00
asn1_dsa.c Update copyright year 2020-10-15 14:10:06 +01:00
bsearch.c
build.info Fix no-threads 2020-12-14 10:45:27 +10:00
c64xpluscpuid.pl Update copyright year 2020-04-23 13:55:52 +01:00
context.c Make sure we take the ctx->lock in ossl_lib_ctx_generic_new() 2021-01-14 17:30:46 +00:00
core_algorithm.c Rename OPENSSL_CTX prefix to OSSL_LIB_CTX 2020-10-15 11:59:53 +01:00
core_fetch.c Fix a failure where fetches can return NULL in multi-threaded code 2021-01-14 17:30:46 +00:00
core_namemap.c Rename OPENSSL_CTX prefix to OSSL_LIB_CTX 2020-10-15 11:59:53 +01:00
cpt_err.c openssl_hexstr2buf_sep(): Prevent misleading 'malloc failure' errors on short input 2020-12-10 15:19:55 +01:00
cryptlib.c Update copyright year 2020-10-15 14:10:06 +01:00
ctype.c Reorganize private crypto header files 2019-09-28 20:26:34 +02:00
cversion.c Cleanup include/openssl/opensslv.h.in 2019-11-08 16:12:57 +01:00
der_writer.c der: _ossl prefix DER functions 2020-10-01 11:25:12 +10:00
dllmain.c Reorganize private crypto header files 2019-09-28 20:26:34 +02:00
ebcdic.c
ex_data.c Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
getenv.c Update copyright year 2020-10-15 14:10:06 +01:00
ia64cpuid.S
info.c Print CPUINFO also for s390 processors 2020-06-22 02:35:01 +02:00
init.c Optimise OPENSSL_init_crypto 2020-12-31 13:14:38 +01:00
initthread.c Fix a crash with multi-threaded applications using the FIPS module 2021-01-14 17:30:46 +00:00
LPdir_nyi.c
LPdir_unix.c Fix a -Warray-bounds gcc warning in OPENSSL_DIR_read 2019-11-09 10:49:34 +01:00
LPdir_vms.c
LPdir_win32.c
LPdir_win.c
LPdir_wince.c
mem_clr.c
mem_sec.c Add MAP_CONCEAL from OpenBSD which has similar purpose but on mmap 2020-12-08 18:27:07 +01:00
mem.c Rename FIPS_MODE to FIPS_MODULE 2020-04-28 15:37:37 +02:00
mips_arch.h Fix header file include guard names 2019-09-28 20:26:36 +02:00
o_dir.c
o_fopen.c Update copyright year 2020-11-26 14:18:57 +00:00
o_init.c
o_str.c openssl_hexstr2buf_sep(): Prevent misleading 'malloc failure' errors on short input 2020-12-10 15:19:55 +01:00
o_time.c Update copyright year 2020-07-16 14:47:04 +02:00
packet.c Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
param_build_set.c DH: make the private key length importable / exportable 2020-10-19 12:14:11 +02:00
param_build.c Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
params_from_text.c Change OPENSSL_hexstr2buf_ex() & OPENSSL_buf2hexstr_ex() to pass the separator 2020-12-07 17:14:58 +10:00
params.c params: allow more variations in integer conversions. 2020-12-12 21:43:07 +10:00
pariscid.pl Update copyright year 2020-04-23 13:55:52 +01:00
passphrase.c CORE: Fix small bug in passphrase caching 2020-09-03 17:48:32 +02:00
ppc_arch.h Fix header file include guard names 2019-09-28 20:26:36 +02:00
ppccap.c OPENSSL_cpuid_setup FreeBSD PowerPC update 2021-01-14 08:27:14 +00:00
ppccpuid.pl Update copyright year 2020-04-23 13:55:52 +01:00
provider_conf.c CRYPTO: refactor ERR_raise()+ERR_add_error_data() to ERR_raise_data() 2020-11-13 09:35:31 +01:00
provider_core.c Fix an issue in provider_activate_fallbacks() 2021-01-14 17:30:46 +00:00
provider_local.h
provider_predefined.c serialisation: Add a built-in base provider. 2020-07-30 20:15:22 +10:00
provider.c CORE: Separate OSSL_PROVIDER activation from OSSL_PROVIDER reference 2020-12-17 12:02:08 +01:00
punycode.c Update copyright year 2020-10-15 14:10:06 +01:00
README-sparse_array.md Fix many MarkDown issues in {NOTES*,README*,HACKING,LICENSE}.md files 2020-07-05 11:29:43 +02:00
s390x_arch.h Update copyright year 2020-04-23 13:55:52 +01:00
s390xcap.c crypto/s390xcap.c: Add guards around the GETAUXVAL checks 2019-10-21 15:14:09 +02:00
s390xcpuid.pl Update copyright year 2020-04-23 13:55:52 +01:00
self_test_core.c Rename OPENSSL_CTX prefix to OSSL_LIB_CTX 2020-10-15 11:59:53 +01:00
sparc_arch.h Fix header file include guard names 2019-09-28 20:26:36 +02:00
sparccpuid.S
sparcv9cap.c Update copyright year 2020-04-23 13:55:52 +01:00
sparse_array.c Update copyright year 2020-10-15 14:10:06 +01:00
threads_lib.c Fix no-threads 2020-12-14 10:45:27 +10:00
threads_none.c Add some more CRYPTO_atomic functions 2020-12-31 13:14:38 +01:00
threads_pthread.c Add some more CRYPTO_atomic functions 2020-12-31 13:14:38 +01:00
threads_win.c Add some more CRYPTO_atomic functions 2020-12-31 13:14:38 +01:00
trace.c ENCODER: Add tracing 2020-11-11 12:43:27 +01:00
uid.c
vms_rms.h
x86_64cpuid.pl Update copyright year 2020-04-23 13:55:52 +01:00
x86cpuid.pl Update copyright year 2020-04-23 13:55:52 +01:00