Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.5.6 #3984

Merged
merged 417 commits into from Mar 21, 2024
Merged

v1.5.6 #3984

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
417 commits
Select commit Hold shift + click to select a range
98d8ad2
Add Bazel module instructions to README.md
jondo2010 Nov 8, 2023
e61e3ff
Clarify that decoding too many Huffman weights is a failure condition
elasota Nov 9, 2023
52e41b9
Fix malformed state table
elasota Nov 9, 2023
c5bf96f
Clarify that a non-zero probability for an invalid symbol is invalid
elasota Nov 13, 2023
83adaec
Merge pull request #3812 from jondo2010/bazel_build_doc
Cyan4973 Nov 13, 2023
e19fe53
Merge pull request #3813 from elasota/overflow-clarification
Cyan4973 Nov 13, 2023
592b1ac
update xxhash to v0.8.2
Cyan4973 Nov 13, 2023
3fd5f9f
fix the copyright linter
Cyan4973 Nov 13, 2023
fcbf2fd
Merge pull request #3807 from gruenich/increase_minimum_cmake_version…
Cyan4973 Nov 14, 2023
59dcc47
update license text
Cyan4973 Nov 17, 2023
a419265
[linux] Backport intptr_t removal
Nov 16, 2023
c2d4705
[linux] Remove usage of deprecated function
Nov 17, 2023
e122fcb
[debug] Don't define g_debuglevel in the kernel
Nov 17, 2023
c7269ad
[huf] Improve fast huffman decoding speed in linux kernel
Nov 18, 2023
5ab78c0
[huf] Improve fast C & ASM performance on small data
Nov 20, 2023
dd4de1d
[huf] Fix null pointer addition
Nov 20, 2023
6b3d12f
Merge pull request #3820 from facebook/xxh082
Cyan4973 Nov 21, 2023
8193250
Modernize macros to use `do { } while (0)`
Nov 21, 2023
dc84e35
Clarify that the presence of a value with weight 1 is required
elasota Nov 9, 2023
05059e5
Clarify that there must be at least 2 weights, i.e. encoding all weig…
elasota Nov 9, 2023
809c7eb
Refactor ZSTD_sequenceProducer_F typedef to ZSTD_sequenceProducer_F*
embg Nov 27, 2023
d151a48
Move offload API params into ZSTD_CCtx_params
embg Nov 27, 2023
468bb17
lib/decompress: check for reserved bit corruption in zstd
aimuz Nov 28, 2023
126ec26
Merge pull request #3839 from embg/offload_refactor
embg Nov 29, 2023
20f8df6
Update FreeBSD CI: drop 12.4 as it is nearly EOL
emaste Dec 13, 2023
86ead9f
Merge pull request #3845 from emaste/dev
Cyan4973 Dec 14, 2023
2ce0290
zlibWrapper: convert to C89 / ANSI C
emaste Dec 14, 2023
9a3b17c
Fix a nullptr dereference in ZSTD_createCDict_advanced2()
michoecho Dec 16, 2023
e515327
Bump actions/upload-artifact from 3.1.3 to 4.0.0
dependabot[bot] Dec 18, 2023
8052cd0
cli: better errors on arguent parsing
KapJI Dec 16, 2023
377ecef
Update windows-artifacts.yml
Cyan4973 Dec 18, 2023
7cf62bc
Merge pull request #3849 from facebook/dependabot/github_actions/acti…
Cyan4973 Dec 18, 2023
475da4f
Make `zstd::libzstd` an imported interface target.
teo-tsirpanis Dec 19, 2023
c6cabf9
Make offload API compatible with static CCtx (#3854)
embg Dec 28, 2023
f06b18b
Specify offset 0 as invalid
elasota Nov 19, 2023
903bc26
Merge pull request #3846 from emaste/c89
Cyan4973 Dec 29, 2023
a52d897
Cirrus-CI: Add FreeBSD 14
emaste Dec 14, 2023
a07cae3
Merge pull request #3847 from michoecho/fix_nullptr_deref_in_createCDict
Cyan4973 Dec 30, 2023
ffde100
Merge pull request #3855 from emaste/freebsd-14-ci
Cyan4973 Dec 31, 2023
923cf3d
CI: meson: use builtin handling for MSVC
eli-schwartz Jan 2, 2024
66269e7
Fix building xxhash on AIX 5.1
likema Jan 13, 2024
e49d1ab
Fix building on HP-UX 11.11 PA-RISC
likema Jan 13, 2024
1733245
Merge pull request #3858 from eli-schwartz/msvc-dev-cmd
Cyan4973 Jan 13, 2024
7f76d37
Merge pull request #3850 from KapJI/better-errors
Cyan4973 Jan 13, 2024
7971fd1
Merge pull request #3817 from elasota/oversized-probs-clarification
Cyan4973 Jan 13, 2024
dcf784a
Merge pull request #3760 from jcelerier/patch-1
Cyan4973 Jan 13, 2024
3a2e302
Bump github/codeql-action from 2.21.4 to 3.23.0
dependabot[bot] Jan 15, 2024
e2fe266
Bump actions/upload-artifact from 4.0.0 to 4.1.0
dependabot[bot] Jan 15, 2024
572acb9
Merge pull request #3864 from facebook/dependabot/github_actions/acti…
Cyan4973 Jan 15, 2024
d2ea3fb
Merge pull request #3863 from facebook/dependabot/github_actions/gith…
Cyan4973 Jan 15, 2024
e6f4b46
playTests.sh does no longer needs grep -E
Cyan4973 Jan 15, 2024
050fec5
Merge pull request #3865 from facebook/grep_e
Cyan4973 Jan 15, 2024
81f444f
made playTests.sh more compatible with older versions of grep
Cyan4973 Jan 16, 2024
1a860c8
Merge pull request #3877 from facebook/oldgrep
Cyan4973 Jan 21, 2024
ee2efb6
Bump actions/upload-artifact from 4.1.0 to 4.2.0
dependabot[bot] Jan 22, 2024
c7611d6
disable Intel CET Compatibility tests
Cyan4973 Jan 27, 2024
799b904
Merge pull request #3884 from facebook/disable_intelcet
Cyan4973 Jan 28, 2024
2fc7248
fix cmakebuild test
Cyan4973 Jan 27, 2024
798034a
Merge pull request #3883 from facebook/cmake_test
Cyan4973 Jan 28, 2024
6082944
Merge pull request #3880 from facebook/dependabot/github_actions/acti…
Cyan4973 Jan 28, 2024
e1ef81a
add sparc64 compilation test
Cyan4973 Jan 29, 2024
163e9b6
Bump actions/upload-artifact from 4.2.0 to 4.3.0
dependabot[bot] Jan 29, 2024
c485b57
Bump microsoft/setup-msbuild from 1.3.1 to 1.3.2
dependabot[bot] Jan 29, 2024
4a74eb8
Merge pull request #3887 from facebook/dependabot/github_actions/acti…
Cyan4973 Jan 29, 2024
a7b4daf
Merge pull request #3888 from facebook/dependabot/github_actions/micr…
Cyan4973 Jan 29, 2024
d0b7da3
add a lorem ipsum generator
Cyan4973 Jan 29, 2024
a261375
fix paramgrill Makefile recipe
Cyan4973 Jan 29, 2024
3ce4c6e
fix Visual Studio solutions
Cyan4973 Jan 29, 2024
befcec1
fix cmake recipe
Cyan4973 Jan 29, 2024
fd03971
blindfix meson recipe
Cyan4973 Jan 29, 2024
de10f56
improve high compression ratio for file like #3793
Cyan4973 Jan 30, 2024
4683667
refactor optimal parser
Cyan4973 Jan 31, 2024
81bfe36
Merge pull request #3886 from facebook/sparc64
Cyan4973 Jan 31, 2024
0166b2b
modification: differentiate literal update at pos+1
Cyan4973 Jan 31, 2024
79e9459
Merge pull request #3890 from facebook/lorem
Cyan4973 Feb 1, 2024
04a6c8c
Update Dependency in Intel CET Test; Re-Enable Test
felixhandte Jan 31, 2024
7afd9db
Merge pull request #3893 from felixhandte/gh-actions-cet-test-update-dep
felixhandte Feb 1, 2024
d31018e
finally, a version that generalizes well
Cyan4973 Feb 3, 2024
8168a45
minor optimization, mostly for clarity
Cyan4973 Feb 4, 2024
e5af24c
fixed wrong assert
Cyan4973 Feb 4, 2024
9ae3bf5
update compression results
Cyan4973 Feb 4, 2024
5474edb
fixed wrong assert
Cyan4973 Feb 4, 2024
0ae21d8
removed trace control
Cyan4973 Feb 4, 2024
fe2e2ad
use ZSTD_memcpy()
Cyan4973 Feb 4, 2024
9fed5ef
Bump microsoft/setup-msbuild from 1.3.2 to 2.0.0
dependabot[bot] Feb 5, 2024
0d9fb5d
fix msbuild action version number
Cyan4973 Feb 5, 2024
5a08f58
Merge pull request #3897 from facebook/dependabot/github_actions/micr…
Cyan4973 Feb 5, 2024
641749f
fix uasan dictionary_stream_round_trip fuzz test
Cyan4973 Feb 5, 2024
6c35fb2
fix msan warnings
Cyan4973 Feb 5, 2024
887f5b6
update compression results for regression tests
Cyan4973 Feb 5, 2024
b88c593
added or updated code comments
Cyan4973 Feb 6, 2024
06b5b37
Merge pull request #3895 from facebook/fix_3793
Cyan4973 Feb 6, 2024
1f87c88
[Zstd] Less verbose log for patch mode.
sandreenko Feb 6, 2024
22574d8
fix issue 5921623844651008
Cyan4973 Feb 6, 2024
a844455
Merge pull request #3899 from sandreenko/dev
sandreenko Feb 6, 2024
3a64c69
Convert the CircleCI workflow to a GitHub Actions workflow
jk0 Feb 1, 2024
54107e2
Merge pull request #3900 from facebook/fix5921623844651008
Cyan4973 Feb 7, 2024
695d154
fuzz: control debuglevel from Makefile
Cyan4973 Feb 9, 2024
b0e8580
fix fuzz issue 5131069967892480
Cyan4973 Feb 9, 2024
a3f1b24
Merge pull request #3902 from facebook/fuzz_debuglevel
Cyan4973 Feb 9, 2024
b921f1a
Reduce scope of variables
gruenich Feb 11, 2024
927d079
Bump actions/upload-artifact from 4.3.0 to 4.3.1
dependabot[bot] Feb 12, 2024
b6805c5
Add SECURITY.md File
felixhandte Feb 13, 2024
e13d099
Advertise Availability of Security Vulnerability Notifications
felixhandte Feb 13, 2024
889392d
Merge pull request #3909 from felixhandte/security-md-notif-list-ad
felixhandte Feb 13, 2024
1e046ce
increase vocabulary size
Cyan4973 Feb 20, 2024
40874d4
enriched vocabulary again
Cyan4973 Feb 20, 2024
5a1bb4a
add question marks
Cyan4973 Feb 20, 2024
3dbd861
runtime weight distribution table
Cyan4973 Feb 20, 2024
7003c99
increase word dictionary
Cyan4973 Feb 20, 2024
83598aa
datagen generates lorem ipsum by default
Cyan4973 Feb 20, 2024
7a225c0
internal benchmark: can select size of generated synthetic sample
Cyan4973 Feb 20, 2024
1e240af
fix datagen size control
Cyan4973 Feb 21, 2024
c2d3570
fix meson datagen build
Cyan4973 Feb 21, 2024
588dfbc
fix c89 compatibility by removing snprintf()
Cyan4973 Feb 21, 2024
b34517a
fix cmake build
Cyan4973 Feb 21, 2024
e62e15d
fix clangbuild
Cyan4973 Feb 21, 2024
9e711c9
fix Visual Studio datagen recipe
Cyan4973 Feb 21, 2024
7170f51
fix include order
Cyan4973 Feb 21, 2024
0a68be8
updated setup-msys2 to v2.22.0
Cyan4973 Feb 21, 2024
4afe31b
Merge pull request #3914 from facebook/setup_msys2_v2.22.0
Cyan4973 Feb 21, 2024
3c78b42
Merge pull request #3913 from facebook/lorem2
Cyan4973 Feb 22, 2024
ce6cadc
Merge pull request #3905 from facebook/dependabot/github_actions/acti…
Cyan4973 Feb 22, 2024
621a263
Merge pull request #3903 from gruenich/feature/reduce-scope-of-variables
Cyan4973 Feb 22, 2024
68a232c
benchmark more can test targetCBlockSize
Cyan4973 Feb 23, 2024
cc45309
speed optimized version of targetCBlockSize
Cyan4973 Feb 23, 2024
6b11fc4
fix issue with incompressible sections
Cyan4973 Feb 23, 2024
3b40100
fix long sequences (> 64 KB)
Cyan4973 Feb 23, 2024
0591e7e
minor: fix overly cautious conversion warning
Cyan4973 Feb 24, 2024
6719794
fixed some regressionTests
Cyan4973 Feb 24, 2024
4b51526
fix partial block uncompressed
Cyan4973 Feb 24, 2024
f77f634
update API documentation
Cyan4973 Feb 24, 2024
f837219
reduced minimum compressed block size
Cyan4973 Feb 24, 2024
5c5c1b0
Merge pull request #3915 from facebook/targetCBlockSize
Cyan4973 Feb 25, 2024
4d2bf7f
removed sprintf usage from zstdcli.c
Cyan4973 Feb 25, 2024
038a8a9
targetCBlockSize: modified splitting strategy to generate blocks of m…
Cyan4973 Feb 26, 2024
1fafd0c
fix minor visual static analyzer warning
Cyan4973 Feb 26, 2024
a412bed
Bump github/codeql-action from 3.23.0 to 3.24.5
dependabot[bot] Feb 26, 2024
e0412c2
fix extraneous semicolon ';'
Cyan4973 Feb 26, 2024
aa8592c
minor: reformulate nbSubBlocks assignment
Cyan4973 Feb 26, 2024
ef82b21
nit: comment indentation
Cyan4973 Feb 26, 2024
86db607
optimization: bail out faster in presence of incompressible data
Cyan4973 Feb 26, 2024
d23b95d
minor refactor for clarity
Cyan4973 Feb 26, 2024
8d31e8e
sizeBlockSequences() also tracks uncompressed size
Cyan4973 Feb 26, 2024
34cf4c1
Merge pull request #3917 from facebook/targetCBlock_moreRegular
Cyan4973 Feb 26, 2024
a58b48e
Merge pull request #3916 from facebook/no_sprintf
Cyan4973 Feb 27, 2024
dcd713c
Define the unified target inside the CMake project, and export it.
teo-tsirpanis Feb 27, 2024
b27d163
Merge branch 'dev' into unified-target
teo-tsirpanis Feb 27, 2024
063d9f2
Merge pull request #3811 from teo-tsirpanis/unified-target
Cyan4973 Mar 3, 2024
bb4f85d
fix version of actions/checkout
Cyan4973 Mar 4, 2024
b125202
Merge pull request #3926 from facebook/checkoutVersion
Cyan4973 Mar 4, 2024
61d8906
Merge pull request #3918 from facebook/dependabot/github_actions/gith…
Cyan4973 Mar 4, 2024
bb774ae
Merge pull request #3804 from facebook/dependabot/github_actions/ossf…
Cyan4973 Mar 4, 2024
e385c3d
Merge pull request #3753 from facebook/make2
Cyan4973 Mar 4, 2024
70df177
Bump github/codeql-action from 3.24.5 to 3.24.6
dependabot[bot] Mar 4, 2024
b293d2e
Merge pull request #3927 from facebook/dependabot/github_actions/gith…
Cyan4973 Mar 4, 2024
4fb0a77
update -V documentation
Cyan4973 Mar 4, 2024
2abe8d6
fix LLU->ULL
Cyan4973 Mar 4, 2024
8689633
Merge pull request #3840 from aimuz/fix-reserved
Cyan4973 Mar 5, 2024
007cda8
prevent XXH64 from being autovectorized by XXH512 by default
Cyan4973 Mar 8, 2024
ad59027
added RISC-V emulation tests on Github CI
Cyan4973 Mar 8, 2024
aed172a
minor: fix incorrect debug level
Cyan4973 Mar 8, 2024
478e5fe
Merge pull request #3816 from elasota/fix-state-table
Cyan4973 Mar 8, 2024
e127139
Merge pull request #3824 from elasota/specify-zero-offset
Cyan4973 Mar 8, 2024
a9fb8d4
new method to deal with offset==0
Cyan4973 Mar 8, 2024
d2f56ba
update documentation
Cyan4973 Mar 8, 2024
eb5f7a7
produced golden sample for the offset==0 decoder test
Cyan4973 Mar 9, 2024
c1875a7
Merge pull request #3928 from facebook/doc3727
Cyan4973 Mar 9, 2024
cb596b0
Merge pull request #3929 from facebook/llu_vscode
Cyan4973 Mar 9, 2024
372fddf
Merge pull request #3860 from likema/fix-xxhash-aix-51
Cyan4973 Mar 9, 2024
c610a01
fix #3719
Cyan4973 Mar 11, 2024
fbd9e62
added tests
Cyan4973 Mar 11, 2024
1362699
minor man page clarification
Cyan4973 Mar 11, 2024
f99a450
Stop Hardcoding the POSIX Version on BSDs
felixhandte Mar 11, 2024
a4db145
Merge pull request #3862 from likema/fix-hpux-parisc
Cyan4973 Mar 11, 2024
f6039f3
cmake refactor: move HP-UX specific logic into its own function
Cyan4973 Mar 11, 2024
edab9ee
Fix AsyncIO reading seed queueing (#3940)
yoniko Mar 11, 2024
74e856a
add tests inspired from #2927
Cyan4973 Mar 12, 2024
e087280
Use ZSTD_LEGACY_SUPPORT=5 in make test (#3943)
embg Mar 12, 2024
ee6acaf
Pin tsan and msan CI jobs to ubuntu-20.04 (#3945)
embg Mar 12, 2024
8ba5bc4
chore: fix some typos (#3949)
acceptacross Mar 12, 2024
fe7c645
Merge pull request #3937 from facebook/offset0
Cyan4973 Mar 12, 2024
b39c767
Add the zeroSeq sample
Cyan4973 Mar 12, 2024
ca0fc76
Merge pull request #3948 from facebook/tests_2927
Cyan4973 Mar 12, 2024
4eea5af
Merge pull request #3946 from facebook/cmake_hpux
Cyan4973 Mar 12, 2024
8688c6e
Merge pull request #3942 from facebook/fix3719
Cyan4973 Mar 12, 2024
3b573ba
Merge pull request #3936 from facebook/debug5
Cyan4973 Mar 12, 2024
7a43609
Merge pull request #3934 from facebook/risc5ci
Cyan4973 Mar 12, 2024
db996d2
Merge pull request #3933 from facebook/fix3819
Cyan4973 Mar 12, 2024
0ae98ba
add same .gitignore rule in golden-decompression/
Cyan4973 Mar 12, 2024
a6ff119
Merge pull request #3952 from felixhandte/stop-hardcoding-posix-versi…
felixhandte Mar 12, 2024
e27e156
Merge pull request #3901 from robandpdx-org/convert-facebook-zstd-to-…
Cyan4973 Mar 12, 2024
37ff4f9
removed golden-decompression/.gitignore
Cyan4973 Mar 12, 2024
5a66afa
Add common file extensions to --exclude-compressed (#3951)
daniellerozenblit Mar 12, 2024
83ec3d0
no longer truncate file name in verbose mode
Cyan4973 Mar 12, 2024
92fbd42
Export ZSTD_LEGACY_SUPPORT in tests/Makefile (#3955)
embg Mar 12, 2024
5473b72
updated documentation
Cyan4973 Mar 12, 2024
ff6713f
fix duplicated paragraph
Cyan4973 Mar 12, 2024
f65b9e2
Exercise ZSTD_findDecompressedSize() in the simple decompression fuzz…
embg Mar 12, 2024
b20703f
Updates `ZSTD_RowFindBestMatch` comment (#3947)
yoniko Mar 12, 2024
4bd911a
Merge pull request #3954 from facebook/zeroSeq_sample
Cyan4973 Mar 12, 2024
94c1020
[cpu] Backport fix for rbx clobbering on Windows with Clang
terrelln Mar 12, 2024
c1e9953
[CI] Run tests with CMake on Windows
terrelln Mar 12, 2024
084b362
Merge pull request #3956 from facebook/fix3702
Cyan4973 Mar 13, 2024
7c2aa73
Merge pull request #3958 from facebook/doc3698
Cyan4973 Mar 13, 2024
c8ab027
reduce the amount of includes in "cover.h"
Cyan4973 Mar 13, 2024
ff0afba
[asm][aarch64] Mark that BTI and PAC are supported
terrelln Mar 13, 2024
d6ee2d5
Use `utimensat()` on FreeBSD
felixhandte Mar 12, 2024
2215101
Add a Few Tests
felixhandte Mar 13, 2024
86b8e39
Remove Erroneous Exclusion of Hidden Files and Folders in `--output-d…
felixhandte Mar 13, 2024
3613448
Promote `ZSTD_c_targetCBlockSize` Parameter to Stable API
felixhandte Mar 13, 2024
04d91d5
Merge pull request #3960 from felixhandte/use-utimensat-on-posix-2001
felixhandte Mar 13, 2024
216099a
Merge pull request #3962 from facebook/cover_lessIncludes
Cyan4973 Mar 13, 2024
490163a
Merge pull request #3963 from felixhandte/also-handle-hidden-files-ou…
felixhandte Mar 14, 2024
515c07a
Merge pull request #3964 from felixhandte/promote-tgt-c-blk-size-to-s…
felixhandte Mar 14, 2024
a0a9bc6
[cmake] Always create libzstd target
terrelln Mar 14, 2024
9cc3304
add line number to debug traces
Cyan4973 Mar 14, 2024
559762d
Remove duplicate and incorrect docs in zstd_decompress.c (#3967)
embg Mar 14, 2024
686e7e4
updated version to v1.5.6
Cyan4973 Mar 14, 2024
351498b
update CHANGELOG for v1.5.6
Cyan4973 Mar 15, 2024
dff5407
Merge pull request #3966 from facebook/debug_lineNumber
Cyan4973 Mar 15, 2024
0fcdc62
Merge pull request #3969 from facebook/v156_prep
Cyan4973 Mar 15, 2024
88301b5
Bump actions/cache from 3 to 4
dependabot[bot] Mar 18, 2024
9dca060
Bump github/codeql-action from 3.24.6 to 3.24.7
dependabot[bot] Mar 18, 2024
f79c1c4
Merge pull request #3972 from facebook/dependabot/github_actions/acti…
Cyan4973 Mar 18, 2024
3008f74
Merge pull request #3973 from facebook/dependabot/github_actions/gith…
Cyan4973 Mar 18, 2024
79cd0ff
Makes it possible to use the lib through FetchContent or ExternalProj…
dsvi Aug 4, 2023
a595e58
[cmake] Fix up PR #3716
terrelln Mar 14, 2024
7d970bd
Implement one-shot fallback for magicless format (#3971)
embg Mar 18, 2024
cd4dba7
pzstd: use c++14 without conditions
Jun 19, 2023
42b02f5
[cmake] Emit warnings for contradictory build settings
terrelln Mar 18, 2024
f5728da
update targetCBlockSize documentation
Cyan4973 Mar 18, 2024
5d82c2b
add a paragraph on UB DCtx state after error
Cyan4973 Mar 18, 2024
902c7ec
add doc on CCtx UB state
Cyan4973 Mar 18, 2024
3d18d9a
updated API manual
Cyan4973 Mar 18, 2024
c5da438
fix typo
Cyan4973 Mar 18, 2024
6f1215b
fix ZSTD_TARGETCBLOCKSIZE_MIN test
Cyan4973 Mar 18, 2024
6a0052a
Fix bugs in simple decompression fuzzer (#3978)
yoniko Mar 18, 2024
3487a60
Fail on errors when building fuzzers
yoniko Mar 18, 2024
f62b266
Add docs on how to add a new fuzzer
embg Mar 19, 2024
741b87b
Fuzzing and bugfixes for magicless-format decoding (#3976)
embg Mar 20, 2024
731f4b7
Fix & fuzz ZSTD_generateSequences
terrelln Mar 19, 2024
86caab5
Merge pull request #3981 from terrelln/2024-03-19-generate-sequences
Cyan4973 Mar 21, 2024
1d3f664
Merge pull request #3979 from yoniko/Werror-fuzz
Cyan4973 Mar 21, 2024
76fbb5f
Merge pull request #3975 from terrelln/2024-03-18-cmake-docs
Cyan4973 Mar 21, 2024
6679d0c
Merge pull request #3982 from embg/fuzzer_readme
Cyan4973 Mar 21, 2024
dc1f7b5
fix -Werror=pointer-arith in fuzzers (#3983)
embg Mar 21, 2024
c6e5257
Merge pull request #3977 from facebook/doc_advanced
Cyan4973 Mar 21, 2024
273d127
try to silence some scorecard warnings
Cyan4973 Mar 21, 2024
78f732c
Merge pull request #3985 from facebook/scorecard_permission
Cyan4973 Mar 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .cirrus.yml
Expand Up @@ -2,8 +2,8 @@ task:
name: FreeBSD (shortest)
freebsd_instance:
matrix:
image_family: freebsd-13-0
image_family: freebsd-12-2
image_family: freebsd-14-0
image_family: freebsd-13-2
install_script: pkg install -y gmake coreutils
script: |
MOREFLAGS="-Werror" gmake -j all
Expand Down
89 changes: 89 additions & 0 deletions .github/workflows/commit.yml
@@ -0,0 +1,89 @@
name: facebook/zstd/commit
Fixed Show fixed Hide fixed
on:
push:
branches:
- dev
permissions: read-all
jobs:
short-tests-0:
runs-on: ubuntu-latest
services:
docker:
image: fbopensource/zstd-circleci-primary:0.0.1
options: --entrypoint /bin/bash
steps:
- uses: actions/checkout@v4

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 8: GitHub-owned GitHubAction not pinned by hash
Remediation tip: update your workflow using https://app.stepsecurity.io
Click Remediation section below for further remediation help
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install libcurl4-gnutls-dev
- name: Test
run: |
./tests/test-license.py
cc -v
CFLAGS="-O0 -Werror -pedantic" make allmost; make clean
make c99build; make clean
make c11build; make clean
make -j regressiontest; make clean
make shortest; make clean
make cxxtest; make clean
short-tests-1:
runs-on: ubuntu-latest
services:
docker:
image: fbopensource/zstd-circleci-primary:0.0.1
options: --entrypoint /bin/bash
steps:
- uses: actions/checkout@v4

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 8: GitHub-owned GitHubAction not pinned by hash
Remediation tip: update your workflow using https://app.stepsecurity.io
Click Remediation section below for further remediation help
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install gcc-powerpc-linux-gnu gcc-arm-linux-gnueabi gcc-aarch64-linux-gnu libc6-dev-ppc64-powerpc-cross libcurl4-gnutls-dev lib64gcc-11-dev-powerpc-cross
- name: Test
run: |-
make gnu90build; make clean
make gnu99build; make clean
make ppc64build V=1; make clean
make ppcbuild V=1; make clean
make armbuild V=1; make clean
make aarch64build V=1; make clean
make -C tests test-legacy test-longmatch; make clean
make -C lib libzstd-nomt; make clean
regression-test:
runs-on: ubuntu-latest
services:
docker:
image: fbopensource/zstd-circleci-primary:0.0.1
options: --entrypoint /bin/bash
env:
CIRCLE_ARTIFACTS: "/tmp/circleci-artifacts"
steps:
- uses: actions/checkout@v4

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 8: GitHub-owned GitHubAction not pinned by hash
Remediation tip: update your workflow using https://app.stepsecurity.io
Click Remediation section below for further remediation help
- name: restore_cache
uses: actions/cache@v4

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 8: GitHub-owned GitHubAction not pinned by hash
Remediation tip: update your workflow using https://app.stepsecurity.io
Click Remediation section below for further remediation help
with:
key: regression-cache-{{ checksum "tests/regression/data.c" }}-v0
path: tests/regression/cache
restore-keys: regression-cache-{{ checksum "tests/regression/data.c" }}-v0
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install libcurl4-gnutls-dev
- name: Regression Test
run: |
make -C programs zstd
make -C tests/regression test
mkdir -p $CIRCLE_ARTIFACTS
./tests/regression/test \
--cache tests/regression/cache \
--output $CIRCLE_ARTIFACTS/results.csv \
--zstd programs/zstd
echo "NOTE: The new results.csv is uploaded as an artifact to this job"
echo " If this fails, go to the Artifacts pane in CircleCI, "
echo " download /tmp/circleci-artifacts/results.csv, and if they "
echo " are still good, copy it into the repo and commit it."
echo "> diff tests/regression/results.csv $CIRCLE_ARTIFACTS/results.csv"
diff tests/regression/results.csv $CIRCLE_ARTIFACTS/results.csv
- uses: actions/upload-artifact@v4

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 8: GitHub-owned GitHubAction not pinned by hash
Remediation tip: update your workflow using https://app.stepsecurity.io
Click Remediation section below for further remediation help
with:
path: "/tmp/circleci-artifacts"
88 changes: 44 additions & 44 deletions .github/workflows/dev-long-tests.yml
Expand Up @@ -15,7 +15,7 @@ jobs:
make-all:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
- name: make all
run: make all

Expand All @@ -26,15 +26,15 @@ jobs:
DEVNULLRIGHTS: 1
READFROMBLOCKDEVICE: 1
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
- name: make test
run: make test

# lasts ~26mn
make-test-osx:
runs-on: macos-latest
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
- name: OS-X test
run: make test # make -c lib all doesn't work because of the fact that it's not a tty

Expand All @@ -45,7 +45,7 @@ jobs:
DEVNULLRIGHTS: 1
READFROMBLOCKDEVICE: 1
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
- name: make test
run: |
sudo apt-get -qqq update
Expand All @@ -55,37 +55,37 @@ jobs:
no-intrinsics-fuzztest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
- name: no intrinsics fuzztest
run: MOREFLAGS="-DZSTD_NO_INTRINSICS" make -C tests fuzztest

tsan-zstreamtest:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
- name: thread sanitizer zstreamtest
run: CC=clang ZSTREAM_TESTTIME=-T3mn make tsan-test-zstream

ubsan-zstreamtest:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
- name: undefined behavior sanitizer zstreamtest
run: CC=clang make uasan-test-zstream

# lasts ~15mn
tsan-fuzztest:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
- name: thread sanitizer fuzztest
run: CC=clang make tsan-fuzztest


big-tests-zstreamtest32:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
- name: zstream tests in 32bit mode, with big tests
run: |
sudo apt-get -qqq update
Expand All @@ -94,9 +94,9 @@ jobs:
# lasts ~23mn
gcc-8-asan-ubsan-testzstd:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
- name: gcc-8 + ASan + UBSan + Test Zstd
# See https://askubuntu.com/a/1428822
run: |
Expand All @@ -106,16 +106,16 @@ jobs:
CC=gcc-8 make -j uasan-test-zstd </dev/null V=1
clang-asan-ubsan-testzstd:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
- name: clang + ASan + UBSan + Test Zstd
run: CC=clang make -j uasan-test-zstd </dev/null V=1

gcc-asan-ubsan-testzstd-32bit:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
- name: ASan + UBSan + Test Zstd, 32bit mode
run: |
sudo apt-get -qqq update
Expand All @@ -127,9 +127,9 @@ jobs:
# so any data coming from these libraries is always considered "uninitialized"

gcc-8-asan-ubsan-fuzz:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
- name: gcc-8 + ASan + UBSan + Fuzz Test
# See https://askubuntu.com/a/1428822
run: |
Expand All @@ -139,67 +139,67 @@ jobs:
CC=gcc-8 FUZZER_FLAGS="--long-tests" make clean uasan-fuzztest
clang-asan-ubsan-fuzz:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
- name: clang + ASan + UBSan + Fuzz Test
run: CC=clang FUZZER_FLAGS="--long-tests" make clean uasan-fuzztest

gcc-asan-ubsan-fuzz32:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
- name: ASan + UBSan + Fuzz Test 32bit
run: |
sudo apt-get -qqq update
make libc6install
CFLAGS="-O3 -m32" FUZZER_FLAGS="--long-tests" make uasan-fuzztest
clang-asan-ubsan-fuzz32:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
- name: clang + ASan + UBSan + Fuzz Test 32bit
run: |
sudo apt-get -qqq update
make libc6install
CC=clang CFLAGS="-O3 -m32" FUZZER_FLAGS="--long-tests" make uasan-fuzztest
asan-ubsan-regression:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
- name: ASan + UBSan + Regression Test
run: make -j uasanregressiontest

clang-ubsan-regression:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
- name: clang + ASan + UBSan + Regression Test
run: CC=clang make -j uasanregressiontest

msan-regression:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
- name: MSan + Regression Test
run: make -j msanregressiontest

clang-msan-fuzz-unoptimized:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
- name: clang + MSan + Fuzz Test
run: |
sudo apt-get -qqq update
sudo apt-get install clang
CC=clang MOREFLAGS="-O0" make clean msan-fuzztest
clang-msan-fuzz:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
- name: clang + MSan + Fuzz Test
run: |
sudo apt-get -qqq update
Expand All @@ -208,9 +208,9 @@ jobs:
# lasts ~24mn
clang-msan-testzstd:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
- name: clang + MSan + Test Zstd
run: |
sudo apt-get update
Expand All @@ -220,7 +220,7 @@ jobs:
armfuzz:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
- name: Qemu ARM emulation + Fuzz Test
run: |
sudo apt-get -qqq update
Expand All @@ -230,7 +230,7 @@ jobs:
valgrind-fuzz-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
- name: valgrind + fuzz test stack mode # ~ 7mn
shell: 'script -q -e -c "bash {0}"'
run: |
Expand All @@ -246,8 +246,8 @@ jobs:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag=v3
- uses: msys2/setup-msys2@5beef6d11f48bba68b9eb503e3adc60b23c0cc36 # tag=v2
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
- uses: msys2/setup-msys2@cc11e9188b693c2b100158c3322424c4cc1dadea # tag=v2.22.0
with:
msystem: MINGW64
install: make
Expand All @@ -269,7 +269,7 @@ jobs:
# lasts ~20mn
oss-fuzz:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
Expand All @@ -290,7 +290,7 @@ jobs:
dry-run: false
sanitizer: ${{ matrix.sanitizer }}
- name: Upload Crash
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # tag=v3.1.2
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # tag=v4.3.1
if: failure() && steps.build.outcome == 'success'
with:
name: ${{ matrix.sanitizer }}-artifacts
Expand Down