zstd/lib/common
Nick Terrell 5b266196a4 Add support for in-place decompression
* Add a function and macro ZSTD_decompressionMargin() that computes the
  decompression margin for in-place decompression. The function computes
  a tight margin that works in all cases, and the macro computes an upper
  bound that will only work if flush isn't used.
* When doing in-place decompression, make sure that our output buffer
  doesn't overlap with the input buffer. This ensures that we don't
  decide to use the portion of the output buffer that overlaps the input
  buffer for temporary memory, like for literals.
* Add a simple unit test.
* Add in-place decompression to the simple_round_trip and
  stream_round_trip fuzzers. This should help verify that our margin stays
  correct.
2023-01-12 16:28:08 -08:00
..
bits.h Update Copyright Headers 'Facebook' -> 'Meta Platforms' 2022-12-20 12:37:57 -05:00
bitstream.h Coalesce Almost All Copyright Notices to Standard Phrasing 2022-12-20 12:52:34 -05:00
compiler.h Coalesce Almost All Copyright Notices to Standard Phrasing 2022-12-20 12:52:34 -05:00
cpu.h Update Copyright Headers 'Facebook' -> 'Meta Platforms' 2022-12-20 12:37:57 -05:00
debug.c Coalesce Almost All Copyright Notices to Standard Phrasing 2022-12-20 12:52:34 -05:00
debug.h Coalesce Almost All Copyright Notices to Standard Phrasing 2022-12-20 12:52:34 -05:00
entropy_common.c Coalesce Almost All Copyright Notices to Standard Phrasing 2022-12-20 12:52:34 -05:00
error_private.c External matchfinder API (#3333) 2022-12-28 16:45:14 -05:00
error_private.h Coalesce Almost All Copyright Notices to Standard Phrasing 2022-12-20 12:52:34 -05:00
fse.h Coalesce Almost All Copyright Notices to Standard Phrasing 2022-12-20 12:52:34 -05:00
fse_decompress.c Coalesce Almost All Copyright Notices to Standard Phrasing 2022-12-20 12:52:34 -05:00
huf.h spec update : require minimum nb of literals for 4-streams mode 2022-12-22 16:14:34 -08:00
mem.h Coalesce Almost All Copyright Notices to Standard Phrasing 2022-12-20 12:52:34 -05:00
pool.c Coalesce Almost All Copyright Notices to Standard Phrasing 2022-12-20 12:52:34 -05:00
pool.h Coalesce Almost All Copyright Notices to Standard Phrasing 2022-12-20 12:52:34 -05:00
portability_macros.h Update Copyright Headers 'Facebook' -> 'Meta Platforms' 2022-12-20 12:37:57 -05:00
threading.c CR fixes 2022-12-19 15:13:43 -08:00
threading.h Fix race condition in the Windows thread / pthread translation layer 2022-12-17 13:38:02 -08:00
xxhash.c Coalesce Almost All Copyright Notices to Standard Phrasing 2022-12-20 12:52:34 -05:00
xxhash.h Coalesce Almost All Copyright Notices to Standard Phrasing 2022-12-20 12:52:34 -05:00
zstd_common.c Coalesce Almost All Copyright Notices to Standard Phrasing 2022-12-20 12:52:34 -05:00
zstd_deps.h Update Copyright Headers 'Facebook' -> 'Meta Platforms' 2022-12-20 12:37:57 -05:00
zstd_internal.h Add support for in-place decompression 2023-01-12 16:28:08 -08:00
zstd_trace.h Update Copyright Headers 'Facebook' -> 'Meta Platforms' 2022-12-20 12:37:57 -05:00