Commit Graph

818 Commits

Author SHA1 Message Date
Georg Sauthoff
584e1fe92a request POSIX.2001 definitions for fileno()
this also fixes compilation on Solaris 10

cf. feature_test_macros(7) Linux man page:

> _POSIX_SOURCE
>   Defining this obsolete macro with any value is equivalent to  defin‐
>   ing _POSIX_C_SOURCE with the value 1.
>
>   Since  this macro is obsolete, its usage is generally not documented
>   when discussing feature test macro requirements in the man pages.
2016-08-27 15:24:33 +02:00
Yann Collet
5bd3eaa481 minor comments 2016-08-21 00:08:38 +02:00
Yann Collet
9578ff539d minor refactor 2016-08-20 23:59:45 +02:00
Yann Collet
a7672dc4f9 minor decompression speed gains 2016-08-20 23:52:20 +02:00
Yann Collet
182645ee0f lz4 as phony target 2016-08-20 23:49:36 +02:00
Yann Collet
0214638eb7 Makefile : lz4 at root 2016-08-20 23:26:33 +02:00
Yann Collet
63d22e7a19 minor comments clarifications 2016-08-20 23:22:29 +02:00
Yann Collet
74e6afc5dc minor comments clarification 2016-08-11 18:55:42 +02:00
Yann Collet
2ac9ecec68 Fixed #157 : LZ4F_getFrameInfo() fails on valid null-content frame 2016-08-11 14:55:39 +02:00
Yann Collet
45ea27949c Minor fuzzer code refactoring 2016-08-11 12:18:45 +02:00
Yann Collet
de69eca475 Merge branch 'dev' of github.com:Cyan4973/lz4 into dev 2016-08-11 12:00:32 +02:00
Yann Collet
828332d236 fixed : fuzzer test, reported by @setharnold (#203) 2016-08-10 09:14:11 +02:00
Yann Collet
b130fd5923 minor refactoring changes 2016-08-10 08:26:49 +02:00
Yann Collet
3c295ca4ac Merge pull request #222 from kou/fix-build-error-with-mingw
Fix build error with MinGW on Linux
2016-07-26 11:44:09 +02:00
Kouhei Sutou
0c63b7cbd9 Fix build error with MinGW on Linux
Linux uses case sensitive file system. So "Windows.h" doesn't exist.

    % make CC=x86_64-w64-mingw32-gcc EXT=.exe SHARD_EXT=dll
    ...
    lz4io.c:69:73: fatal error: Windows.h: No such file or directory
    compilation terminated.
    ...
2016-07-25 15:54:16 +09:00
Yann Collet
7316584ca0 Merge pull request #219 from BenWiederhake/dev
Clean up links, repository-wide
2016-07-08 06:31:18 +02:00
Ben Wiederhake
d3e2d80266 Use https wherever possible 2016-07-08 00:46:02 +02:00
Ben Wiederhake
cec38d1b74 Correctly reference self (github, not googlecode) 2016-07-08 00:45:33 +02:00
Ben Wiederhake
6540030033 Use correct 'repository' hostname 2016-07-08 00:45:18 +02:00
Yann Collet
91cce757f5 Updated xxhash library to v0.6.1 2016-06-29 21:48:27 +02:00
Yann Collet
5540f4f93e stronger compilation flags 2016-06-29 20:25:10 +02:00
Yann Collet
19e585cc46 modified : some more deprecated functions from lz4hc.h generate warnings 2016-06-29 18:18:34 +02:00
Yann Collet
6b1600f41e changed : default benchmark LZ4_decompress_safe() 2016-06-29 17:48:28 +02:00
Yann Collet
6923f3e230 Minor refactoring (code style) 2016-06-29 17:12:24 +02:00
Yann Collet
410ec81543 Fixed : alignment warning 2016-06-29 17:02:09 +02:00
Yann Collet
bc342ab94c minor refactoring 2016-06-29 16:01:24 +02:00
Yann Collet
c8a573d32c very minor decompression speed gain 2016-06-29 15:04:19 +02:00
Yann Collet
a5508b1ad2 fixed display result issue when benchmarking multiple files 2016-06-29 14:56:50 +02:00
Yann Collet
e27e7316dd minor code refactoring 2016-06-29 14:54:07 +02:00
Yann Collet
2d7df8b306 Reduced bench dependency to standard C <time.h>
Faster tests
More accurate results on systems with high resolution clocks
2016-06-29 14:35:19 +02:00
Yann Collet
8938e10742 minor compression speed improvement 2016-06-29 14:07:54 +02:00
Yann Collet
c77c0c1086 minor refactoring 2016-06-29 13:21:23 +02:00
Yann Collet
3c03326004 minor refactoring (coding style) 2016-06-29 12:54:23 +02:00
Yann Collet
1f47f3f747 Merge pull request #208 from Nimloth/dev
Add FreeBSD to install targets
2016-05-17 11:14:31 +02:00
Martin Waschbüsch
7bfbccb972 Add FreeBSD to install targets
Add FreeBSD to install targets
2016-05-17 07:47:03 +02:00
Yann Collet
5bb5d6ee15 Merge pull request #204 from irwand/dev
Alloc failure fixes
2016-05-10 08:01:53 +02:00
Irwan Djajadi
bc70a4b72e fixed non-C99 compilers 2016-04-19 15:06:15 -05:00
Irwan Djajadi
10e3eecc56 fixed non-C99 compiler 2016-04-19 15:01:35 -05:00
Irwan Djajadi
973baa2c19 Merge branch 'heapmode_alloc_failure_fix' into dev 2016-04-19 08:22:56 -05:00
Irwan Djajadi
3e5bb67537 alloc failure fix 2016-04-18 15:51:32 -05:00
Yann Collet
8a42ee10a3 Merge pull request #201 from cernekee/cmake-pc
cmake: Install liblz4.pc
2016-04-18 11:11:13 -07:00
Kevin Cernekee
4bda09fc82 cmake: Install liblz4.pc
This performs the same substitutions as lib/Makefile.
2016-04-17 23:11:42 -07:00
Yann Collet
8b562a4f37 Merge pull request #197 from Cyan4973/fix-readme-travis
Fix wrong link for Travis
2016-04-07 19:59:27 +02:00
Takayuki MATSUOKA
5cdf9a6578 Fix wrong link for Travis 2016-04-08 02:54:28 +09:00
Yann Collet
220e0b606a Merge pull request #194 from jzhuge/dev
lz4cli: print library version
2016-04-01 16:41:58 +02:00
John Zhuge
cf6652f9b9 lz4cli: print library version 2016-04-01 07:07:25 -07:00
Yann Collet
60ba8638cd Merge branch 'dev' of github.com:Cyan4973/lz4 into dev 2016-02-25 14:50:05 +01:00
Yann Collet
219da951d0 Added zstd 2016-02-25 14:49:40 +01:00
Yann Collet
2995a45e53 Merge pull request #185 from jwerner-chromium/dev
Add support for safe in-place decoding
2016-02-16 22:29:10 +01:00
Julius Werner
dc868cd5b1 Allow for safe in-place decoding
Add a check to allow safe "in-place" decoding (meaning that the
beginning of the source buffer partially overlaps the end of the
destination buffer). This is usually possible as long as the output
stops at least 15 bytes before the end of the input buffer (7 to account
for the extra spill from LZ4_wildCopy, 4 for a possible block checksum,
and 4 for the terminating block header), but in some pathological edge
cases it could be possible for the output stream to overwrite a byte in
the input stream before it gets decoded. With this patch the decoder
will reliably detect those cases and return a decoding error.

Signed-off-by: Julius Werner <jwerner@chromium.org>
2016-02-12 22:52:51 -08:00