]> git.ipfire.org Git - thirdparty/zstd.git/log
thirdparty/zstd.git
3 years agoAdd extra space to match linux kernel staging v1.4.10
Nick Terrell [Wed, 23 Feb 2022 03:58:18 +0000 (19:58 -0800)] 
Add extra space to match linux kernel

3 years agoAdd comment to unused variable suppression
Nick Terrell [Wed, 17 Nov 2021 21:46:09 +0000 (13:46 -0800)] 
Add comment to unused variable suppression

3 years ago[linux-kernel] Don't add -O3 to CFLAGS
Nick Terrell [Tue, 16 Nov 2021 22:25:18 +0000 (14:25 -0800)] 
[linux-kernel] Don't add -O3 to CFLAGS

It is no longer necessary to get good performance, there is only a small
speed difference between -O2 and -O3, so just stick to the default of
-O2.

This also fixes the stack space usage on parisc. The compiler was buggy
for -O3 and used ~3KB of stack space for several functions. With -O2 the
problem is completely resolved, and stack space is back to a few hundred
bytes.

Additionally, we get a large code size win on gcc:

| Compiler | Before (Bytes) | After (Bytes) | Delta (Bytes) |
|----------|----------------|---------------|---------------|
| gcc-11   |         952754 |        738954 |       -213800 |
| clang-12 |         976290 |        938826 |        -37464 |

3 years ago[linux-kernel] Don't inline function in zstd_opt.c
Nick Terrell [Tue, 16 Nov 2021 00:57:00 +0000 (16:57 -0800)] 
[linux-kernel] Don't inline function in zstd_opt.c

The optimal parser is unlikely to be used in the linux kernel in
practice. There is no reason these functions should be force inlined,
since we aren't gaining anything, and are losing build size.

| Compiler | Before (Bytes) | After (Bytes) | Delta (Bytes) |
|----------|----------------|---------------|---------------|
| gcc-11   |        1142090 |        952754 |       -189336 |
| clang-12 |        1228402 |        976290 |       -252112 |

This is a temporary solution pending the resolution of Issue #2862 in
the `dev` branch.

3 years agoFix unused variable warning
Nick Terrell [Tue, 16 Nov 2021 00:54:01 +0000 (16:54 -0800)] 
Fix unused variable warning

`litLengthSum` is unused when asserts are disabled. Already fixed in `dev` by
PR#2838. Found by the Kernel test robot [0].

[0] https://lore.kernel.org/linux-mm/202111120312.833wII4i-lkp@intel.com/T/

Reported-by: kernel test robot <lkp@intel.com>
3 years agoBackport zstd patch from LKML
Nick Terrell [Thu, 11 Nov 2021 20:15:51 +0000 (12:15 -0800)] 
Backport zstd patch from LKML

Credit to Nathan Chancellor for the bug fix and Nick Desaulniers for the
bug report.

Link: ClangBuiltLinux/linux#1486
Link: https://lore.kernel.org/all/20211021202353.2356400-1-nathan@kernel.org/
3 years ago[binary-tree] Fix underflow of nbCompares
Nick Terrell [Fri, 8 Oct 2021 18:45:30 +0000 (11:45 -0700)] 
[binary-tree] Fix underflow of nbCompares

Fix underflow of `nbCompares` by switching to an `int` and comparing
`nbCompares > 0`. This is a minimal fix, because I don't want to change
the logic. These loops seem to be doing `nbCompares + 1` comparisons.

The bug was reported by Dan Carpenter and found by Smatch static
checker.

https://lore.kernel.org/all/20211008063704.GA5370@kili/

3 years ago[ldm] Fix ZSTD_c_ldmHashRateLog bounds check
Nick Terrell [Fri, 8 Oct 2021 18:17:40 +0000 (11:17 -0700)] 
[ldm] Fix ZSTD_c_ldmHashRateLog bounds check

