]> git.ipfire.org Git - thirdparty/openssl.git/commit
QUIC stack must disable hash table contraction before doing
authorAlexandr Nedvedicky <sashan@openssl.org>
Wed, 11 Mar 2026 13:12:29 +0000 (14:12 +0100)
committerNeil Horman <nhorman@openssl.org>
Wed, 18 Mar 2026 17:29:12 +0000 (13:29 -0400)
commite4855d5beab128c7701f7f55a32b0ff8788bf201
tree26f67c60513aa7679584ec93455ea7ce8f9df7ea
parent1d266c29b9f38add010978afe8f5016bb1e738d4
QUIC stack must disable hash table contraction before doing
lh_TYPE_doall(lh, lh_TYPE_delete). Not doing so may dereference
dead memory when traversing to next item in hash table.

One has to call lh_TYPE_set_down_load(lh, 0) to disable hash
table contraction when table is being destroyed during the
_doall() traversal.

call lh_TYPE_set_down_load(lh, 0) before doing
lh_TYPE_daall() with lh_TYPE_delete(). This disables

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
MergeDate: Wed Mar 18 17:26:44 2026
(Merged from https://github.com/openssl/openssl/pull/30371)

(cherry picked from commit f65bcab102872dba0c7e9f5d08a3fdcedfeed200)
ssl/quic/quic_srtm.c
ssl/quic/quic_stream_map.c