From: Daniel Stenberg Date: Wed, 6 Aug 2025 06:12:08 +0000 (+0200) Subject: splay: add another assert for detected usage problem X-Git-Tag: curl-8_16_0~235 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aec28f3ad3b4605951b544d2813c7de3a17ecc35;p=thirdparty%2Fcurl.git splay: add another assert for detected usage problem Closes #18199 --- diff --git a/lib/splay.c b/lib/splay.c index 609b799bfd..3ca8678b2b 100644 --- a/lib/splay.c +++ b/lib/splay.c @@ -223,6 +223,7 @@ int Curl_splayremove(struct Curl_tree *t, if(compare(SPLAY_SUBNODE, removenode->key) == 0) { /* It is a subnode within a 'same' linked list and thus we can unlink it easily. */ + DEBUGASSERT(removenode->samen != removenode); if(removenode->samen == removenode) /* A non-subnode should never be set to SPLAY_SUBNODE */ return 3;