Qi Wang
ec75db2294
tests: add tests for LZ4_decompress_safe_partial_usingDict
...
Signed-off-by: Qi Wang <wangqi@linux.alibaba.com>
2022-06-07 17:12:51 +08:00
Qi Wang
b1e84b38ef
API: add LZ4_decompress_safe_partial_usingDict
API
...
feature request: #1051
Signed-off-by: Qi Wang <wangqi@linux.alibaba.com>
2022-06-07 17:12:19 +08:00
Qi Wang
51be2943b3
docs: fix some typo
...
Signed-off-by: Qi Wang <wangqi@linux.alibaba.com>
2022-06-06 10:29:37 +08:00
Yann Collet
97d60acd89
updated documentation of LZ4F_freeCompressionContext
...
to answer #1090
2022-06-05 11:21:28 -07:00
nathannaveen
1b5a638155
chore: Set permissions for GitHub actions
...
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.
- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ )
Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com>
2022-05-31 00:58:17 +00:00
Yann Collet
14d3b6342f
Merge pull request #1084 from Low-power/fix-unit-prefix-names
...
Correct unit prefix names in programs/lz4io.c
2022-05-24 04:30:39 -07:00
WHR
8331b32321
Correct unit prefix names in programs/lz4io.c
2022-05-24 12:04:55 +08:00
Yann Collet
77d1b93f72
Merge pull request #1082 from lz4/error_generic
...
Removed all ERROR_GENERIC from lz4frame
2022-05-10 00:09:15 -07:00
Yann Collet
3bf71d35d4
introduced FORWARD_IF_ERROR()
...
and removed prefix from RETURN_ERROR(_IF)
to improve brevity
as it's just a local macro (no bleeding in user's namespace).
2022-05-09 21:45:07 -07:00
Yann Collet
033606ef25
Merge pull request #1080 from t-mat/dev
...
Add virtual environment checking for Ubuntu 22.04
2022-05-07 09:31:13 -07:00
Takayuki Matsuoka
32ffb163e1
Add virtual environment checking for Ubuntu 22.04
...
GitHub Actions recently provides public beta version of Ubuntu 22.04
https://github.com/actions/virtual-environments/issues/5490
This change set just adds environment checking matrix for further changes.
2022-05-07 16:57:48 +09:00
Yann Collet
5d0adabd28
introduced macro LZ4F_RETURN_ERROR_IF
2022-05-06 18:45:41 -07:00
Yann Collet
80ececaaed
introduced macro LZ4F_RETURN_ERROR
2022-05-06 18:35:06 -07:00
Yann Collet
ebfad2da84
removed ERROR_GENERIC from lz4frame.h
...
created a new error code in the process : LZ4F_ERROR_compressionState_uninitialized
2022-05-06 18:19:58 -07:00
Yann Collet
ce8ee024b2
update library version to v1.9.4
...
to reduce confusion in traces between dev branch and latest v1.9.3 release.
2022-04-17 10:06:18 -07:00
Yann Collet
69bf033106
Merge pull request #1077 from danyeaw/patch-2
...
Fix default_library undeclared error in Windows
2022-04-17 10:03:46 -07:00
Dan Yeaw
8507c93f2e
Fix default_library undeclared error in Windows
2022-04-15 13:45:25 -04:00
Yann Collet
d73a88126b
Merge pull request #1075 from danyeaw/patch-1
...
Fix incorrect meson build option for programs
2022-04-12 23:01:09 -07:00
Dan Yeaw
787b0da6cc
Fix incorrect meson build option for programs
2022-04-12 20:33:32 -04:00
Yann Collet
da75a4096e
updated one error code
2022-04-06 06:38:21 -07:00
Yann Collet
90d68e3709
updated documentation around liblz4
granularity
2022-03-21 16:48:40 -07:00
Yann Collet
f14be20f5d
Merge pull request #1068 from anjiahao1/dev
...
add file operation
2022-03-21 16:36:46 -07:00
anjiahao
f5625f260e
add file operation and examples
...
operate lz4 compressed files as a general files
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-03-10 13:28:34 +08:00
Yann Collet
5b138c01b4
Merge pull request #1064 from tristan957/meson
...
Fixup meson build
2022-02-15 18:26:49 -08:00
Yann Collet
85e5b91845
Merge pull request #1067 from eloj/update-github-virtenv-urls
...
CI: Update links in comments.
2022-02-12 15:35:22 -08:00
Eddy Jansson
79c0b7ae50
Update links in comments.
...
The files these comments point to were renamed in
https://github.com/actions/virtual-environments/pull/4794
for whatever reason.
2022-02-12 21:32:23 +01:00
Tristan Partin
6c1a39e701
Fixup meson build
...
The meson build had gotten a little out of hand. It needed to be cleaned
up and have its errors fixed. This should enable lz4 to switch to Meson
at any time should the need ever arise.
2022-02-09 12:04:53 -06:00
Yann Collet
dffcc7f626
Merge pull request #1063 from lz4/cmaketest
...
updated cmake test
2022-02-04 13:04:35 -08:00
Yann Collet
42233d68f8
updated cmake test
...
use `cmake --build` instead of `make` directly
2022-02-03 16:27:02 -08:00
Yann Collet
e9c29be413
Merge pull request #1052 from leonvictor/dev
...
CMake: Fix target includes pointing to the wrong directory
2022-02-03 16:17:47 -08:00
Léon
a0d6d09f33
Merge branch 'lz4:dev' into dev
2022-02-03 10:08:38 +01:00
Yann Collet
1da033e601
updated block format documentation
...
to specifically call attention to offset==0 scenario,
which is invalid, and could lead to some form of security issue
if incorrectly dealt with (ignored).
2022-02-01 23:59:40 -08:00
Yann Collet
7601d57f87
Merge pull request #1061 from lz4/memory_usage
...
Introduce MIN and MAX bounds to LZ4_MEMORY_USAGE
2022-01-31 15:57:46 -08:00
Yann Collet
4f984e45a5
added target test-compile-with-lz4-memory-usage
...
and run it in GA CI
2022-01-31 14:51:20 -08:00
Yann Collet
379c1a10ca
Introduce MIN and MAX bounds to LZ4_MEMORY_USAGE
...
ensure that `frametest` works fine with these values,
notably with low LZ4_MEMORY_USAGE (dict test notably)
following suggestions from @t-mat at #1016
2022-01-30 23:02:55 -08:00
Yann Collet
756693083a
minor comments improvements to lz4frame
2022-01-30 21:59:56 -08:00
Yann Collet
f4ab8ca2d9
Merge pull request #1060 from gabrielstedman/list_test_fix
...
Fix list test
2022-01-29 15:11:48 -08:00
Yann Collet
63100890a4
Merge pull request #1058 from lz4/fix_test_invalid
...
--test and --list return an error when parsing invalid file
2022-01-29 15:10:34 -08:00
Gabriel
cd4d081402
Correctly use temp folder variable
2022-01-29 16:02:29 +00:00
Gabriel
2f5d65aad1
Convert all strings to fstrings && avoid usage of shell for Popen
2022-01-29 14:58:59 +00:00
Gabriel
c9d2c71977
Ensure list test exits with appropiate exit code on failure
2022-01-29 11:05:09 +00:00
Yann Collet
fbc61cde65
--test and --list return an error when parsing invalid file
...
fix #1045
2022-01-28 23:31:51 -08:00
Yann Collet
b3a7ca21ce
Merge pull request #1057 from lz4/lz4_unalign
...
renamed unaligned -> LZ4_unaligned
2022-01-28 22:35:31 -08:00
Yann Collet
49e4c671c8
Merge pull request #1056 from lz4/fix_opt12
...
fixed bug in optimal parser
2022-01-28 21:26:24 -08:00
Yann Collet
77bef09693
renamed unaligned -> LZ4_unaligned
...
better name space isolation
suggested by @boris-kolpackov in #1053
2022-01-28 21:24:12 -08:00
Yann Collet
573fa33d1d
added test
...
for --list from stdin
2022-01-28 17:08:44 -08:00
Yann Collet
d27e237b18
Merge pull request #1048 from Low-power/lz4cli-list-stdin
...
'--list' doesn't work stdin even it is a regular file
2022-01-28 17:02:00 -08:00
Yann Collet
b2256c072e
Merge pull request #1049 from eli-schwartz/meson-warning-run_command
...
meson: simplify version lookup and avoid deprecation warnings
2022-01-28 16:57:18 -08:00
Yann Collet
e4f5a34d16
fixed bug in optimal parser
...
discovered by @yoniko.
2022-01-28 16:51:28 -08:00
Yann Collet
5cc311893f
Merge pull request #1054 from mcfi/patch-1
...
Disable _tzcnt_u64 for ARM64EC
2022-01-27 12:08:27 -08:00