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
Yann Collet
710ed4f0d7
no good reason to FORCE_INLINE
2024-12-23 11:03:24 -08:00
Yann Collet
5c2068c606
fix lz4_opt behavior when srcSize == 0
...
reported by @rinsuki
2024-12-23 10:46:33 -08:00
Yann Collet
6869ab67d7
Merge pull request #1555 from lz4/dependabot/github_actions/actions/upload-artifact-4.5.0
...
Bump actions/upload-artifact from 4.4.3 to 4.5.0
2024-12-23 10:16:20 -08:00
dependabot[bot]
7e41965fbb
Bump actions/upload-artifact from 4.4.3 to 4.5.0
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 4.4.3 to 4.5.0.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](b4b15b8c7c...6f51ac03b9
)
---
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 >
2024-12-23 06:19:55 +00:00
Yann Collet
6cf42afbea
Merge pull request #1545 from dearblue/repology
...
Specify parameters for repology status
2024-11-25 09:00:50 -08:00
Yann Collet
17a8cf523c
Merge pull request #1547 from lz4/dependabot/github_actions/github/codeql-action-3.27.5
...
Bump github/codeql-action from 3.26.2 to 3.27.5
2024-11-25 00:26:46 -08:00
dependabot[bot]
3f7a031e62
Bump github/codeql-action from 3.26.2 to 3.27.5
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.26.2 to 3.27.5.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](429e197704...f09c1c0a94
)
---
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 >
2024-11-25 06:48:28 +00:00
Yann Collet
8da5d43433
Merge pull request #1544 from t-mat/fix-examples-dictionaryRandomAccess
...
Fix examples dictionary random access
2024-11-24 08:28:13 -08:00
Yann Collet
0c841277a4
Merge pull request #1546 from lz4/gh_x32_disable
...
disable x32 tests on Github Actions CI
2024-11-24 07:54:20 -08:00
Yann Collet
11aceb0896
disable x32 tests on Github Actions CI
...
Since the support was already restricted to older compilers,
it seems this is going away for good.
Testing x32, if deemed necessary, will have to employ other CI.
2024-11-24 06:45:01 -08:00
dearblue
17c36d9c9e
Specify parameters for repology status
2024-11-24 18:56:12 +09:00
t-mat
855a097886
chore: Fix dictionaryRandomAccess's issue for small file
...
When size of the given file is less than 1024 (DICTIONARY_BYTES), dict[] may contain garbage.
Therefore, test_decompress() fails with garbage dictionary.
This change set fixes the failure of test for dictionaryRandomAccess with TESTFILE_SMALL.
2024-11-18 16:43:13 +09:00
t-mat
184ffbd686
chore: Add test for dictionaryRandomAccess
...
dictionaryRandomAccess doesn't pass this test.
This issue will be fixed in the follow up change set.
Actual failure log:
./dictionaryRandomAccess .gitignore .gitignore 0 32
inp = [.gitignore]
lz4 = [.gitignore.lz4s-1024]
dec = [.gitignore.lz4s-1024.dec]
dict = [.gitignore]
offset = [0]
length = [32]
compress : .gitignore -> .gitignore.lz4s-1024
compress : done
decompress : .gitignore.lz4s-1024 -> .gitignore.lz4s-1024.dec
decompress : done
verify : .gitignore <-> .gitignore.lz4s-1024.dec
verify : NG
2024-11-18 16:42:50 +09:00
Yann Collet
7887022e5d
Merge pull request #1510 from ds-sloth/respect-global-pic
...
CMakeLists.txt: respect global CMAKE_POSITION_INDEPENDENT_CODE flag
2024-11-05 10:59:46 -08:00
Yann Collet
c505a48525
Merge pull request #1537 from lz4/dependabot/github_actions/actions/setup-python-5.3.0
...
Bump actions/setup-python from 5.2.0 to 5.3.0
2024-10-28 16:16:19 -07:00
dependabot[bot]
7f51552ca4
Bump actions/setup-python from 5.2.0 to 5.3.0
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 5.2.0 to 5.3.0.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](f677139bbe...0b93645e9f
)
---
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 >
2024-10-28 18:57:35 +00:00
Yann Collet
389c153911
Merge pull request #1538 from lz4/dependabot/github_actions/actions/checkout-4.2.2
...
Bump actions/checkout from 4.2.1 to 4.2.2
2024-10-28 11:48:45 -07:00
dependabot[bot]
5994fdab5c
Bump actions/checkout from 4.2.1 to 4.2.2
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4.2.1 to 4.2.2.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](eef61447b9...11bd71901b
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-28 06:43:42 +00:00
Yann Collet
d9c01a3d49
Merge pull request #1531 from lz4/dependabot/github_actions/actions/upload-artifact-4.4.3
...
Bump actions/upload-artifact from 4.4.0 to 4.4.3
2024-10-15 09:36:14 -07:00
Yann Collet
3a90748da5
Merge pull request #1533 from lz4/dependabot/github_actions/actions/checkout-4.2.1
...
Bump actions/checkout from 4.2.0 to 4.2.1
2024-10-14 18:41:36 -07:00
dependabot[bot]
48f8fe1636
Bump actions/checkout from 4.2.0 to 4.2.1
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](d632683dd7...eef61447b9
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-14 06:38:49 +00:00
dependabot[bot]
15833a8260
Bump actions/upload-artifact from 4.4.0 to 4.4.3
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 4.4.0 to 4.4.3.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](50769540e7...b4b15b8c7c
)
---
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 >
2024-10-14 06:38:39 +00:00
Yann Collet
c612292343
Merge pull request #1524 from bgilbert/freestanding
...
build/meson: force `LZ4_DEBUG=0` for `tests/freestanding`
2024-10-06 14:37:03 -07:00
Yann Collet
b33d5e8e2e
Merge pull request #1522 from bgilbert/meson
...
build/meson: avoid passing long options to `ln`
2024-10-06 12:11:29 -07:00
Yann Collet
dc29c67e98
Merge pull request #1523 from bgilbert/uname
...
build: use `uname -m` to detect processor
2024-10-06 11:05:03 -07:00
Benjamin Gilbert
b8f1cc1f07
build/meson: force LZ4_DEBUG=0 for tests/freestanding
...
Match the Makefile, which never sets LZ4_DEBUG for this test. If
LZ4_DEBUG is non-zero, lib/lz4.c #includes <assert.h>, the musl version of
which has a conflicting definition for __assert_fail:
https://www.openwall.com/lists/musl/2019/03/04/6
Fixes build failure:
../../../tests/freestanding.c:173:6: error: conflicting types for '__assert_fail'; have 'void(const char *, const char *, unsigned int, const char *)'
173 | void __assert_fail(const char * assertion, const char * file, unsigned int line, const char * function) {
| ^~~~~~~~~~~~~
In file included from ../../../tests/../lib/lz4.c:270,
from ../../../tests/freestanding.c:49:
/usr/include/assert.h:19:16: note: previous declaration of '__assert_fail' with type 'void(const char *, const char *, int, const char *)'
19 | _Noreturn void __assert_fail (const char *, const char *, int, const char *);
| ^~~~~~~~~~~~~
2024-10-06 04:11:36 -07:00
Benjamin Gilbert
bc8003bc64
build: use uname -m to detect processor
...
Ubuntu patches uname -p to return the processor type:
https://git.launchpad.net/ubuntu/+source/coreutils/tree/debian/patches/80_fedora_sysinfo.patch?h=ubuntu/oracular
and Fedora also did before Fedora 38:
cd953e11dd
but in general, uname -p returns "unknown". Use uname -m instead.
Fixes build error:
/usr/bin/ld: /tmp/ccgv9E4e.o: in function `_start':
freestanding.c:(.text+0x6255a): multiple definition of `_start'; /usr/lib/gcc/x86_64-redhat-linux/14/../../../../lib64/crt1.o:(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
2024-10-06 03:44:41 -07:00
Benjamin Gilbert
6d17921245
build/meson: avoid passing long options to ln
...
On macOS, ln only supports short options.
2024-10-06 03:18:27 -07:00
Benjamin Gilbert
ac3e03c55c
build/meson: update directory path in README
2024-10-06 03:15:38 -07:00
Yann Collet
c470f4dae6
Merge pull request #1499 from lz4/dependabot/github_actions/actions/upload-artifact-4.4.0
...
Bump actions/upload-artifact from 4.3.6 to 4.4.0
2024-10-04 09:43:38 -07:00
Yann Collet
c11bf7733b
Merge pull request #1497 from rpurdie/dev
...
lib/Makefile: Fix static library reproducibility
2024-10-01 09:15:55 -07:00
Yann Collet
54f253c1da
Merge pull request #1500 from lz4/dependabot/github_actions/actions/setup-python-5.2.0
...
Bump actions/setup-python from 5.1.1 to 5.2.0
2024-10-01 08:10:01 -07:00
Yann Collet
def5c3bd0e
Merge pull request #1506 from lz4/clevel_doc
...
update -H documentation regarding compression levels
2024-10-01 06:46:35 -07:00
dependabot[bot]
c14d595b3a
Bump actions/setup-python from 5.1.1 to 5.2.0
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 5.1.1 to 5.2.0.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](39cd14951b...f677139bbe
)
---
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 >
2024-10-01 06:19:15 +00:00
Yann Collet
824f7a7ad0
Merge pull request #1508 from lz4/fix_tname
...
minor: fix test name
2024-09-30 23:12:03 -07:00
Yann Collet
1d99913f5e
Merge pull request #1518 from lz4/dependabot/github_actions/actions/checkout-4.2.0
...
Bump actions/checkout from 4.1.7 to 4.2.0
2024-09-30 23:01:03 -07:00
Yann Collet
c5bec79b69
Merge pull request #1520 from dearblue/freebsd-14.1
...
Update FreeBSD VM image to 14.1
2024-09-30 21:15:26 -07:00
dependabot[bot]
42f0995cd5
Bump actions/checkout from 4.1.7 to 4.2.0
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4.1.7 to 4.2.0.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](692973e3d9...d632683dd7
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-01 03:40:51 +00:00
Yann Collet
0b33a695e6
Merge pull request #1521 from lz4/fix_vs2022
...
Fix vs2022
2024-09-30 20:32:46 -07:00