]>
git.ipfire.org Git - thirdparty/zstd.git/log
Yann Collet [Thu, 28 Sep 2023 04:18:20 +0000 (21:18 -0700)]
fix x32 tests on Github CI
ubuntu-22.04 seems to have problems with x32 recently
switching to ubuntu-20.04 which seems to work fine so far
https://github.com/actions/runner-images/issues/8397
Yann Collet [Mon, 25 Sep 2023 06:34:06 +0000 (23:34 -0700)]
Merge pull request #3774 from facebook/dependabot/github_actions/actions/checkout-4.1.0
Bump actions/checkout from 4.0.0 to 4.1.0
dependabot[bot] [Mon, 25 Sep 2023 05:18:07 +0000 (05:18 +0000)]
Bump actions/checkout from 4.0.0 to 4.1.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/
3df4ab11eba7bda6032a0b82a6bb43b11571feac ...
8ade135a41bc03ea155e62e844d188df1ea18608 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Nick Terrell [Fri, 22 Sep 2023 18:51:15 +0000 (11:51 -0700)]
Improve macro guards for ZSTD_assertValidSequence
Refine the macro guards to define the functions exactly when they are
needed.
This fixes the chromium build with zstd.
Thanks to @GregTho for reporting!
Yann Collet [Tue, 19 Sep 2023 05:32:40 +0000 (22:32 -0700)]
Merge pull request #3755 from facebook/estimate_doc
added some documentation on ZSTD_estimate*Size() variants
Yann Collet [Wed, 13 Sep 2023 18:35:19 +0000 (11:35 -0700)]
added some documentation on ZSTD_estimate*Size() variants
as a follow up for #3747
Yann Collet [Tue, 12 Sep 2023 20:58:08 +0000 (13:58 -0700)]
Merge pull request #3749 from facebook/dependabot/github_actions/actions/checkout-4.0.0
Bump actions/checkout from 3.5.3 to 4.0.0
Yann Collet [Tue, 12 Sep 2023 20:43:59 +0000 (13:43 -0700)]
Merge pull request #3745 from klausholstjacobsen/qnx-support
Added qnx in the posix test section of platform.h
Yann Collet [Tue, 12 Sep 2023 20:43:00 +0000 (13:43 -0700)]
Merge pull request #3750 from facebook/dependabot/github_actions/actions/upload-artifact-3.1.3
Bump actions/upload-artifact from 3.1.2 to 3.1.3
dependabot[bot] [Mon, 11 Sep 2023 05:09:05 +0000 (05:09 +0000)]
Bump actions/upload-artifact from 3.1.2 to 3.1.3
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/
0b7f8abb1508181956e8e162db84b466c27e18ce ...
a8a3f3ad30e3422c9c7b888a15615d19a852ae32 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] [Mon, 11 Sep 2023 05:09:02 +0000 (05:09 +0000)]
Bump actions/checkout from 3.5.3 to 4.0.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.3 to 4.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/
c85c95e3d7251135ab7dc9ce3241c5835cc595a9 ...
3df4ab11eba7bda6032a0b82a6bb43b11571feac )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Yann Collet [Sun, 10 Sep 2023 13:32:24 +0000 (06:32 -0700)]
Merge pull request #3739 from JohanMabille/cmake
Fixed zstd cmake shared build on windows
Yann Collet [Sun, 10 Sep 2023 13:31:52 +0000 (06:31 -0700)]
Merge pull request #3733 from ldv-alt/zdictlib_fix_prototype_mismatch
zdictlib: fix prototype mismatch
klausholstjacobsen [Sun, 3 Sep 2023 08:10:23 +0000 (10:10 +0200)]
Added qnx in the posix test section of platform.h
Johan Mabille [Fri, 25 Aug 2023 22:40:35 +0000 (00:40 +0200)]
Fixed zstd cmake shared build on windows
Nick Terrell [Thu, 24 Aug 2023 21:41:21 +0000 (14:41 -0700)]
Fix & refactor Huffman repeat tables for dictionaries
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
Nick Terrell [Thu, 24 Aug 2023 23:33:42 +0000 (16:33 -0700)]
Work around nullptr-with-nonzero-offset warning
See comment.
Dmitry V. Levin [Tue, 8 Aug 2023 08:00:00 +0000 (08:00 +0000)]
zdictlib: fix prototype mismatch
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)
Yann Collet [Tue, 22 Aug 2023 23:29:34 +0000 (16:29 -0700)]
Merge pull request #3720 from QBos07/cygwin-msys2-support
Updated Makefiles for full MSYS2 and Cygwin installation and testing …
Yann Collet [Tue, 22 Aug 2023 20:33:47 +0000 (13:33 -0700)]
Merge pull request #3728 from 0o001/dev
fix: ZSTD_BUILD_DECOMPRESSION message
Nick Terrell [Mon, 21 Aug 2023 18:33:29 +0000 (11:33 -0700)]
No longer reject dictionaries with literals maxSymbolValue < 255
We already have logic in our Huffman encoder to validate Huffman tables with missing symbols.
We use this for higher compression levels to re-use the previous blocks statistics, or when the dictionaries table has zero-weighted symbols.
This check was leftover as an oversight from before we added validation for Huffman tables.
I validated that the `dictionary_loader` fuzzer has coverage of every line in the `ZSTD_loadCEntropy()` function to validate that it is correctly testing this function.
Yann Collet [Mon, 21 Aug 2023 19:35:51 +0000 (12:35 -0700)]
Merge pull request #3726 from facebook/fullbench_dctx
added ZSTD_decompressDCtx() benchmark option to fullbench
Felix Handte [Mon, 21 Aug 2023 16:47:26 +0000 (09:47 -0700)]
Merge pull request #3730 from facebook/dependabot/github_actions/github/codeql-action-2.21.4
Bump github/codeql-action from 2.20.3 to 2.21.4
dependabot[bot] [Mon, 21 Aug 2023 05:51:56 +0000 (05:51 +0000)]
Bump github/codeql-action from 2.20.3 to 2.21.4
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.20.3 to 2.21.4.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/
46ed16ded91731b2df79a2893d3aea8e9f03b5c4 ...
a09933a12a80f87b87005513f0abb1494c27a716 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Mustafa UZUN [Sat, 19 Aug 2023 12:44:53 +0000 (15:44 +0300)]
fix: ZSTD_BUILD_DECOMPRESSION message
Yann Collet [Wed, 16 Aug 2023 17:43:39 +0000 (10:43 -0700)]
added ZSTD_decompressDCtx() benchmark option to fullbench
useful to compare the difference between ZSTD_decompress
and ZSTD_decompressDCtx().
Felix Handte [Wed, 16 Aug 2023 17:18:31 +0000 (10:18 -0700)]
Merge pull request #3725 from felixhandte/msan-unpoison-cwksp-on-free
Unpoison Workspace Memory Before Custom-Free
W. Felix Handte [Wed, 16 Aug 2023 16:09:12 +0000 (12:09 -0400)]
Unpoison Workspace Memory Before Freeing to Custom Free
MSAN is hooked into the system malloc, but when the user provides a custom
allocator, it may not provide the same cleansing behavior. So if we leave
memory poisoned and return it to the user's allocator, where it is re-used
elsewhere, our poisoning can blow up in some other context.
W. Felix Handte [Wed, 16 Aug 2023 16:08:52 +0000 (12:08 -0400)]
Easy: Move Helper Functions Up
Nick Terrell [Sat, 12 Aug 2023 00:09:07 +0000 (17:09 -0700)]
Improve dual license wording in README
We are licensed under BSD or GPLv2. It is clear in our headers, but not in the README.
Fixes #3717
Quentin Boswank [Sun, 13 Aug 2023 17:44:15 +0000 (19:44 +0200)]
Updated Makefiles for full MSYS2 and Cygwin installation and testing support.
They are Linux-like environments under Windows and have all the tools needed to support staged installation and testing.
Beware: this only affects the make build system.
Yann Collet [Wed, 2 Aug 2023 18:11:31 +0000 (11:11 -0700)]
Merge pull request #3712 from alexsifivetw/fix_typo
Fixed typo
jysh1214 [Tue, 1 Aug 2023 02:43:33 +0000 (10:43 +0800)]
Fixed typo
Yann Collet [Mon, 31 Jul 2023 10:25:17 +0000 (03:25 -0700)]
Merge pull request #3701 from nikohoffren/grammar-fix
Fix typographical error in README.md
Yann Collet [Sun, 30 Jul 2023 01:16:14 +0000 (18:16 -0700)]
Merge pull request #3704 from void0red/dev
fileio_asyncio: handle malloc fails in AIO_ReadPool_create
void0red [Fri, 21 Jul 2023 04:17:03 +0000 (12:17 +0800)]
fileio_asyncio: handle malloc fails in AIO_ReadPool_create
Gianfranco Costamagna [Fri, 7 Jul 2023 07:26:30 +0000 (09:26 +0200)]
Update fileio.c: fix build failure with enabled LTO
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
Jacob Greenfield [Tue, 18 Jul 2023 14:48:46 +0000 (10:48 -0400)]
Save one byte on the frame epilogue
Yann Collet [Thu, 20 Jul 2023 08:48:39 +0000 (01:48 -0700)]
Merge pull request #3665 from gjasny/fix-asm-for-xcode
Fix Intel Xcode builds with assembly
Niko Hoffrén [Wed, 19 Jul 2023 18:49:43 +0000 (21:49 +0300)]
Fix typographical error in README.md
Elliot Gorokhovsky [Tue, 11 Jul 2023 20:37:20 +0000 (13:37 -0700)]
Merge pull request #3697 from facebook/dependabot/github_actions/github/codeql-action-2.20.3
Bump github/codeql-action from 2.20.1 to 2.20.3
dependabot[bot] [Mon, 10 Jul 2023 05:37:59 +0000 (05:37 +0000)]
Bump github/codeql-action from 2.20.1 to 2.20.3
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.20.1 to 2.20.3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/
f6e388ebf0efc915c6c5b165b019ee61a6746a38 ...
46ed16ded91731b2df79a2893d3aea8e9f03b5c4 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Yann Collet [Wed, 5 Jul 2023 07:59:08 +0000 (00:59 -0700)]
Merge pull request #3677 from facebook/detectOverflow
Changed the decoding loop to detect more invalid cases of corruption sooner
Yann Collet [Fri, 30 Jun 2023 02:40:37 +0000 (19:40 -0700)]
Merge pull request #3688 from nidhijaju/hide-asm-apple
Hide ASM symbols on Apple platforms
Elliot Gorokhovsky [Wed, 28 Jun 2023 01:05:52 +0000 (18:05 -0700)]
Merge pull request #3689 from facebook/dependabot/github_actions/github/codeql-action-2.20.1
Bump github/codeql-action from 2.3.2 to 2.20.1
Elliot Gorokhovsky [Wed, 28 Jun 2023 01:05:32 +0000 (18:05 -0700)]
Merge pull request #3690 from facebook/dependabot/github_actions/ossf/scorecard-action-2.2.0
Bump ossf/scorecard-action from 2.1.3 to 2.2.0
Elliot Gorokhovsky [Mon, 26 Jun 2023 17:43:20 +0000 (13:43 -0400)]
Merge pull request #3686 from embg/ldm_error
Clean up a false error message in the LDM debug log
dependabot[bot] [Mon, 26 Jun 2023 05:59:43 +0000 (05:59 +0000)]
Bump ossf/scorecard-action from 2.1.3 to 2.2.0
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.1.3 to 2.2.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/
80e868c13c90f172d68d1f4501dee99e2479f7af ...
08b4669551908b1024bb425080c797723083c031 )
---
updated-dependencies:
- dependency-name: ossf/scorecard-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] [Mon, 26 Jun 2023 05:59:38 +0000 (05:59 +0000)]
Bump github/codeql-action from 2.3.2 to 2.20.1
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.3.2 to 2.20.1.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/
f3feb00acb00f31a6f60280e6ace9ca31d91c76a ...
f6e388ebf0efc915c6c5b165b019ee61a6746a38 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Nidhi Jaju [Mon, 26 Jun 2023 00:07:30 +0000 (00:07 +0000)]
hide asm functions on apple platforms
Yann Collet [Sat, 24 Jun 2023 05:56:07 +0000 (22:56 -0700)]
Merge pull request #3684 from emaste/dev
Update FreeBSD CI images to latest supported releases
Elliot Gorokhovsky [Thu, 22 Jun 2023 01:52:50 +0000 (18:52 -0700)]
suppress false error message in LDM mode
Ed Maste [Wed, 21 Jun 2023 16:16:26 +0000 (12:16 -0400)]
Update FreeBSD CI images to latest supported releases
Yann Collet [Tue, 20 Jun 2023 15:34:26 +0000 (08:34 -0700)]
fixed incorrect test in Win32 pthread wrapper
reported by @Banzai24-yht in #3683
Yann Collet [Fri, 16 Jun 2023 23:24:48 +0000 (16:24 -0700)]
fixed static analyzer false positive regarding @sequence initialization
make a mock initialization to please the tool
Yann Collet [Fri, 16 Jun 2023 22:52:00 +0000 (15:52 -0700)]
adapted long decoder to new decodeSequences
removed older decodeSequences
Yann Collet [Fri, 16 Jun 2023 22:32:07 +0000 (15:32 -0700)]
changed ZSTD_decompressSequences_bodySplitLitBuffer() decoding loop
to behave more like the regular decoding loop.
Yann Collet [Fri, 16 Jun 2023 19:31:23 +0000 (12:31 -0700)]
removed _old variant from splitLit
Yann Collet [Fri, 16 Jun 2023 18:56:22 +0000 (11:56 -0700)]
changed (partially) the decodeSequences flow logic
this allows detecting overflow events without a checksum.
Yann Collet [Fri, 16 Jun 2023 01:16:41 +0000 (18:16 -0700)]
Merge pull request #3676 from facebook/overflow_zeroes
Bitstream produces only zeroes after an overflow event
Yann Collet [Thu, 15 Jun 2023 03:03:39 +0000 (20:03 -0700)]
fixed MEM_STATIC already defined in Linux Kernel mode
Yann Collet [Wed, 14 Jun 2023 23:32:51 +0000 (16:32 -0700)]
fix : unused attribute for FORCE_INLINE functions
fix2 : reloadDStreamFast is used by decompress4x2,
modified the entry point, so that it works fine in this case too.
Yann Collet [Wed, 14 Jun 2023 22:42:37 +0000 (15:42 -0700)]
make the bitstream generate only 0-value bits after an overflow
Yann Collet [Tue, 13 Jun 2023 23:17:07 +0000 (16:17 -0700)]
Merge pull request #3674 from facebook/zeroSeq_noExtra
detect extraneous bytes in the Sequences section
Yann Collet [Tue, 13 Jun 2023 18:43:45 +0000 (11:43 -0700)]
detect extraneous bytes in the Sequences section
when nbSeq == 0.
Reported by @ip7z
Yann Collet [Mon, 12 Jun 2023 16:58:53 +0000 (09:58 -0700)]
Merge pull request #3671 from facebook/dependabot/github_actions/actions/checkout-3.5.3
Bump actions/checkout from 3.5.2 to 3.5.3
dependabot[bot] [Mon, 12 Jun 2023 06:00:14 +0000 (06:00 +0000)]
Bump actions/checkout from 3.5.2 to 3.5.3
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.2 to 3.5.3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/
8e5e7e5ab8b370d6c329ec480221332ada57f0ab ...
c85c95e3d7251135ab7dc9ce3241c5835cc595a9 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Yann Collet [Tue, 6 Jun 2023 04:06:15 +0000 (00:06 -0400)]
Merge pull request #3669 from facebook/zeroSeq_2B
fixed decoder behavior when nbSeqs==0 is encoded using 2 bytes
Yann Collet [Mon, 5 Jun 2023 23:03:00 +0000 (16:03 -0700)]
fixed decoder behavior when nbSeqs==0 is encoded using 2 bytes
The sequence section starts with a number, which tells how sequences are present in the section.
If this number if 0, the section automatically ends.
The number 0 can be represented using the 1 byte or the 2 bytes formats.
That's because the 2-bytes formats fully overlaps the 1 byte format.
However, when 0 is represented using the 2-bytes format,
the decoder was expecting the sequence section to continue,
and was looking for FSE tables, which is incorrect.
Fixed this behavior, in both the reference decoder and the educational behavior.
In practice, this behavior never happens,
because the encoder will always select the 1-byte format to represent 0,
since this is more efficient.
Completed the fix with a new golden sample for tests,
a clarification of the specification,
and a decoder errata paragraph.
Yann Collet [Mon, 5 Jun 2023 19:03:27 +0000 (15:03 -0400)]
Merge pull request #3664 from facebook/llu
changed LLU suffix into ULL for Visual 2012 and lower
Yann Collet [Mon, 5 Jun 2023 19:03:14 +0000 (15:03 -0400)]
Merge pull request #3659 from facebook/fixHarness
Fixed a bug in the educational decoder
Yann Collet [Mon, 5 Jun 2023 19:02:55 +0000 (15:02 -0400)]
Merge pull request #3668 from facebook/fix3667
fix a minor inefficiency in compress_superblock
Yann Collet [Mon, 5 Jun 2023 16:51:52 +0000 (09:51 -0700)]
fix a minor inefficiency in compress_superblock
and in `decodecorpus`:
the specific case `nbSeq=127` can be represented using the 1-byte format.
Note that both the 1-byte and the 2-bytes formats are valid to represent this case,
so there was no "error", produced data remains valid,
it's just that the 1-byte format is more efficient.
fix #3667
Credit to @ip7z for finding this issue.
Gregor Jasny [Fri, 2 Jun 2023 10:34:56 +0000 (12:34 +0200)]
Fix Intel Xcode builds with assembly
When forcing the source file language to `C`, Xcode enforces
the file to be compiled as `C` by appending `-x c` to the
compiler command line.
For now try to limit the damage and only enforce the language
if the ASM and C compilers differ.
Reproducer (CMake `3.26.4`, Xcode `14.3`):
```
cmake -S build/cmake -B _b -GXcode -DCMAKE_OSX_ARCHITECTURES=x86_64
cmake --build _b
```
Fix: #3622
Yann Collet [Wed, 31 May 2023 20:29:53 +0000 (13:29 -0700)]
changed LLU suffix into ULL for Visual 2012 and lower
both suffixes are supposed to be valid,
but for some reason, Visual 2012 and lower only support ULL.
Yann Collet [Sat, 27 May 2023 18:22:30 +0000 (11:22 -0700)]
Fixed a bug in the educational decoder
Credit to Igor Pavlov
Tao He [Thu, 25 May 2023 14:48:01 +0000 (22:48 +0800)]
Add options in Makefile to cmake
Signed-off-by: Tao He <sighingnow@gmail.com>
Nick Terrell [Thu, 25 May 2023 21:35:49 +0000 (14:35 -0700)]
Fix UBSAN issue (zero addition to NULL)
Fix UBSAN issue that came up internally.
Yann Collet [Wed, 24 May 2023 00:38:28 +0000 (20:38 -0400)]
Merge pull request #3631 from facebook/example_streaming_mt
minor : update streaming_compression example
Duncan Horn [Mon, 1 May 2023 21:29:52 +0000 (14:29 -0700)]
Get zstd working with ARM64EC on Windows
Felix Handte [Mon, 22 May 2023 21:38:10 +0000 (17:38 -0400)]
Merge pull request #3623 from felixhandte/compile-out-compressors
Allow Build-Time Exclusion of Individual Compression Strategies
W. Felix Handte [Mon, 22 May 2023 16:41:48 +0000 (12:41 -0400)]
Reorder Definitions in zstd_opt.c to Group Under Macro Guards (Slightly)
W. Felix Handte [Mon, 22 May 2023 16:37:03 +0000 (12:37 -0400)]
Reorder Definitions in zstd_lazy.c to Group Under Macro Guards
W. Felix Handte [Thu, 4 May 2023 16:31:41 +0000 (12:31 -0400)]
Also Allow/Document/Test Excluding dfast and Up
W. Felix Handte [Thu, 4 May 2023 16:20:02 +0000 (12:20 -0400)]
Add Documentation to lib/README.md
W. Felix Handte [Mon, 24 Apr 2023 20:53:30 +0000 (16:53 -0400)]
Also Reorganize Zstd Opt Declarations
W. Felix Handte [Mon, 24 Apr 2023 18:50:54 +0000 (14:50 -0400)]
Remove blockCompressor NULL Checks
W. Felix Handte [Mon, 24 Apr 2023 15:50:01 +0000 (11:50 -0400)]
Abort if Unsupported Parameters Used
W. Felix Handte [Mon, 24 Apr 2023 14:40:52 +0000 (10:40 -0400)]
Re-Order Lazy Declarations; Minimize ifndefs
W. Felix Handte [Fri, 21 Apr 2023 20:14:27 +0000 (16:14 -0400)]
Add CI Test for Excluding Matchfinders
W. Felix Handte [Fri, 21 Apr 2023 20:14:11 +0000 (16:14 -0400)]
Add ZSTD_LIB_EXCLUDE_COMPRESSORS_DFAST_AND_UP Build Variable
W. Felix Handte [Fri, 21 Apr 2023 15:32:41 +0000 (11:32 -0400)]
Define Macros for Possibly-Present Functions; Use Them Rather than Ifdef Guards
W. Felix Handte [Thu, 20 Apr 2023 15:53:23 +0000 (11:53 -0400)]
Merge Ultra and Ultra2 Exclusion
Ultra2 does not exist for dict compression, and so uses ultra. So ultra must
be present if ultra2 is.
W. Felix Handte [Thu, 20 Apr 2023 15:46:29 +0000 (11:46 -0400)]
Tweak Ultra/Opt Guards
W. Felix Handte [Thu, 20 Apr 2023 15:46:04 +0000 (11:46 -0400)]
Avoid Ratio Regression Tests When Compressors are Excluded
W. Felix Handte [Wed, 19 Apr 2023 21:53:40 +0000 (17:53 -0400)]
Adjust Strategy in CParams to Avoid Using Excluded Block Compressors
W. Felix Handte [Wed, 19 Apr 2023 19:38:04 +0000 (15:38 -0400)]
Macro-Exclude Block Compressors from Declaration/Definition
W. Felix Handte [Wed, 19 Apr 2023 16:19:56 +0000 (12:19 -0400)]
NULL Out Block Compressor Table Entries When Excluded
Don't check about excluding `ZSTD_fast`. It's always included so that we know
we can resolve downwards and hit a strategy that's present.
W. Felix Handte [Wed, 19 Apr 2023 15:41:51 +0000 (11:41 -0400)]
Allow `ZSTD_selectBlockCompressor()` to Return NULL
Return an error rather than segfaulting.
Felix Handte [Mon, 1 May 2023 15:06:07 +0000 (08:06 -0700)]
Merge pull request #3634 from facebook/dependabot/github_actions/github/codeql-action-2.3.2
Bump github/codeql-action from 2.3.0 to 2.3.2