]> git.ipfire.org Git - thirdparty/curl.git/commit
dynbuf: assert init on free
authorStefan Eissing <stefan@eissing.org>
Thu, 20 Mar 2025 09:31:30 +0000 (10:31 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 24 Mar 2025 08:53:40 +0000 (09:53 +0100)
commit646b2d6ca2337f6d24625e2c0f8b1ccb79991def
treed8d87dc91875dab0cdcf8b132396506e30ac60cf
parentcd7eb9e0f2063e5733e2481569bcbc2883704d20
dynbuf: assert init on free

Add a DEBUGASSERT() in Curl_dyn_free() that checks that Curl_dyn_init()
has been performed before.

Fix code places that did it wrong.

Fixes #16725
Closes #16775
17 files changed:
lib/curl_krb5.h
lib/dynbuf.c
lib/easy.c
lib/ftp.c
lib/http_negotiate.c
lib/imap.c
lib/imap.h
lib/krb5.c
lib/pingpong.c
lib/pingpong.h
lib/rtsp.c
lib/rtsp.h
lib/url.c
lib/vauth/spnego_gssapi.c
lib/vssh/libssh.c
lib/vssh/libssh2.c
lib/vssh/ssh.h