0
0
mirror of https://github.com/lz4/lz4 synced 2026-01-18 17:21:30 +01:00

3734 Commits

Author SHA1 Message Date
Yann Collet
c99038d1bb Merge pull request #1610 from Nicoshev/dev
[LZ4] Limit disabling LZ4_FAST_DEC_LOOP to aarch64+clang+android
2025-04-30 15:42:21 -07:00
Nicolas De Carli
51f8af506b Fix missing endif 2025-04-30 18:21:47 -04:00
Nicolas De Carli
0aa33884fa [LZ4] Limit disabling LZ4_FAST_DEC_LOOP to aarch64+clang+android
We've seen modern aarch64 server cpus benefit from LZ4_FAST_DEC_LOOP=1

Previously, LZ4_FAST_DEC_LOOP was disabled when building with clang targeting aarch64. Now we only disable LZ4_FAST_DEC_LOOP if building for Android.
2025-04-30 18:20:53 -04:00
Yann Collet
bec9df4ff5 Merge pull request #1607 from lz4/dependabot/github_actions/actions/setup-python-5.6.0
build(deps): bump actions/setup-python from 5.5.0 to 5.6.0
2025-04-28 14:18:55 -07:00
dependabot[bot]
813711e057 build(deps): bump actions/setup-python from 5.5.0 to 5.6.0
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.5.0 to 5.6.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](8d9ed9ac5c...a26af69be9)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: 5.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-28 06:39:20 +00:00
Yann Collet
d29f5876c3 Merge pull request #1603 from iwamatsu/update-pkg-config
Add License variable to pkg-config file
2025-04-27 11:41:18 -08:00
Yann Collet
2719f42eb5 removed year from header (#1605)
as it's a burden to maintain, and wasn't consistently updated.

Now rely on git dating.
2025-04-27 10:55:25 -08:00
GeorgH93
7f71be01f2 Update cmake minimum required version (#1601)
Update cmake minimum required version to work with CMake v4 and shut up about the deprecation warning (for cmake_minimum_required < 3.10) on CMake v3.31+
2025-04-27 11:09:49 -07:00
Yann Collet
0915bbc2d4 Merge pull request #1604 from lz4/cmake310_test
Add a cmake 3.10 build and install test
2025-04-27 09:05:06 -08:00
Yann Collet
df8abbbbd2 refactor cmake 3.10 test for better maintainability 2025-04-27 09:26:24 -07:00
Yann Collet
26299988fe added a cmake 3.10 build test 2025-04-27 09:14:42 -07:00
Nobuhiro Iwamatsu
5f31f30909 Add License variable to pkg-config file
The pkg-config file has License variable that allows you to set the
license for the software. This sets BSD-2-Clause to License.

Ref: https://github.com/pkgconf/pkgconf/blob/master/man/pc.5#L116
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2025-04-25 16:38:21 +09:00
Yann Collet
df6b19dfc2 Merge pull request #1602 from lz4/compile24
updated list of compilers for Github Actions
2025-04-23 04:15:50 -08:00
Yann Collet
f99cde984d updated liste of compilers for Github Actions
removed Ubuntu-20, which is no longer supported.
added Ubuntu-24, for more recent compilers.
2025-04-23 04:35:47 -07:00
Yann Collet
67a385a170 Merge pull request #1598 from shubhamhii/gh_1597
AIX build failure fix
2025-04-14 03:22:00 -07:00
shubhamhii
e4340e55d3 AIX entry added for POSIX_ENV.
SONAME_FLAGS variable assigned nil string since AIX linker doesn't support soname option.

Closure:#1597
2025-04-10 04:05:06 -05:00
Yann Collet
fa1634e2cc Merge pull request #1592 from lz4/dependabot/github_actions/actions/setup-python-5.5.0
build(deps): bump actions/setup-python from 5.4.0 to 5.5.0
2025-03-31 16:42:54 -07:00
dependabot[bot]
7273ab951a build(deps): bump actions/setup-python from 5.4.0 to 5.5.0
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.4.0 to 5.5.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](42375524e2...8d9ed9ac5c)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-31 06:46:11 +00:00
Yann Collet
836d4c0cd3 Merge pull request #1584 from lz4/dependabot/github_actions/actions/upload-artifact-4.6.2
Bump actions/upload-artifact from 4.6.1 to 4.6.2
2025-03-25 19:23:09 -07:00
Yann Collet
a5dde0538d Merge pull request #1586 from louislafosse/fix-examples
fix(segv): add  null pointer assertions for file pointers in example files
2025-03-24 20:50:12 -07:00
Yann Collet
c855e122cc Merge pull request #1587 from louislafosse/fix-tests
fix(memory): add memory deallocation for srcBuff in roundTripCheck and loadFile functions
2025-03-24 20:49:24 -07:00
louislafosse
946f062518 fix(memory): add memory deallocation for srcBuff in roundTripCheck and loadFile functions 2025-03-25 02:32:48 +01:00
louislafosse
20bdcaae09 fix(segv): add null pointer assertions for file pointers in example files 2025-03-25 01:28:48 +01:00
dependabot[bot]
2beb8a2d04 Bump actions/upload-artifact from 4.6.1 to 4.6.2
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.6.1 to 4.6.2.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](4cec3d8aa0...ea165f8d65)

