Commit Graph

1956 Commits

Author SHA1 Message Date
Yann Collet
16400fb790
Merge pull request #616 from felixhandte/lz4-attach-reject-short-dicts
Fix LZ4_compress_fast_continue() Prefix Size Check
2018-12-09 11:29:43 -08:00
Yann Collet
077caefae6
Merge pull request #613 from lzutao/fix_meson_tests
meson: Fix build and test problems
2018-12-09 11:29:03 -08:00
Lzu Tao
58d8055da6 meson: Add README.md for newcomers [skip ci] 2018-12-09 18:57:49 +07:00
W. Felix Handte
4e3accccb2 Fix Dict Size Test in LZ4_compress_fast_continue()
Dictionaries don't need to be > 4 bytes, they need to be >= 4 bytes. This test
was overly conservative.

Also removes the test in `LZ4_attach_dictionary()`.
2018-12-05 11:24:33 -08:00
W. Felix Handte
535636ff5c Don't Attach Very Small Dictionaries
Fixes a mismatch in behavior between loading into the context (via
`LZ4_loadDict()`) a very small (<= 4 bytes) non-contiguous dictionary, versus
attaching it with `LZ4_attach_dictionary()`.

Before this patch, this divergence could be reproduced by running

```
make -C tests fuzzer MOREFLAGS="-m32"
tests/fuzzer -v -s1239 -t3146
```