There is no minimum value check, so the parameter could be negative.
Switch to the standard pattern of using `BOUNDCHECK()`.

The bug was reported by Dan Carpenter and found by Smatch static
checker.

https://lore.kernel.org/all/20211008063704.GA5370@kili/

3 years ago[nit] Fix buggy indentation
Nick Terrell [Fri, 8 Oct 2021 18:13:11 +0000 (11:13 -0700)] 
[nit] Fix buggy indentation

The bug was reported by Dan Carpenter and found by Smatch static
checker.

https://lore.kernel.org/all/20211008063704.GA5370@kili/

3 years ago[multiple-ddicts] Fix NULL checks
Nick Terrell [Fri, 8 Oct 2021 18:05:58 +0000 (11:05 -0700)] 
[multiple-ddicts] Fix NULL checks

The bug was reported by Dan Carpenter and found by Smatch static
checker.

https://lore.kernel.org/all/20211008063704.GA5370@kili/

3 years ago[lib] Make lib compatible with `-Wfall-through` excepting legacy
Nick Terrell [Thu, 23 Sep 2021 02:56:07 +0000 (19:56 -0700)] 
[lib] Make lib compatible with `-Wfall-through` excepting legacy

Switch to a macro `ZSTD_FALLTHROUGH;` instead of a comment. On supported
compilers this uses an attribute, otherwise it becomes a comment.

This is necessary to be compatible with clang's `-Wfall-through`, and
gcc's `-Wfall-through=2` which don't support comments. Without this the
linux build emits a bunch of warnings.

3 years ago[contrib][linux] Reduce stack usage by 80 bytes
Nick Terrell [Thu, 23 Sep 2021 01:13:02 +0000 (18:13 -0700)] 
[contrib][linux] Reduce stack usage by 80 bytes

Instead of calling `ZSTD_compress_advanced()` and
`ZSTD_initCStream_advanced()`, which each take a `ZSTD_parameters` by
value, use the new advanced API.

Stack usage went from 2024 -> 1944.

3 years ago[contrib][linux] Fix up SPDX license identifiers
Nick Terrell [Wed, 22 Sep 2021 22:06:08 +0000 (15:06 -0700)] 
[contrib][linux] Fix up SPDX license identifiers

Correctly identify that we are GPL v2+ or BSD 3 clause, as pointed out
in issue #2663.

4 years ago[linux-kernel] Replace kernel-style comments
Nick Terrell [Thu, 29 Apr 2021 22:50:23 +0000 (15:50 -0700)] 
[linux-kernel] Replace kernel-style comments

Replace kernel-style comments with regular comments.

E.g.

```
/** Before */

/* After */

/**
 * Before
 */

/*
 * After
 */

/***********************************
 * Before
 ***********************************/

/* *********************************
 * After
 ***********************************/
```

4 years ago[contrib][linux-kernel] Add zstd_min_clevel() and zstd_max_clevel()
Nick Terrell [Tue, 30 Mar 2021 00:52:28 +0000 (17:52 -0700)] 
[contrib][linux-kernel] Add zstd_min_clevel() and zstd_max_clevel()

4 years ago[copyright][license] Switch to yearless copyright and some cleanup in the linux-kerne...
Nick Terrell [Mon, 29 Mar 2021 21:23:36 +0000 (14:23 -0700)] 
[copyright][license] Switch to yearless copyright and some cleanup in the linux-kernel files

* Switch to yearless copyright per FB policy
* Fix up SPDX-License-Identifier lines in `contrib/linux-kernel` sources
* Add zstd copyright/license header to the `contrib/linux-kernel` sources
* Update the `tests/test-license.py` to check for yearless copyright
* Improvements to `tests/test-license.py`
* Check `contrib/linux-kernel` in `tests/test-license.py`

4 years agoMerge pull request #2539 from terrelln/linux-kernel-fixes
Nick Terrell [Wed, 24 Mar 2021 23:29:38 +0000 (16:29 -0700)] 
Merge pull request #2539 from terrelln/linux-kernel-fixes

