]> git.ipfire.org Git - thirdparty/zstd.git/commit
erase existence of a buffer when it's sent out of the pool 873/head
authorYann Collet <cyan@fb.com>
Fri, 29 Sep 2017 23:27:47 +0000 (16:27 -0700)
committerYann Collet <cyan@fb.com>
Fri, 29 Sep 2017 23:27:47 +0000 (16:27 -0700)
commit1416bc0f07b266e4c682f44968af1745dcce064c
tree4584c7b8329aec4b365ca257e5193f4e0abce878
parente963800e27ee85354bfba462685fc2cd0c2ac819
erase existence of a buffer when it's sent out of the pool

In some complex scenario,
the buffer would be freed because it's too large,
another buffer would be allocated, but fail,
trigger an error,
and the general buffer pool would then be freed,
where the definition of the already freed buffer would be found
(beyond total index, but still), and freed again, resulting in double-free error.
lib/compress/zstdmt_compress.c