aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Zelenka <[email protected]>2026-07-24 14:42:25 +0200
committerTomas Mraz <[email protected]>2026-07-27 18:36:03 +0200
commit544e28ee06ac247e8fa02b46e306145d1c52cf17 (patch)
treedd9a773320f53c668e3f4d27110e55c477335aa0
parenttest: fix flaky -md and -iter mismatch checks in 20-test_enc.t (diff)
downloadopenssl-544e28ee06ac247e8fa02b46e306145d1c52cf17.tar.gz
openssl-544e28ee06ac247e8fa02b46e306145d1c52cf17.zip
ech: check memory failure in vpm allocation in store final check
This fixes issue found by fuzz test in updated corpora for echconfiglist_parser. Reviewed-by: Norbert Pocs <[email protected]> Reviewed-by: Paul Dale <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> MergeDate: Mon Jul 27 16:36:15 2026 (Merged from https://github.com/openssl/openssl/pull/32070)
-rw-r--r--ssl/ech/ech_store.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ssl/ech/ech_store.c b/ssl/ech/ech_store.c
index dd05bf3702c..2bd4915f1f4 100644
--- a/ssl/ech/ech_store.c
+++ b/ssl/ech/ech_store.c
@@ -254,6 +254,10 @@ static int ech_final_config_checks(OSSL_ECHSTORE_ENTRY *ee)
char *lastlabel = NULL;
size_t lllen;
+ if (vpm == NULL) {
+ ERR_raise(ERR_LIB_SSL, ERR_R_INTERNAL_ERROR);
+ goto err;
+ }
/* check local support for some suite */
for (ind = 0; ind != (int)ee->nsuites; ind++) {
/*