Fixes for the next linux kernel patch version

4 years agoMerge pull request #2538 from senhuang42/monotonicity_test
sen [Mon, 22 Mar 2021 20:54:34 +0000 (16:54 -0400)] 
Merge pull request #2538 from senhuang42/monotonicity_test

Add memory monotonicity test over srcSize

4 years agoMerge pull request #2524 from terrelln/huf-stack-reduction
Nick Terrell [Mon, 22 Mar 2021 19:37:54 +0000 (12:37 -0700)] 
Merge pull request #2524 from terrelln/huf-stack-reduction

[huf] Reduce stack usage of HUF_readDTableX2 by ~972 bytes

4 years ago[FSE] Clean up workspace using dynamically sized struct 2524/head
Nick Terrell [Fri, 19 Mar 2021 23:04:59 +0000 (16:04 -0700)] 
[FSE] Clean up workspace using dynamically sized struct

4 years agoMerge pull request #2550 from facebook/vvv_srcSize
Yann Collet [Mon, 22 Mar 2021 17:44:44 +0000 (10:44 -0700)] 
Merge pull request #2550 from facebook/vvv_srcSize

fix #2549

4 years agoMake ZSTD_estimateCCtxSize_internal() loop through all srcSize parameter sets as... 2538/head
Sen Huang [Fri, 19 Mar 2021 23:56:58 +0000 (16:56 -0700)] 
Make ZSTD_estimateCCtxSize_internal() loop through all srcSize parameter sets as well

4 years agofix #2549 2550/head
Yann Collet [Sun, 21 Mar 2021 00:29:41 +0000 (17:29 -0700)] 
fix #2549

4 years agoMerge pull request #2548 from SupervisedThinking/build_fix
Yann Collet [Fri, 19 Mar 2021 22:20:14 +0000 (15:20 -0700)] 
Merge pull request #2548 from SupervisedThinking/build_fix

meson: fix build by adding missing files

4 years agomeson: fix build by adding missing files 2548/head
SupervisedThinking [Fri, 19 Mar 2021 18:52:45 +0000 (19:52 +0100)] 
meson: fix build by adding missing files

fixes https://github.com/facebook/zstd/issues/2519

4 years agoMerge pull request #2540 from senhuang42/fix_dds_supported
sen [Thu, 18 Mar 2021 03:25:53 +0000 (23:25 -0400)] 
Merge pull request #2540 from senhuang42/fix_dds_supported

Fix dedicated dict search isSupported() requirements.

4 years ago[huf][fse] Clean up workspaces
Nick Terrell [Wed, 17 Mar 2021 23:50:37 +0000 (16:50 -0700)] 
[huf][fse] Clean up workspaces

* Move `counting` to a struct in `FSE_decompress_wksp_body()`
* Fix error code in `FSE_decompress_wksp_body()`
* Rename a variable in `HUF_ReadDTableX2_Workspace`

4 years agoFix ZSTD_dedicatedDictSearch_isSupported() requirements 2540/head
Sen Huang [Wed, 17 Mar 2021 00:36:05 +0000 (17:36 -0700)] 
Fix ZSTD_dedicatedDictSearch_isSupported() requirements

4 years ago[lib] Bump zstd version number 2539/head
Nick Terrell [Tue, 16 Mar 2021 00:48:56 +0000 (17:48 -0700)] 
[lib] Bump zstd version number

4 years ago[lib][tracing] Add ZSTD_NO_TRACE macro
Nick Terrell [Mon, 15 Mar 2021 21:46:26 +0000 (14:46 -0700)] 
[lib][tracing] Add ZSTD_NO_TRACE macro

When defined, it disables tracing, and avoids including the header.