Making sure these two paths behave exactly identically is an easy way to test
the correctness of the attach path, so it's desirable that this remain an
unpolluted, high signal test.
2018-12-04 14:05:11 -08:00
Lzu Tao
fbc42958c0 No need to join prefix and let soversion base on version 2018-12-04 10:18:54 +07:00
Lzu Tao
4c43d14891 Use MESON_INSTALL_DESTDIR_PREFIX instead of DESTDIR 2018-12-04 10:18:01 +07:00
Lzu Tao
b4ab8875f9 meson: Add fallback message when not found lz4.h 2018-12-04 00:59:06 +07:00
Lzu Tao
2491af993b meson: Fix wrong path to lib/lz4.h 2018-12-04 00:56:10 +07:00
Lzu Tao
0caeec939f meson: Correct support for Windows build 2018-12-03 22:48:37 +07:00
Lzu Tao
7b6ccfe52c meson: Use clang for faster build
"ninja install" automatically builds the project, no need to
use "ninja"
2018-12-03 22:48:37 +07:00
Lzu Tao
e2fc6bcd1c meson: Update usage of InstallSymlink helper 2018-12-03 22:48:37 +07:00
Lzu Tao
4fe675af1c Use argparse instead of manually parsing [skip ci] 2018-12-03 19:19:21 +07:00
Lzu Tao
a9e96d5c5a meson: Fix soversion and generated pkg-config file [skip ci] 2018-12-03 19:19:02 +07:00
Lzu Tao
4fc4b73586 meson: Use --werror build option instead of passing -Werror [skip ci] 2018-12-03 19:19:02 +07:00
Lzu Tao
5699432d38 meson test: Update timeout and tests that use COPYING 2018-12-03 19:19:02 +07:00
Yann Collet
3a510831c3
Merge pull request #615 from vtorri/dev
Windows: create import library with gcc directly, remove now useless def file
2018-12-02 12:30:25 -08:00
Vincent Torri
9021648ba7 Merge remote-tracking branch 'upstream/dev' into dev 2018-12-02 19:42:38 +01:00
Vincent Torri
b03714dc80 Windows: create import library with gcc directly, remove now useless def file 2018-12-02 18:50:18 +01:00
Vincent Torri
65ff6f8073 Merge remote-tracking branch 'upstream/master' into dev 2018-12-02 18:46:14 +01:00
Yann Collet
4d60ecc9c7
Merge pull request #612 from lzutao/fix_clang_fuzzer
Fix clang warning
2018-12-02 08:50:08 -08:00
Lzu Tao
49073aca86 clang: Fix -Wcomma 2018-12-02 20:39:47 +07:00
Lzu Tao
b9d3080d75 clang: Fix -Wcast-qual 2018-12-02 20:30:25 +07:00
Lzu Tao
0241755dbf Fix clang warnings: -Wformat-pedantic and -Werror=overflow 2018-12-02 20:12:24 +07:00
Yann Collet
3b8253a4bc
Merge pull request #611 from lzutao/mesonbuild
Support for Meson build and its CI tests
2018-12-01 19:35:47 -08:00
Lzu Tao
9f87365de5 Add Travis meson build 2018-12-02 10:00:27 +07:00
Lzu Tao
5bc119455f Add meson build system 2018-12-02 10:00:27 +07:00
Yann Collet
6689dae33b
Merge pull request #610 from antinucleon/bootcamp
[amalgamation] lz4frame.c
2018-11-26 12:14:27 -08:00
Bing Xu
b192c86ba4 [amalgamation] lz4frame.c 2018-11-26 11:30:15 -08:00
Bing Xu
b4efd20ac8 Merge remote-tracking branch 'upstream/master' into bootcamp 2018-11-26 11:12:49 -08:00
Yann Collet
01d2a721d3
Merge pull request #606 from nh2/patch-1
lz4_Frame_format.md: Fix typo HexaBytes -> Exabytes
2018-11-25 13:38:37 -08:00
Niklas Hambüchen
ca45db8d4f
lz4_Frame_format.md: Fix typo HexaBytes -> Exabytes 2018-11-24 22:13:10 +01:00
Yann Collet
0983fd61ee
Merge pull request #605 from vtorri/dev
Allow installation of lz4 for Windows (MSYS2 or when cross-compiling)
2018-11-21 10:04:37 -08:00
Vincent Torri
bd2b259760 Uninstall DLL and import lib 2018-11-21 09:07:26 +01:00
Vincent Torri
8e8b658bde Add explanation for the installation of the DLL in the bin directory 2018-11-21 08:40:51 +01:00
Vincent Torri
0314027051 Allow installation of lz4 for Windows (MSYS2 or when cross-compiling) 2018-11-20 21:08:23 +01:00
Vincent Torri
4602f141fa Merge remote-tracking branch 'upstream/master' into dev 2018-11-20 20:41:56 +01:00
Yann Collet
1e72459f76
Merge pull request #604 from vtorri/dev
Add DLLTOOL variable so that one can override dlltool binary
2018-11-19 14:31:37 -08:00
Vincent Torri
e057e94215 update lib/README.md 2018-11-18 21:03:27 +01:00
Vincent Torri
d966844a95 Add documentation about DLLTOOL variable 2018-11-18 13:22:10 +01:00
Vincent Torri
b5e106220b Add DLLTOOL variable so that one can override dlltool binary
This fix cross compilation on linux for Windows
2018-11-17 14:17:15 +01:00
Yann Collet
c910db3a41
Merge pull request #603 from vtorri/dev
Use / instead of \ when accessing files in the dll subdirectory.
2018-11-17 00:52:56 -08:00
Vincent Torri
31ce8b56e5 Use / instead of \ when accessing files in the dll subdirectory.
This allow cross-compilation for Windows on Linux
2018-11-17 07:44:23 +01:00
Yann Collet
6686e7597c
Merge pull request #600 from antinucleon/bootcamp
Enable amalgamation of lz4hc.c and lz4.c
2018-11-16 11:14:46 -08:00
Bing Xu
a7e8d394c0 [amalgamation] add test 2018-11-16 09:37:19 -08:00
Bing Xu
17f5071e72 Enable amalgamation of lz4hc.c and lz4.c 2018-11-15 22:24:25 -08:00
Yann Collet
1b819bfd63
Merge pull request #593 from felixhandte/lz4hc-publish-static
Extend Macro to Allow Publishing Experimental LZ4HC Functions in Dynamic Libraries
2018-10-16 15:33:58 -07:00
W. Felix Handte
6a2da13cb7 Make LZ4HC Experimental Functions Dynamically Publishable 2018-10-15 17:23:06 -07:00
W. Felix Handte
45dc195f84 Change Comment and Make LZ4LIB_STATIC_API Available to LZ4HC 2018-10-15 17:22:37 -07:00
Yann Collet
bf9bf80f8d updated code documentation
to clarify #589
2018-10-15 11:14:30 -07:00