]> git.ipfire.org Git - thirdparty/curl.git/commit
memdebug: add mutex for thread safety
authorStefan Eissing <stefan@eissing.org>
Mon, 1 Dec 2025 12:22:25 +0000 (13:22 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 1 Dec 2025 12:43:41 +0000 (13:43 +0100)
commita7bebd8502914f1652f423eddfd7005f8413a781
tree160383c8bc6a04e97bbf641b741e5ce4674c8dba
parentc6c4a99300bebdd3fd5a6af9ebca0053e3cbc8f7
memdebug: add mutex for thread safety

Protect modification to the `membuf` by different threads
via a mutex. This ensure that index updates are correct and
that data gets written in order.

Closes #19785
lib/memdebug.c