4 years ago[contrib][freestanding] Remove tracing support
Nick Terrell [Mon, 15 Mar 2021 18:19:21 +0000 (11:19 -0700)] 
[contrib][freestanding] Remove tracing support

Remove tracing support from `freestanding.py` to keep things simple.

4 years ago[contrib][linux] Expose zstd headers to avoid duplication
Nick Terrell [Thu, 3 Dec 2020 20:37:30 +0000 (12:37 -0800)] 
[contrib][linux] Expose zstd headers to avoid duplication

Expose the zstd headers in `include/linux` to avoid struct duplication.
This makes the member names not follow Kernel style guidelines, and
exposes the zstd symbols. But, the LMKL reviewers are okay with that.

4 years ago[contrib][linux-kernel] Update test include stubs
Nick Terrell [Fri, 12 Mar 2021 23:31:38 +0000 (15:31 -0800)] 
[contrib][linux-kernel] Update test include stubs

Update the test include stubs so they are able to run the current zstd
version in the kernel, so I can compare stack usage.

4 years ago[contrib][linux-kernel] Fix unaligned.h
Nick Terrell [Fri, 5 Mar 2021 05:13:52 +0000 (21:13 -0800)] 
[contrib][linux-kernel] Fix unaligned.h

Fix the `unaligned.h` shim in the tests that was causing corruption in
the tests. Note that this is a problem with the test shim, not the
kernel code.

4 years agoMerge pull request #2534 from foxeng/fix-seek-descriptor-check
sen [Tue, 16 Mar 2021 17:09:00 +0000 (13:09 -0400)] 
Merge pull request #2534 from foxeng/fix-seek-descriptor-check

Fix seek table descriptor check when loading

4 years agoAdd mem monotonicity test over srcSize
Sen Huang [Tue, 16 Mar 2021 15:22:13 +0000 (08:22 -0700)] 
Add mem monotonicity test over srcSize

4 years agoMerge pull request #2535 from felixhandte/gha-release-artifacts
Felix Handte [Mon, 15 Mar 2021 17:58:27 +0000 (13:58 -0400)] 
Merge pull request #2535 from felixhandte/gha-release-artifacts

Add GitHub Action to Automatically Publish Release Tarballs

4 years agoAllow a Passphrase on the Key 2535/head
W. Felix Handte [Mon, 15 Mar 2021 16:11:53 +0000 (12:11 -0400)] 
Allow a Passphrase on the Key

4 years agoMaintain Artifact Name Backwards Compatibility
W. Felix Handte [Mon, 15 Mar 2021 15:59:31 +0000 (11:59 -0400)] 
Maintain Artifact Name Backwards Compatibility

When the tag is `v1.2.3`, name the artifacts `zstd-1.2.3.tar*` rather than
`zstd-v1.2.3.tar*`. When the tag doesn't match, use the full tag.

4 years agoRun generic-dev:gcc-8-asan-ubsan-testzstd on latest Ubuntu 2534/head
Fotis Xenakis [Sat, 13 Mar 2021 09:42:47 +0000 (11:42 +0200)] 
Run generic-dev:gcc-8-asan-ubsan-testzstd on latest Ubuntu

4 years agoRemove CircleCI Artifact Generation
W. Felix Handte [Fri, 12 Mar 2021 22:35:11 +0000 (17:35 -0500)] 
Remove CircleCI Artifact Generation

4 years agoFix seekable test to provide valid descriptor
Fotis Xenakis [Fri, 12 Mar 2021 22:00:08 +0000 (00:00 +0200)] 
Fix seekable test to provide valid descriptor

4 years agoFix seek table descriptor check when loading
Fotis Xenakis [Fri, 12 Mar 2021 21:07:15 +0000 (23:07 +0200)] 
Fix seek table descriptor check when loading

4 years agoAdd GitHub Action to Automatically Publish Release Tarballs
W. Felix Handte [Thu, 11 Mar 2021 21:06:25 +0000 (16:06 -0500)] 
Add GitHub Action to Automatically Publish Release Tarballs

