]> git.ipfire.org Git - thirdparty/openssl.git/commit
Avoid leaking memory when realloc fails
authorFrederik Wedel-Heinen <frederik.wedel-heinen@dencrypt.dk>
Sun, 22 Dec 2024 12:35:00 +0000 (13:35 +0100)
committerTomas Mraz <tomas@openssl.org>
Fri, 3 Jan 2025 14:58:26 +0000 (15:58 +0100)
commit65db21935a2add580eb35bdf0b0f37441549d54c
tree9ba407b52e9fd0713bf514bdd35011438566fd7a
parent40c55b5aa41f907acb17b2825bd6c8cdae5e2123
Avoid leaking memory when realloc fails

In ossl_property_merge() we can drop the realloc because it just makes
the allocation smaller.

In quic-hq-interop.c we check the realloc result.

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26244)
crypto/property/property_parse.c
demos/guide/quic-hq-interop.c