openssl/crypto
valdaarhun 683480726f Fixes segfault occurrence in PEM_write()
Checks if header is NULL or not before calling strlen().

CLA: trivial

Fixes #18825

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18865)

(cherry picked from commit 205957405d)
2022-07-29 12:39:22 +10:00
..
aes Fix reported performance degradation on aarch64 2022-07-08 11:07:41 +02:00
aria
asn1 Handle SMIME_crlf_copy return code 2022-07-28 10:07:33 +01:00
async Update copyright year 2022-03-15 13:52:58 +00:00
bf Rename x86-32 assembly files from .s to .S. 2022-05-24 13:17:03 +10:00
bio Coverity 1506566: unchecked return value 2022-07-17 17:52:07 +10:00
bn Update copyright year 2022-07-05 10:33:12 +02:00
buffer Update copyright year 2021-06-17 13:24:59 +01:00
camellia Rename x86-32 assembly files from .s to .S. 2022-05-24 13:17:03 +10:00
cast Rename x86-32 assembly files from .s to .S. 2022-05-24 13:17:03 +10:00
chacha Generate the preprocessed .s files for chacha and poly 1305 on ia64 2022-05-27 08:12:00 +02:00
cmac Update copyright year 2022-06-21 14:03:39 +01:00
cmp cmp_http.c: extend comment in keep_alive() 2022-07-11 11:14:30 +02:00
cms Handle SMIME_crlf_copy return code 2022-07-28 10:07:33 +01:00
comp Fix coverity 1493364 & 1493375: unchecked return value 2021-11-08 08:56:38 +10:00
conf Avoid crashing if CONF_modules_unload() is called after OPENSSL_cleanup() 2022-07-01 11:21:26 +02:00
crmf Update copyright year 2022-06-21 14:03:39 +01:00
ct Update copyright year 2022-06-21 14:03:39 +01:00
des Rename x86-32 assembly files from .s to .S. 2022-05-24 13:17:03 +10:00
dh For known safe primes use the minimum key length according to RFC 7919 2022-07-19 12:11:02 +02:00
dsa Coverity: fix 1506297: negative returns 2022-07-01 16:37:02 +10:00
dso Update copyright year 2021-12-14 14:41:27 +00:00
ec Fix EC ASM flag passing 2022-07-14 14:03:31 +02:00
encode_decode "Reserve" the method store when constructing methods 2022-07-20 07:29:23 +01:00
engine Update copyright year 2022-05-03 13:36:42 +01:00
err Update copyright year 2022-06-21 14:03:39 +01:00
ess
evp "Reserve" the method store when constructing methods 2022-07-20 07:29:23 +01:00
ffc ossl_ffc_params_copy: Copy the keylength too 2022-07-19 12:11:02 +02:00
hmac Adapt other parts of the source to the changed EVP_Q_digest() and EVP_Q_mac() 2021-06-23 23:00:36 +02:00
http http_client.c: 2nd fix for calculation of Content-Length in set1_content() 2022-07-14 10:20:21 +02:00
idea
kdf
lhash Fix bug in OPENSSL_LH_flush 2022-04-25 13:20:13 +02:00
md2
md4
md5 Rename x86-32 assembly files from .s to .S. 2022-05-24 13:17:03 +10:00
mdc2
modes Rename x86-32 assembly files from .s to .S. 2022-05-24 13:17:03 +10:00
objects add a check for the return of OBJ_new_nid() 2022-07-13 11:26:52 +10:00
ocsp Update copyright year 2022-05-03 13:36:42 +01:00
pem Fixes segfault occurrence in PEM_write() 2022-07-29 12:39:22 +10:00
perlasm Update copyright year 2022-06-21 14:03:39 +01:00
pkcs7 Handle SMIME_crlf_copy return code 2022-07-28 10:07:33 +01:00
pkcs12 Fix memleak in PKCS12_pbe_crypt_ex() 2022-07-18 10:19:44 +02:00
poly1305 Generate the preprocessed .s files for chacha and poly 1305 on ia64 2022-05-27 08:12:00 +02:00
property "Reserve" the method store when constructing methods 2022-07-20 07:29:23 +01:00
rand Pre-declare all core dispatch table functions, and fix the internal ones 2022-07-13 07:59:55 +02:00
rc2
rc4 Rename x86-32 assembly files from .s to .S. 2022-05-24 13:17:03 +10:00
rc5 Rename x86-32 assembly files from .s to .S. 2022-05-24 13:17:03 +10:00
ripemd Rename x86-32 assembly files from .s to .S. 2022-05-24 13:17:03 +10:00
rsa Update copyright year 2022-07-05 10:33:12 +02:00
seed Update copyright year 2021-06-17 13:24:59 +01:00
sha Fix SHA, SHAKE, and KECCAK ASM flag passing 2022-07-11 09:28:53 +10:00
siphash Update copyright year 2022-05-03 13:36:42 +01:00
sm2 Add missing check according to SM2 Digital Signature generation algorithm 2021-11-02 12:12:38 +01:00
sm3
sm4
srp
stack
store "Reserve" the method store when constructing methods 2022-07-20 07:29:23 +01:00
ts ts: fix memleaks caused by TS_VERIFY_CTX_set_imprint 2021-08-26 11:06:06 +02:00
txt_db
ui Fix the check of UI_method_set_ex_data 2022-05-27 07:58:48 +02:00
whrlpool Rename x86-32 assembly files from .s to .S. 2022-05-24 13:17:03 +10:00
x509 Fix a crash in v2i_IPAddrBlocks() 2022-07-22 09:00:56 +01:00
LPdir_nyi.c
LPdir_unix.c Update copyright year 2022-05-03 13:36:42 +01:00
LPdir_vms.c
LPdir_win.c
LPdir_win32.c
LPdir_wince.c
README-sparse_array.md
alphacpuid.pl
arm64cpuid.pl
arm_arch.h Fix aarch64 signed bit shift issue found by UBSAN 2022-07-19 12:19:29 +02:00
armcap.c Fix detection of ARMv7 and ARM64 CPU features on FreeBSD 2021-11-24 11:01:27 +01:00
armv4cpuid.pl
asn1_dsa.c
bsearch.c
build.info Rename x86-32 assembly files from .s to .S. 2022-05-24 13:17:03 +10:00
c64xpluscpuid.pl
context.c Drop the last ossl_init_casecmp() call 2022-05-23 09:30:36 +02:00
core_algorithm.c "Reserve" the method store when constructing methods 2022-07-20 07:29:23 +01:00
core_fetch.c "Reserve" the method store when constructing methods 2022-07-20 07:29:23 +01:00
core_namemap.c str[n]casecmp => OPENSSL_strncasecmp 2022-04-21 17:12:32 +02:00
cpt_err.c Have OSSL_PARAM_allocate_from_text() raise error on unexpected neg number 2021-11-24 19:21:41 +01:00
cpuid.c
cryptlib.c crypto: remove TODOs 2021-06-02 16:30:15 +10:00
ctype.c tolower: refine the tolower code to avoid a memory access 2022-05-23 09:52:54 +10:00
cversion.c
der_writer.c Update copyright year 2022-07-05 10:33:12 +02:00
dllmain.c
ebcdic.c
ex_data.c
getenv.c
ia64cpuid.S
info.c
init.c Avoid reusing the init_lock for a different purpose 2022-06-15 09:46:29 +02:00
initthread.c Avoid a race in init_thread_stop() 2021-11-15 14:22:41 +00:00
mem.c Update copyright year 2022-03-15 13:52:58 +00:00
mem_clr.c
mem_sec.c Fix UWP builds by defining VirtualLock 2022-07-26 12:36:18 +01:00
mips_arch.h
o_dir.c
o_fopen.c
o_init.c
o_str.c strcasecmp: implement strcasecmp and strncasecmp 2022-05-23 09:54:29 +10:00
o_time.c
packet.c Update copyright year 2021-06-17 13:24:59 +01:00
param_build.c Make OSSL_PARAM_BLD_push_BN{,_pad}() return an error on negative numbers 2021-11-23 11:43:07 +01:00
param_build_set.c
params.c params: fix range check when converting double to uint64_t. 2021-06-19 15:47:57 +10:00
params_dup.c Update copyright year 2022-05-03 13:36:42 +01:00
params_from_text.c Allow sign extension in OSSL_PARAM_allocate_from_text() 2021-11-24 19:21:41 +01:00
pariscid.pl
passphrase.c Update copyright year 2022-03-15 13:52:58 +00:00
ppccap.c enable getauxval on android 10 2021-06-25 18:31:05 +10:00
ppccpuid.pl
provider.c Correctly activate the provider in OSSL_PROVIDER_try_load 2021-11-15 14:22:41 +00:00
provider_child.c Update copyright year 2022-06-21 14:03:39 +01:00
provider_conf.c Correctly activate the provider in OSSL_PROVIDER_try_load 2021-11-15 14:22:41 +00:00
provider_core.c Coverity 1503321 & 1503327: dereference after null check 2022-07-20 16:22:28 +10:00
provider_local.h make struct provider_info_st a full type 2021-06-24 14:48:15 +01:00
provider_predefined.c make struct provider_info_st a full type 2021-06-24 14:48:15 +01:00
punycode.c
s390x_arch.h Update copyright year 2022-05-03 13:36:42 +01:00
s390xcap.c Update copyright year 2022-05-03 13:36:42 +01:00
s390xcpuid.pl
self_test_core.c
sparccpuid.S
sparcv9cap.c Split bignum code out of the sparcv9cap.c 2021-07-15 09:33:04 +02:00
sparse_array.c Coverity 1507376: Dereference after null check 2022-07-22 14:42:44 +02:00
threads_lib.c
threads_none.c
threads_pthread.c Never use `__atomic_*` on macOS 10.7 and 10.8 2022-04-22 15:25:53 +02:00
threads_win.c Explicitly #include <synchapi.h> is unnecessary 2021-09-23 14:13:37 +02:00
trace.c str[n]casecmp => OPENSSL_strncasecmp 2022-04-21 17:12:32 +02:00
uid.c Openssl fails to compile on Debian with kfreebsd kernels 2021-09-02 10:05:51 +10:00
vms_rms.h
x86_64cpuid.pl
x86cpuid.pl