This commit introduces a GitHub action that is triggered on release creation,
which creates the release tarball, compresses it, hashes it, signs it, and
attaches all of those files to the release.

4 years agoMerge pull request #2517 from PaulBone/num_cores
sen [Mon, 8 Mar 2021 16:14:34 +0000 (11:14 -0500)] 
Merge pull request #2517 from PaulBone/num_cores

Make the number of physical CPU cores detection more robust

4 years agoMerge pull request #2521 from animalize/doc_free
Yann Collet [Sun, 7 Mar 2021 05:33:28 +0000 (21:33 -0800)] 
Merge pull request #2521 from animalize/doc_free

doc: ZSTD_free*() functions accept NULL pointer

4 years ago[fse] Reduce stack usage of FSE_decompress_wksp() by 512 bytes
Nick Terrell [Fri, 5 Mar 2021 21:14:06 +0000 (13:14 -0800)] 
[fse] Reduce stack usage of FSE_decompress_wksp() by 512 bytes

* Move `counting` into the workspace
* Inrease `HUF_DECOMPRESS_WORKSPACE_SIZE` by 512 bytes

4 years ago[huf] Reduce stack usage of HUF_readDTableX2 by ~460 bytes
Nick Terrell [Fri, 5 Mar 2021 20:36:50 +0000 (12:36 -0800)] 
[huf] Reduce stack usage of HUF_readDTableX2 by ~460 bytes

* Use `HUF_readStats_wksp()`
* Use workspace in `HUF_fillDTableX2*()`
* Clean up workspace usage to use a workspace struct

4 years agoMerge pull request #2523 from terrelln/huf-stack-reduction
Nick Terrell [Fri, 5 Mar 2021 20:35:09 +0000 (12:35 -0800)] 
Merge pull request #2523 from terrelln/huf-stack-reduction

Add HUF_writeCTable_wksp() function

4 years agoAdd HUF_writeCTable_wksp() function 2523/head
Nick Terrell [Mon, 21 Dec 2020 18:23:08 +0000 (10:23 -0800)] 
Add HUF_writeCTable_wksp() function

This saves ~700 bytes of stack space in HUF_writeCTable.

4 years agoMerge pull request #2522 from terrelln/stack-reduction
Nick Terrell [Fri, 5 Mar 2021 04:55:58 +0000 (20:55 -0800)] 
Merge pull request #2522 from terrelln/stack-reduction

Reduce stack usage of ZSTD_buildCTable()

4 years agoReduce stack usage of ZSTD_buildCTable() 2522/head
Nick Terrell [Thu, 4 Mar 2021 18:50:34 +0000 (10:50 -0800)] 
Reduce stack usage of ZSTD_buildCTable()

It is a stack high-point for some compression strategies and has an easy
fix. This moves the normalized count into the entropy workspace.

4 years agoMerge pull request #2518 from facebook/seekTable
Yann Collet [Thu, 4 Mar 2021 23:29:23 +0000 (15:29 -0800)] 
Merge pull request #2518 from facebook/seekTable

New direct seekTable access methods

4 years agoadded code comments for new API ZSTD_seekTable 2518/head
Yann Collet [Thu, 4 Mar 2021 06:54:04 +0000 (22:54 -0800)] 
added code comments for new API ZSTD_seekTable

4 years agoMerge branch 'seekTable' of github.com:facebook/zstd into seekTable
Yann Collet [Thu, 4 Mar 2021 02:56:54 +0000 (18:56 -0800)] 
Merge branch 'seekTable' of github.com:facebook/zstd into seekTable

4 years agodoc: ZSTD_free*() functions accept NULL pointer 2521/head
animalize [Thu, 4 Mar 2021 03:47:43 +0000 (11:47 +0800)] 
doc: ZSTD_free*() functions accept NULL pointer

