Skip to content
Snippets Groups Projects
  1. Sep 12, 2023
  2. Sep 11, 2023
  3. Sep 10, 2023
  4. Sep 03, 2023
  5. Aug 27, 2023
  6. Aug 25, 2023
    • Nick Terrell's avatar
      Fix & refactor Huffman repeat tables for dictionaries · 396ef5b4
      Nick Terrell authored
      The Huffman repeat mode checker assumed that the CTable was zeroed in the region `[maxSymbolValue + 1, 256)`.
      This assumption didn't hold for tables built in the dictionaries, because it didn't go through the same codepath.
      
      Since this code was originally written, we added a header to the CTable that specifies the `tableLog`.
      Add `maxSymbolValue` to that header, and check that the table's `maxSymbolValue` is at least the block's `maxSymbolValue`.
      
      This solution is cleaner because we write this header for every CTable we build, so it can't be missed in any code path.
      
      Credit to OSS-Fuzz
      396ef5b4
    • Nick Terrell's avatar
      Work around nullptr-with-nonzero-offset warning · c27fa399
      Nick Terrell authored
      See comment.
      c27fa399
  7. Aug 23, 2023
    • Dmitry V. Levin's avatar
      zdictlib: fix prototype mismatch · ecb86d82
      Dmitry V. Levin authored
      Fix the following warnings reported by the compiler when
      ZDICTLIB_STATIC_API is not defined to ZDICTLIB_API:
      
      lib/dictBuilder/cover.c:1122:21: warning: redeclaration of 'ZDICT_optimizeTrainFromBuffer_cover' with different visibility (old visibility
      preserved)
      lib/dictBuilder/cover.c:736:21: warning: redeclaration of 'ZDICT_trainFromBuffer_cover' with different visibility (old visibility
      +preserved)
      lib/dictBuilder/fastcover.c:549:1: warning: redeclaration of 'ZDICT_trainFromBuffer_fastCover' with different visibility (old visibility
      preserved)
      lib/dictBuilder/fastcover.c:618:1: warning: redeclaration of 'ZDICT_optimizeTrainFromBuffer_fastCover' with different visibility (old
      visibility preserved)
      ecb86d82
  8. Aug 22, 2023
  9. Aug 21, 2023
  10. Aug 19, 2023
  11. Aug 16, 2023
  12. Aug 14, 2023
  13. Aug 13, 2023
  14. Aug 02, 2023
  15. Jul 31, 2023
  16. Jul 30, 2023
  17. Jul 21, 2023
  18. Jul 20, 2023
    • Gianfranco Costamagna's avatar
      Update fileio.c: fix build failure with enabled LTO · de6b46df
      Gianfranco Costamagna authored
      For some reasons when LTO is enabled, the compiler complains about statbuf variable not being correctly initialized, even though the variable has an assert != NULL just few lines below (FIO_getDictFileStat)
      
      This is the fixed build failure:
      x86_64-linux-gnu-gcc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/libzstd-1.5.5+dfsg2-1 -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow -Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes -Wundef -Wpointer-arith -Wvla -Wformat=2 -Winit-self -Wfloat-equal -Wwrite-strings -Wredundant-decls -Wmissing-prototypes -Wc++-compat -g -Werror -Wa,--noexecstack -Wdate-time -D_FORTIFY_SOURCE=2 -DXXH_NAMESPACE=ZSTD_ -DDEBUGLEVEL=1 -DZSTD_LEGACY_SUPPORT=5 -DZSTD_MULTITHREAD -DZSTD_GZCOMPRESS -DZSTD_GZDECOMPRESS -DZSTD_LZMACOMPRESS -DZSTD_LZMADECOMPRESS -DZSTD_LZ4COMPRESS -DZSTD_LZ4DECOMPRESS -DZSTD_LEGACY_SUPPORT=5  -c -MT obj/conf_086c46a51a716b674719b8acb8484eb8/zstdcli_trace.o -MMD -MP -MF obj/conf_086c46a51a716b674719b8acb8484eb8/zstdcli_trace.d -o obj/conf_086c46a51a716b674719b8acb8484eb8/zstdcli_trace.o zstdcli_trace.c
      In function ‘UTIL_isRegularFileStat’,
          inlined from ‘UTIL_getFileSizeStat’ at util.c:524:10,
          inlined from ‘FIO_createDResources’ at fileio.c:2230:30:
      util.c:209:12: error: ‘statbuf.st_mode’ may be used uninitialized [-Werror=maybe-uninitialized]
        209 |     return S_ISREG(statbuf->st_mode) != 0;
            |            ^
      fileio.c: In function ‘FIO_createDResources’:
      fileio.c:2223:12: note: ‘statbuf’ declared here
       2223 |     stat_t statbuf;
            |            ^
      lto1: all warnings being treated as errors
      de6b46df
    • Jacob Greenfield's avatar
      Save one byte on the frame epilogue · 55ff3e4e
      Jacob Greenfield authored
      55ff3e4e
    • Yann Collet's avatar
      Merge pull request #3665 from gjasny/fix-asm-for-xcode · ef59cc39
      Yann Collet authored
      Fix Intel Xcode builds with assembly
  19. Jul 19, 2023
  20. Jul 11, 2023
  21. Jul 10, 2023
  22. Jul 05, 2023
  23. Jun 30, 2023
  24. Jun 28, 2023
Loading