openssl/crypto
Adrien Zinger 2b8c14711f Fix GCC compilation -Waggressive-loop-optimizations
GCC 13.1.0 were reporting a compilation warning with -O2/3 and
-Waggressive-loop-optimizations. GCC is raising an undefined behavior in the
while loop. Replace the while loop with a memset call at the top of the
function.

Fixes #21088

CLA: trivial

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23898)

(cherry picked from commit c45ca0656f)
2025-01-03 16:01:06 +01:00
..
aes Copyright year updates 2024-09-03 15:28:11 +02:00
aria
asn1 ossl_i2c_ASN1_BIT_STRING(): Fix a possible heap buffer overflow 2024-12-20 09:50:01 +01:00
async
bf
bio Fix potential memory leak in BIO_get_accept_socket() 2025-01-02 14:10:56 +01:00
bn Fix GCC compilation -Waggressive-loop-optimizations 2025-01-03 16:01:06 +01:00
buffer
camellia
cast
chacha
cmac
cmp Fix potential memory leak in save_statusInfo() 2024-10-07 17:59:02 +02:00
cms dh_cms_set_peerkey(): Fix the incorrect condition 2024-12-11 18:14:02 +01:00
comp
conf Copyright year updates 2024-09-03 15:28:11 +02:00
crmf
ct
des
dh
dsa Copyright year updates 2024-06-04 16:25:21 +02:00
dso replace various calls to sprintf() by BiO_snprintf() to avoid compiler warnings, e.g., on MacOS 2024-10-12 15:59:26 +02:00
ec Remove double engine reference in ossl_ec_key_dup() 2024-09-26 10:27:29 +02:00
encode_decode Fix EVP_PKEY_print_private() so that it works with non default providers. 2024-11-29 17:15:54 +01:00
engine Copyright year updates 2024-09-03 15:28:11 +02:00
err Add reason codes with the correct offset for two alerts 2024-05-14 15:29:08 +02:00
ess Copyright year updates 2024-06-04 16:25:21 +02:00
evp Check whether ctx->pctx != NULL 2024-12-17 14:57:50 +01:00
ffc
hmac
http OSSL_HTTP_adapt_proxy(): fix handling of escaped IPv6 host addresses and of whitespace in no_proxy 2024-09-26 09:59:20 +02:00
idea
kdf
lhash
md2
md4
md5
mdc2
modes
objects Copyright year updates 2024-01-30 13:26:54 +00:00
ocsp
pem Fix Edge Cases in Password Callback Handling 2024-09-09 09:05:45 +02:00
perlasm
pkcs7 Avoid NULL dereference with PKCS7_OP_SET_DETACHED_SIGNATURE 2024-12-02 09:45:44 +01:00
pkcs12 Copyright year updates 2024-09-03 15:28:11 +02:00
poly1305 Copyright year updates 2024-01-30 13:26:54 +00:00
property Copyright year updates 2024-09-03 15:28:11 +02:00
rand Copyright year updates 2024-09-03 15:28:11 +02:00
rc2
rc4
rc5
ripemd
rsa Copyright year updates 2024-09-03 15:28:11 +02:00
seed
sha Fix a few incorrect paths in some build.info files 2024-02-02 14:11:27 +01:00
siphash
sm2 sm2_sig_verify(): Do not call BN_CTX_end() without BN_CTX_start() 2024-11-21 11:18:35 +01:00
sm3
sm4
srp Fix potential double free through SRP_user_pwd_set1_ids() 2024-10-11 14:23:32 +02:00
stack
store
ts
txt_db
ui Fix Edge Cases in Password Callback Handling 2024-09-09 09:05:45 +02:00
whrlpool
x509 Adjust naming authority formatting when printing out admission extension 2024-11-07 10:33:54 +01:00
LPdir_nyi.c
LPdir_unix.c
LPdir_vms.c
LPdir_win.c
LPdir_win32.c
LPdir_wince.c
README-sparse_array.md
alphacpuid.pl
arm64cpuid.pl
arm_arch.h
armcap.c
armv4cpuid.pl
asn1_dsa.c
bsearch.c
build.info Statically link legacy provider to evp_extra_test 2023-12-06 17:02:17 +01:00
c64xpluscpuid.pl
context.c docs: document that *_free(NULL) does nothing 2024-06-27 18:34:13 +02:00
core_algorithm.c
core_fetch.c
core_namemap.c
cpt_err.c
cpuid.c
cryptlib.c
ctype.c
cversion.c
der_writer.c
dllmain.c
ebcdic.c
ex_data.c
getenv.c
ia64cpuid.S
info.c
init.c Copyright year updates 2024-06-04 16:25:21 +02:00
initthread.c
mem.c
mem_clr.c
mem_sec.c Add locking to CRYPTO_secure_used 2023-12-01 09:44:25 -05:00
mips_arch.h
o_dir.c
o_fopen.c
o_init.c
o_str.c OPENSSL_hexstr2buf_ex(): Handle zero-length input correctly 2024-07-02 20:14:42 +02:00
o_time.c
packet.c
param_build.c ossl-params: check length returned by strlen() 2023-12-12 19:58:47 +01:00
param_build_set.c
params.c
params_dup.c
params_from_text.c Copyright year updates 2024-01-30 13:26:54 +00:00
pariscid.pl
passphrase.c
ppccap.c
ppccpuid.pl
provider.c
provider_child.c
provider_conf.c Detect and prevent recursive config parsing 2023-12-30 09:10:59 -05:00
provider_core.c Copyright year updates 2024-06-04 16:25:21 +02:00
provider_local.h
provider_predefined.c
punycode.c
s390x_arch.h
s390xcap.c
s390xcpuid.pl
self_test_core.c
sparccpuid.S
sparcv9cap.c
sparse_array.c
threads_lib.c
threads_none.c
threads_pthread.c
threads_win.c threads_win: fix improper cast to long * instead of LONG * 2024-09-05 17:12:32 +02:00
trace.c TRACE: automatically respect disabled categories 2024-10-23 15:17:24 +02:00
uid.c
vms_rms.h
x86_64cpuid.pl
x86cpuid.pl