4 years agoadded test case for seekTable API
Yann Collet [Thu, 4 Mar 2021 02:55:34 +0000 (18:55 -0800)] 
added test case for seekTable API

and simple roundtrip test

4 years agofixed gcc-7 conversion warning
Yann Collet [Thu, 4 Mar 2021 02:00:41 +0000 (18:00 -0800)] 
fixed gcc-7 conversion warning

4 years agofixed wrong assert condition
Yann Collet [Wed, 3 Mar 2021 23:30:55 +0000 (15:30 -0800)] 
fixed wrong assert condition

4 years agofixed gcc conversion warnings
Yann Collet [Wed, 3 Mar 2021 23:17:12 +0000 (15:17 -0800)] 
fixed gcc conversion warnings

4 years agoMerge branch 'dev' into seekTable
Yann Collet [Wed, 3 Mar 2021 23:08:40 +0000 (15:08 -0800)] 
Merge branch 'dev' into seekTable

4 years agoMerge pull request #2516 from senhuang42/seekable_hang_fix
sen [Wed, 3 Mar 2021 22:30:46 +0000 (17:30 -0500)] 
Merge pull request #2516 from senhuang42/seekable_hang_fix

Seekable hang fix

4 years agovarious minor style fixes
Yann Collet [Wed, 3 Mar 2021 00:03:18 +0000 (16:03 -0800)] 
various minor style fixes

4 years agoOnly set numPhysicalCores if ratio is valid 2517/head
Paul Bone [Tue, 2 Mar 2021 09:31:23 +0000 (20:31 +1100)] 
Only set numPhysicalCores if ratio is valid

4 years agoIf cpuinfo parsing fails fallback to sysconf
Paul Bone [Tue, 2 Mar 2021 09:13:51 +0000 (20:13 +1100)] 
If cpuinfo parsing fails fallback to sysconf

4 years agostrengthen compilation flags
Yann Collet [Tue, 2 Mar 2021 23:43:52 +0000 (15:43 -0800)] 
strengthen compilation flags

4 years agofixed const guarantees
Yann Collet [Tue, 2 Mar 2021 23:24:30 +0000 (15:24 -0800)] 
fixed const guarantees

read-only objects are properly const-ified in parameters

4 years agofix potential leak on exit
Yann Collet [Tue, 2 Mar 2021 23:03:37 +0000 (15:03 -0800)] 
fix potential leak on exit

4 years agoFix seekable decompress hanging 2516/head
Sen Huang [Tue, 2 Mar 2021 22:30:03 +0000 (14:30 -0800)] 
Fix seekable decompress hanging

4 years agoZSTD_seekable_decompress() example that hangs.
Martin Lindsay [Mon, 22 Feb 2021 15:57:35 +0000 (10:57 -0500)] 
ZSTD_seekable_decompress() example that hangs.

4 years agoMerge pull request #2113 from mdittmer/expose-seek-table
Yann Collet [Tue, 2 Mar 2021 18:50:47 +0000 (10:50 -0800)] 
Merge pull request #2113 from mdittmer/expose-seek-table

[contrib] Support seek table-only API

4 years agoMerge pull request #2514 from felixhandte/v1.4.9 2515/head
Felix Handte [Tue, 2 Mar 2021 16:41:55 +0000 (11:41 -0500)] 
Merge pull request #2514 from felixhandte/v1.4.9

Prepare Codebase for v1.4.9 Release

4 years agoUpdate CHANGELOG 2514/head
W. Felix Handte [Mon, 1 Mar 2021 23:00:10 +0000 (18:00 -0500)] 
Update CHANGELOG

4 years agoDocumentation Rebuild
W. Felix Handte [Mon, 1 Mar 2021 22:57:02 +0000 (17:57 -0500)] 
Documentation Rebuild

