zstd/lib/compress
Nick Terrell 43118da8a7 Stop suppressing pointer-overflow UBSAN errors
* Remove all pointer-overflow suppressions from our UBSAN builds/tests.
* Add `ZSTD_ALLOW_POINTER_OVERFLOW_ATTR` macro to suppress
  pointer-overflow at a per-function level. This is a superior approach
  because it also applies to users who build zstd with UBSAN.
* Add `ZSTD_wrappedPtr{Diff,Add,Sub}()` that use these suppressions.
  The end goal is to only tag these functions with
  `ZSTD_ALLOW_POINTER_OVERFLOW`. But we can start by annoting functions
  that rely on pointer overflow, and gradually transition to using
  these.
* Add `ZSTD_maybeNullPtrAdd()` to simplify pointer addition when the
  pointer may be `NULL`.
* Fix all the fuzzer issues that came up. I'm sure there will be a lot
  more, but these are the ones that came up within a few minutes of
  running the fuzzers, and while running GitHub CI.
2023-09-28 17:35:05 -04:00
..
clevels.h initial commit 2023-01-04 13:01:54 -08:00
fse_compress.c [fse] Delete unused functions 2023-01-27 13:15:07 -08:00
hist.c initial commit 2023-01-04 13:01:54 -08:00
hist.h initial commit 2023-01-04 13:01:54 -08:00
huf_compress.c Fix & refactor Huffman repeat tables for dictionaries 2023-08-25 13:21:58 -04:00
zstd_compress.c No longer reject dictionaries with literals maxSymbolValue < 255 2023-08-22 13:22:35 -04:00
zstd_compress_internal.h Stop suppressing pointer-overflow UBSAN errors 2023-09-28 17:35:05 -04:00
zstd_compress_literals.c Replace Huffman boolean args with flags bit set 2023-01-20 14:12:53 -08:00
zstd_compress_literals.h fix root cause of #3416 2023-01-12 15:41:08 -08:00
zstd_compress_sequences.c initial commit 2023-01-04 13:01:54 -08:00
zstd_compress_sequences.h initial commit 2023-01-04 13:01:54 -08:00
zstd_compress_superblock.c fix a minor inefficiency in compress_superblock 2023-06-05 09:51:52 -07:00
zstd_compress_superblock.h initial commit 2023-01-04 13:01:54 -08:00
zstd_cwksp.h Unpoison Workspace Memory Before Freeing to Custom Free 2023-08-16 12:09:12 -04:00
zstd_double_fast.c Stop suppressing pointer-overflow UBSAN errors 2023-09-28 17:35:05 -04:00
zstd_double_fast.h Define Macros for Possibly-Present Functions; Use Them Rather than Ifdef Guards 2023-05-04 12:18:58 -04:00
zstd_fast.c Stop suppressing pointer-overflow UBSAN errors 2023-09-28 17:35:05 -04:00
zstd_fast.h initial commit 2023-01-04 13:01:54 -08:00
zstd_lazy.c Stop suppressing pointer-overflow UBSAN errors 2023-09-28 17:35:05 -04:00
zstd_lazy.h Re-Order Lazy Declarations; Minimize ifndefs 2023-05-04 12:18:58 -04:00
zstd_ldm.c Stop suppressing pointer-overflow UBSAN errors 2023-09-28 17:35:05 -04:00
zstd_ldm.h initial commit 2023-01-04 13:01:54 -08:00
zstd_ldm_geartab.h initial commit 2023-01-04 13:01:54 -08:00
zstd_opt.c Stop suppressing pointer-overflow UBSAN errors 2023-09-28 17:35:05 -04:00
zstd_opt.h Also Reorganize Zstd Opt Declarations 2023-05-04 12:18:58 -04:00
zstdmt_compress.c suppress false error message in LDM mode 2023-06-21 19:19:02 -07:00
zstdmt_compress.h initial commit 2023-01-04 13:01:54 -08:00