---
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>
2025-03-24 06:23:49 +00:00
Toby Nelson
657246ff07 Replaced uint8_t with unsigned char in BYTE typedef for post C99/C++ 2025-03-18 02:39:08 -07:00
Yann Collet
9d53d8bb6c Merge pull request #1576 from lz4/dependabot/github_actions/actions/upload-artifact-4.6.1
Bump actions/upload-artifact from 4.5.0 to 4.6.1
2025-02-25 09:54:47 -08:00
Yann Collet
4806110337 Merge pull request #1577 from lz4/replace1565
Fix theoretical risk of double-free in UTIL_realloc()
2025-02-25 09:31:59 -08:00
Yann Collet
f369c3a98e Fix theoretical risk of double-free in UTIL_realloc()
if the function was called with a `0` argument, which is never the case.
replaces #1565
2025-02-25 08:13:52 -08:00
Yann Collet
9b4978ec82 Merge pull request #1578 from lz4/fix_cirrus
fix FreeBSD test on Cirrus CI
2025-02-25 07:48:50 -08:00
Yann Collet
b5537fa7e0 fix test-lz4-list.py
an attempt to ensure file list order failed,
because the failing test is expecting the same order between 2 different lists
that end up being sorted differently due to lexical order.

it's too complex to sort out, and not worth the time spent into it so far.
2025-02-24 23:53:14 -08:00
Yann Collet
5edb4bfa22 fixed a minor ubsan warning 2025-02-24 22:26:29 -08:00
Yann Collet
49255ecde4 fix FreeBSD test on Cirrus CI
underlying VM was removed, update to a new version
2025-02-24 18:05:55 -08:00
dependabot[bot]
0e6bf24e23 Bump actions/upload-artifact from 4.5.0 to 4.6.1
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.5.0 to 4.6.1.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](6f51ac03b9...4cec3d8aa0)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-24 06:58:08 +00:00
Yann Collet
bac0e61001 Merge pull request #1571 from lz4/dependabot/github_actions/actions/setup-python-5.4.0
Bump actions/setup-python from 5.3.0 to 5.4.0
2025-02-03 00:43:06 -08:00
dependabot[bot]
747da578e0 Bump actions/setup-python from 5.3.0 to 5.4.0
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.3.0 to 5.4.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](0b93645e9f...42375524e2)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-03 06:31:36 +00:00
Yann Collet
5ff3896078 Merge pull request #1568 from eli-schwartz/meson-ossfuzz
meson: fix broken oss-fuzz support
2025-01-28 01:59:14 -08:00
Eli Schwartz
af1a58d71e meson: fix broken oss-fuzz support
Regression in original introduction in commit
198e532300.

Every meson file in the repository must have this variable set, to an
appropriate per-file value, in order to cater to the split buildsystem
design where the build files are stored in a subdirectory away from the
source code.

If ossfuzz is enabled, this file is processed and the missing value will
come from some other file instead, which may not be correct.

- Using default values, ossfuzz is enabled but no other subdirs are, other
  than of course lib, which has a coincidentally identical value, and
  everything works.

- If contrib is enabled, it will set the per-file variable to a value
  that is *not* coincidentally the same as ossfuzz.

- If examples is enabled, it will set the per-file variable to a value
  that is coincidentally the same as ossfuzz... and do so later than
  contrib.

So, if contrib is enabled but examples is not, then the ossfuzz
directory fails to process correctly and the build aborts. Fix this by
explicitly adding the correct per-file variable.

Fixes: https://github.com/lz4/lz4/issues/1559
2025-01-27 23:46:31 -05:00
Yann Collet
9527eee2a6 Merge pull request #1567 from lz4/dependabot/github_actions/github/codeql-action-3.28.5
Bump github/codeql-action from 3.27.5 to 3.28.5
2025-01-26 22:44:50 -08:00
dependabot[bot]
52773de420 Bump github/codeql-action from 3.27.5 to 3.28.5
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.27.5 to 3.28.5.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](f09c1c0a94...f6091c0113)

---
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>
2025-01-27 06:02:28 +00:00
Yann Collet
07c526c0af Merge pull request #1564 from lz4/filecompress_fix
fixed minor static analyzer warning in fileCompress example
2025-01-16 12:33:06 -08:00
Yann Collet
b8af3e2f74 fix fuzzer test
even the _destSize*() variants need a targetDstSize >= 1 to be successful,
since it's the smallest valid payload allowed by LZ4.
2025-01-16 11:47:15 -08:00
Yann Collet
555d294b9b fix flushing single byte 2025-01-13 19:13:22 -08:00
Yann Collet
d5362329cd simplified LZ4F_localSaveDict() call pattern
and improves traces a bit
2025-01-13 18:51:58 -08:00
Yann Collet
b35b24fb78 improved lz4frame corruption error reporting 2025-01-13 04:45:41 -08:00
Yann Collet
923839bbc9 fixed minor static analyzer warning in fileCompress example 2025-01-12 23:30:55 -08:00
Yann Collet
205fd851dd Merge pull request #1556 from lz4/lz4opt_src0
fix lz4_opt behavior when srcSize == 0
2024-12-23 18:08:48 -08:00
Yann Collet
527431e832 fix minor scan-build warning 2024-12-23 13:30:37 -08:00
Yann Collet
de629c38e9 fix modulo 0, part 2 2024-12-23 13:08:39 -08:00
Yann Collet
eba7d05b8e fix modulo operation in tests 2024-12-23 11:31:28 -08:00
Yann Collet
9b9e03ff09 lz4hc: centralized input sanitization 2024-12-23 11:27:00 -08:00