4 years agoBump Library Version 1.4.8 -> 1.4.9
W. Felix Handte [Mon, 1 Mar 2021 22:45:30 +0000 (17:45 -0500)] 
Bump Library Version 1.4.8 -> 1.4.9

4 years agoMerge pull request #2513 from felixhandte/fix-2493
Felix Handte [Fri, 26 Feb 2021 23:02:38 +0000 (18:02 -0500)] 
Merge pull request #2513 from felixhandte/fix-2493

Avoid Using `stat -c` on NetBSD

4 years agoMerge pull request #2512 from felixhandte/fix-2509
Felix Handte [Fri, 26 Feb 2021 23:02:18 +0000 (18:02 -0500)] 
Merge pull request #2512 from felixhandte/fix-2509

Detect `..` in Paths Correctly

4 years agoAvoid Using `stat -c` on NetBSD 2513/head
W. Felix Handte [Fri, 26 Feb 2021 18:05:39 +0000 (13:05 -0500)] 
Avoid Using `stat -c` on NetBSD

Addresses #2493. I think. I don't have a NetBSD system to test on.

4 years agoCover These Edge Cases in Tests 2512/head
W. Felix Handte [Fri, 26 Feb 2021 18:01:20 +0000 (13:01 -0500)] 
Cover These Edge Cases in Tests

4 years agoDetect `..` in Paths Correctly
W. Felix Handte [Fri, 26 Feb 2021 17:29:42 +0000 (12:29 -0500)] 
Detect `..` in Paths Correctly

This commit addresses #2509.

4 years agoMerge pull request #2510 from terrelln/regression
Nick Terrell [Thu, 25 Feb 2021 18:55:30 +0000 (10:55 -0800)] 
Merge pull request #2510 from terrelln/regression

[regression] Update results.csv

4 years ago[regression] Update results.csv 2510/head
Nick Terrell [Thu, 25 Feb 2021 03:11:38 +0000 (19:11 -0800)] 
[regression] Update results.csv

Fixes the update from PR #2508. I had accidentally forgotten to rebuild
the library, and the regression test suite isn't hooked up to the new
fancy build system yet.

I've double checked that the results are deterministic.

4 years agoMerge pull request #2492 from niacat/dev
Yann Collet [Thu, 25 Feb 2021 00:38:10 +0000 (16:38 -0800)] 
Merge pull request #2492 from niacat/dev

Use standard md5 tool on NetBSD.

4 years agoMerge pull request #2489 from concatime/cmake-c-lib-programs
Yann Collet [Wed, 24 Feb 2021 23:58:33 +0000 (15:58 -0800)] 
Merge pull request #2489 from concatime/cmake-c-lib-programs

CMake: Enable only C for lib and programs projects

4 years agoMerge pull request #2508 from terrelln/regression
Nick Terrell [Wed, 24 Feb 2021 00:19:33 +0000 (16:19 -0800)] 
Merge pull request #2508 from terrelln/regression

[regression] Update results.csv

4 years ago[regression] Update results.csv 2508/head
Nick Terrell [Tue, 23 Feb 2021 23:15:39 +0000 (15:15 -0800)] 
[regression] Update results.csv

9f327c02fd17a5aad2b24ae06b85d8226add1f93 changed the compression method
for LDM, so the results are slightly different.

I've re-tested LDM on some larger inputs and everything seems fine.
These ratio changes just seem to be noise. There is generally a 0.01%
swing in ratio, sometimes better sometimes worse, but never large.

4 years agoMerge pull request #2507 from facebook/freebsd12_2
Yann Collet [Tue, 23 Feb 2021 22:54:52 +0000 (14:54 -0800)] 
Merge pull request #2507 from facebook/freebsd12_2

update FreeBSD image to latest 12.2

4 years agoMerge pull request #2504 from skitt/stop-using-resetxstream
Yann Collet [Tue, 23 Feb 2021 21:37:17 +0000 (13:37 -0800)] 
Merge pull request #2504 from skitt/stop-using-resetxstream

