zstd/lib/compress
W. Felix Handte c6636afbbb Fix ZSTD_estimateCCtxSize() Under ASAN
`ZSTD_estimateCCtxSize()` provides estimates for one-shot compression, which
is guaranteed not to buffer inputs or outputs. So it ignores the sizes of the
buffers, assuming they'll be zero. However, the actual workspace allocation
logic always allocates those buffers, and when running under ASAN, the
workspace surrounds every allocation with 256 bytes of redzone. So the 0-sized
buffers end up consuming 512 bytes of space, which is accounted for in the
actual allocation path through the use of `ZSTD_cwksp_alloc_size()` but isn't
in the estimation path, since it ignores the buffers entirely.

This commit fixes this.
2020-05-11 18:58:19 -04:00
..
fse_compress.c Rewrite Include Paths to be Relative 2020-05-04 15:20:26 -04:00
hist.c Rewrite Include Paths to be Relative 2020-05-04 15:20:26 -04:00
hist.h Fix copyright and license lines 2020-03-26 17:02:06 -07:00
huf_compress.c Merge pull request #2103 from felixhandte/relative-includes 2020-05-06 09:42:23 -07:00
zstd_compress_internal.h Rewrite Include Paths to be Relative 2020-05-04 15:20:26 -04:00
zstd_compress_literals.c Add (Possibly Empty) Info Strings to All Variadic Error Handling Macro Invocations 2020-05-04 10:58:55 -04:00
zstd_compress_literals.h Fix copyright and license lines 2020-03-26 17:02:06 -07:00
zstd_compress_sequences.c some more conversion warnings 2020-05-05 10:16:59 -07:00
zstd_compress_sequences.h Rewrite Include Paths to be Relative 2020-05-04 15:20:26 -04:00
zstd_compress_superblock.c Rewrite Include Paths to be Relative 2020-05-04 15:20:26 -04:00
zstd_compress_superblock.h Rewrite Include Paths to be Relative 2020-05-04 15:20:26 -04:00
zstd_compress.c Fix ZSTD_estimateCCtxSize() Under ASAN 2020-05-11 18:58:19 -04:00
zstd_cwksp.h Rewrite Include Paths to be Relative 2020-05-04 15:20:26 -04:00
zstd_double_fast.c Merge pull request #2040 from caoyzh/dev-2 2020-04-08 13:14:47 -07:00
zstd_double_fast.h Rewrite Include Paths to be Relative 2020-05-04 15:20:26 -04:00
zstd_fast.c small speed improvement for strategy fast 2020-05-07 06:15:58 -07:00
zstd_fast.h Rewrite Include Paths to be Relative 2020-05-04 15:20:26 -04:00
zstd_lazy.c Fix copyright and license lines 2020-03-26 17:02:06 -07:00
zstd_lazy.h Fix copyright and license lines 2020-03-26 17:02:06 -07:00
zstd_ldm.c Rewrite Include Paths to be Relative 2020-05-04 15:20:26 -04:00
zstd_ldm.h Rewrite Include Paths to be Relative 2020-05-04 15:20:26 -04:00
zstd_opt.c Purge C++-Style Comments (// ...), Make Compilation Succeed Under C90 2020-05-04 10:59:15 -04:00
zstd_opt.h Fix copyright and license lines 2020-03-26 17:02:06 -07:00
zstdmt_compress.c Rewrite Include Paths to be Relative 2020-05-04 15:20:26 -04:00
zstdmt_compress.h Rewrite Include Paths to be Relative 2020-05-04 15:20:26 -04:00