]> git.ipfire.org Git - thirdparty/zstd.git/commit
Unpoison Workspace Memory Before Freeing to Custom Free 3725/head
authorW. Felix Handte <w@felixhandte.com>
Wed, 16 Aug 2023 16:09:12 +0000 (12:09 -0400)
committerW. Felix Handte <w@felixhandte.com>
Wed, 16 Aug 2023 16:09:12 +0000 (12:09 -0400)
commit9987d2f5942a7701b388eec4307be71a121e5652
treec3d58be4316b4429bb08e5c3d173673d87d45067
parent5f5bdc1e5d23544391df1c47cec3a69b96a09f5b
Unpoison Workspace Memory Before Freeing to Custom Free

MSAN is hooked into the system malloc, but when the user provides a custom
allocator, it may not provide the same cleansing behavior. So if we leave
memory poisoned and return it to the user's allocator, where it is re-used
elsewhere, our poisoning can blow up in some other context.
lib/compress/zstd_cwksp.h