Stop using deprecated reset?Stream functions

4 years agodisabled icc tests on Github Actions 2507/head
Yann Collet [Tue, 23 Feb 2021 21:25:08 +0000 (13:25 -0800)] 
disabled icc tests on Github Actions

4 years agoStop using deprecated reset?Stream functions 2504/head
Stephen Kitt [Sat, 20 Feb 2021 16:28:19 +0000 (17:28 +0100)] 
Stop using deprecated reset?Stream functions

These are replaced by the corresponding context resets. When
converting resetCStream, CCtx_setPledgedSrcSize isn't called if the
source size is "unknown".

This helps reduce the reliance on "static only" symbols, as well as
reducing the use of deprecated functions.

Signed-off-by: Stephen Kitt <steve@sk2.org>
4 years agoupdate FreeBSD image to latest 12.2
Yann Collet [Tue, 23 Feb 2021 18:40:44 +0000 (10:40 -0800)] 
update FreeBSD image to latest 12.2

4 years agoMerge pull request #2502 from facebook/ubsanfix
Yann Collet [Sat, 20 Feb 2021 19:05:55 +0000 (11:05 -0800)] 
Merge pull request #2502 from facebook/ubsanfix

fix ubsan test errors

4 years agoremoving signed integer overflow exception from ubsan tests 2502/head
Yann Collet [Sat, 20 Feb 2021 00:30:06 +0000 (16:30 -0800)] 
removing signed integer overflow exception from ubsan tests

4 years agoMerge pull request #2503 from terrelln/fuzz-ubsan
Yann Collet [Sat, 20 Feb 2021 00:19:07 +0000 (16:19 -0800)] 
Merge pull request #2503 from terrelln/fuzz-ubsan

[fuzz] Fix compiler detection & update ubsan flags

4 years ago[fuzz] Fix compiler detection & update ubsan flags 2503/head
Nick Terrell [Fri, 19 Feb 2021 21:11:29 +0000 (13:11 -0800)] 
[fuzz] Fix compiler detection & update ubsan flags

* Fix compiler version regex, which was broken for multi-digit
  versions.
* Fix compiler detection for gcc.
* Disable `pointer-overflow` instead of `integer-overflow` for gcc
  versions newer than 8.0.0.

4 years agofix ubsan test errors
Yann Collet [Fri, 19 Feb 2021 18:42:05 +0000 (10:42 -0800)] 
fix ubsan test errors

allows recovering from pointer overflow

4 years agoMerge pull request #2495 from felixhandte/umask
Felix Handte [Wed, 17 Feb 2021 22:03:23 +0000 (17:03 -0500)] 
Merge pull request #2495 from felixhandte/umask

Use umask() to Constrain Created File Permissions

4 years agoUse umask() to Constrain Created File Permissions 2495/head
W. Felix Handte [Thu, 11 Feb 2021 20:50:13 +0000 (15:50 -0500)] 
Use umask() to Constrain Created File Permissions

This commit addresses #2491.

Note that a downside of this solution is that it is global: `umask()` affects
all file creation calls in the process. I believe this is safe since
`fileio.c` functions should only ever be used in the zstd binary, and these
are (almost) the only files ever created by zstd, and AIUI they're only
created in a single thread. So we can get away with messing with global state.

Note that this doesn't change the permissions of files created by `dibio.c`.
I'm not sure what those should be...

4 years agoMerge pull request #2500 from senhuang42/add_cli_newline
Yann Collet [Wed, 17 Feb 2021 18:43:41 +0000 (10:43 -0800)] 
Merge pull request #2500 from senhuang42/add_cli_newline

[easy][cli] Add newline to boundary of --help message of --trace and --[no-]check

4 years agoAdd newline to end of cli help message 2500/head
senhuang42 [Wed, 17 Feb 2021 17:26:38 +0000 (12:26 -0500)] 
Add newline to end of cli help message