platform/upstream/lz4.git
7 years agomoved cmake and debian directories to contrib (#245)
Yann Collet [Wed, 2 Nov 2016 00:26:22 +0000 (17:26 -0700)]
moved cmake and debian directories to contrib (#245)

7 years agofixed #247, reported by Felix Bolte
Yann Collet [Tue, 1 Nov 2016 23:54:33 +0000 (16:54 -0700)]
fixed #247, reported by Felix Bolte

7 years agofixes static compilation under Windows (#246)
Yann Collet [Fri, 21 Oct 2016 16:49:30 +0000 (09:49 -0700)]
fixes static compilation under Windows (#246)

7 years agoMerge pull request #242 from vapier/dev
Yann Collet [Fri, 23 Sep 2016 21:47:24 +0000 (23:47 +0200)]
Merge pull request #242 from vapier/dev

README: fix minor typo

7 years agoREADME: fix minor typo
Mike Frysinger [Fri, 23 Sep 2016 18:09:31 +0000 (14:09 -0400)]
README: fix minor typo

7 years agoMerge pull request #241 from vapier/dev
Yann Collet [Fri, 23 Sep 2016 13:59:39 +0000 (15:59 +0200)]
Merge pull request #241 from vapier/dev

add a flag to disable static libs

7 years agoMerge pull request #238 from kou/add-lz4lib-api
Yann Collet [Fri, 23 Sep 2016 06:54:24 +0000 (08:54 +0200)]
Merge pull request #238 from kou/add-lz4lib-api

Add LZ4LIB_API

7 years agoMerge pull request #240 from kou/add-missin-ext
Yann Collet [Fri, 23 Sep 2016 06:51:35 +0000 (08:51 +0200)]
Merge pull request #240 from kou/add-missin-ext

Add missing $(EXT) to lz4 program name

7 years agoadd a flag to disable static libs
Mike Frysinger [Fri, 23 Sep 2016 03:59:02 +0000 (23:59 -0400)]
add a flag to disable static libs

7 years agoAdd missing $(EXT) to lz4 program name
Kouhei Sutou [Fri, 23 Sep 2016 01:43:12 +0000 (10:43 +0900)]
Add missing $(EXT) to lz4 program name

7 years agoUse different prefix for each file to avoid conflict
Kouhei Sutou [Fri, 23 Sep 2016 01:38:33 +0000 (10:38 +0900)]
Use different prefix for each file to avoid conflict

7 years agoMerge pull request #239 from kou/use-lower-case-for-header-name
Yann Collet [Thu, 22 Sep 2016 17:13:05 +0000 (19:13 +0200)]
Merge pull request #239 from kou/use-lower-case-for-header-name

Use lower case for header file name

7 years agoAdd LZ4LIB_API
Kouhei Sutou [Thu, 22 Sep 2016 15:21:04 +0000 (00:21 +0900)]
Add LZ4LIB_API

It's based on Zstandard's ZSTDLIB_API.

See also: https://github.com/Cyan4973/lz4/issues/216#issuecomment-226245432

Deprecated functions aren't LZ4LIB_API targets. Because we don't need to
export deprecated functions from now.

There are same LZ4LIB_API definitions in each header files instead of
including a common header file because LZ4_DEPRECATED is defined so.

7 years agoUse lower case for header file name
Kouhei Sutou [Thu, 22 Sep 2016 15:34:42 +0000 (00:34 +0900)]
Use lower case for header file name

"WinIoCtl.h" works on Windows because Windows uses case insensitive file
system. But it doesn't work on GNU/Linux (for cross compiling with
MinGW) because GNU/Linux uses case sensitive file system.

7 years agoupdated uninstall
Yann Collet [Sat, 17 Sep 2016 09:59:13 +0000 (11:59 +0200)]
updated uninstall

7 years agoMerge pull request #236 from inikep/dev
Yann Collet [Tue, 6 Sep 2016 14:49:34 +0000 (16:49 +0200)]
Merge pull request #236 from inikep/dev

fix bug #232 at https://github.com/Cyan4973/lz4/issues/232

7 years agoremoved test artefacts
Yann Collet [Tue, 6 Sep 2016 14:46:52 +0000 (16:46 +0200)]
removed test artefacts

7 years agofix bug #232 at https://github.com/Cyan4973/lz4/issues/232
inikep [Tue, 6 Sep 2016 08:36:16 +0000 (10:36 +0200)]
fix bug #232 at https://github.com/Cyan4973/lz4/issues/232

7 years agodatagen depends on lz4.h for version string
Yann Collet [Mon, 5 Sep 2016 13:49:55 +0000 (06:49 -0700)]
datagen depends on lz4.h for version string

7 years agoMerge pull request #235 from inikep/dev
Yann Collet [Mon, 5 Sep 2016 12:59:58 +0000 (05:59 -0700)]
Merge pull request #235 from inikep/dev

updated .travis.yml

7 years agofixed LZ4 repository links
inikep [Mon, 5 Sep 2016 11:39:35 +0000 (13:39 +0200)]
fixed LZ4 repository links

7 years agoversionTests require 32-bit gcc libraries
inikep [Mon, 5 Sep 2016 10:32:33 +0000 (12:32 +0200)]
versionTests require 32-bit gcc libraries

7 years agoversionTests require python3
inikep [Mon, 5 Sep 2016 08:53:53 +0000 (10:53 +0200)]
versionTests require python3

7 years agoupdated .travis.yml
inikep [Mon, 5 Sep 2016 08:34:58 +0000 (10:34 +0200)]
updated .travis.yml

7 years agoMerge pull request #233 from inikep/dev
Yann Collet [Sat, 3 Sep 2016 06:34:18 +0000 (23:34 -0700)]
Merge pull request #233 from inikep/dev

Appveyor tests

7 years agoMerge remote-tracking branch 'refs/remotes/Cyan4973/dev' into dev
inikep [Sat, 3 Sep 2016 06:10:16 +0000 (08:10 +0200)]
Merge remote-tracking branch 'refs/remotes/Cyan4973/dev' into dev

# Conflicts:
# programs/Makefile

7 years agodisabled <RunCodeAnalysis> for Win32
inikep [Sat, 3 Sep 2016 05:53:38 +0000 (07:53 +0200)]
disabled <RunCodeAnalysis> for Win32

7 years agolz4 version source from lz4.h
Yann Collet [Sat, 3 Sep 2016 05:04:16 +0000 (22:04 -0700)]
lz4 version source from lz4.h

7 years agoframetest depends on standard C time.h only
Yann Collet [Sat, 3 Sep 2016 04:46:02 +0000 (21:46 -0700)]
frametest depends on standard C time.h only

7 years agofullbench depends on standard C time.h only
Yann Collet [Sat, 3 Sep 2016 03:17:19 +0000 (20:17 -0700)]
fullbench depends on standard C time.h only

7 years agofuzzer depends on standard C time.h only
Yann Collet [Sat, 3 Sep 2016 02:48:24 +0000 (19:48 -0700)]
fuzzer depends on standard C time.h only

7 years agolz4cli version number from lz4.h
Yann Collet [Sat, 3 Sep 2016 02:32:06 +0000 (19:32 -0700)]
lz4cli version number from lz4.h

7 years agocoding style change
Yann Collet [Sat, 3 Sep 2016 02:06:01 +0000 (19:06 -0700)]
coding style change

7 years agoCFLAGS += $(MOREFLAGS)
inikep [Sat, 3 Sep 2016 00:05:01 +0000 (02:05 +0200)]
CFLAGS  += $(MOREFLAGS)

7 years agoremove EnablePREfast=true for Win32
inikep [Fri, 2 Sep 2016 23:35:00 +0000 (01:35 +0200)]
remove EnablePREfast=true for Win32

7 years agoset OutDir
inikep [Fri, 2 Sep 2016 23:12:22 +0000 (01:12 +0200)]
set OutDir

7 years agoupdate IncludePath
inikep [Fri, 2 Sep 2016 23:03:04 +0000 (01:03 +0200)]
update IncludePath

7 years agorestored lz4.vcxproj
inikep [Fri, 2 Sep 2016 22:54:14 +0000 (00:54 +0200)]
restored lz4.vcxproj

7 years agoadded appveyor.yml
inikep [Fri, 2 Sep 2016 22:52:11 +0000 (00:52 +0200)]
added appveyor.yml

7 years agorenamed VS project
inikep [Fri, 2 Sep 2016 22:51:24 +0000 (00:51 +0200)]
renamed VS project

7 years agoMerge pull request #231 from inikep/dev
Yann Collet [Fri, 2 Sep 2016 22:21:51 +0000 (15:21 -0700)]
Merge pull request #231 from inikep/dev

-b# and -e# options from zstd

7 years agoadded <string.h> for strlen()
inikep [Fri, 2 Sep 2016 21:02:30 +0000 (23:02 +0200)]
added <string.h> for strlen()

7 years ago-b# and -e# options from zstd
inikep [Fri, 2 Sep 2016 20:59:18 +0000 (22:59 +0200)]
-b# and -e# options from zstd

7 years agofix mingw64 compilation warnings
inikep [Fri, 2 Sep 2016 19:50:57 +0000 (21:50 +0200)]
fix mingw64 compilation warnings

7 years agoMerge pull request #226 from gsauthof/port-make
Yann Collet [Sun, 28 Aug 2016 11:55:36 +0000 (13:55 +0200)]
Merge pull request #226 from gsauthof/port-make

Fix POSIX portability and cmake file

7 years agodon't use variable eval syntax in if()
Georg Sauthoff [Sat, 27 Aug 2016 09:18:43 +0000 (11:18 +0200)]
don't use variable eval syntax in if()

because it is substituted before if() is executed

cf. the last section of e.g.:
https://cmake.org/cmake/help/v3.1/command/if.html

7 years agodon't link the tools against the shared library
Georg Sauthoff [Sat, 27 Aug 2016 09:14:24 +0000 (11:14 +0200)]
don't link the tools against the shared library

by default.

reason: to have analogous behavior as with the official makefile

(using a shared library might have the side effect of slower execution)

7 years agoremove additional -fPIC switch because
Georg Sauthoff [Sat, 27 Aug 2016 08:56:08 +0000 (10:56 +0200)]
remove additional -fPIC switch because

- cmake is smart enough to add this flag on its own (for object files
  that it links into a shared library)
- cmake contains two sets of oject files - the position-dependent ones
  and the position-independent ones - and uses each set accordingly
  (for linking the executable, static library, shared library)
- having an executable that unnecessarily contains position-independent
  code has performance implications

7 years agouse gnu c99 to get both c99 and POSIX
Georg Sauthoff [Sat, 27 Aug 2016 08:47:50 +0000 (10:47 +0200)]
use gnu c99 to get both c99 and POSIX

when compiling with gcc

fixes fileno() implicitly defined on Linx and compile error on Solaris 10

7 years agorequest POSIX.2001 definitions for fileno()
Georg Sauthoff [Sat, 27 Aug 2016 08:32:21 +0000 (10:32 +0200)]
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.

7 years agominor comments
Yann Collet [Sat, 20 Aug 2016 22:08:38 +0000 (00:08 +0200)]
minor comments

7 years agominor refactor
Yann Collet [Sat, 20 Aug 2016 21:59:45 +0000 (23:59 +0200)]
minor refactor

7 years agominor decompression speed gains
Yann Collet [Sat, 20 Aug 2016 21:52:20 +0000 (23:52 +0200)]
minor decompression speed gains

7 years agolz4 as phony target
Yann Collet [Sat, 20 Aug 2016 21:49:36 +0000 (23:49 +0200)]
lz4 as phony target

7 years agoMakefile : lz4 at root
Yann Collet [Sat, 20 Aug 2016 21:26:33 +0000 (23:26 +0200)]
Makefile : lz4 at root

7 years agominor comments clarifications
Yann Collet [Sat, 20 Aug 2016 21:22:29 +0000 (23:22 +0200)]
minor comments clarifications

7 years agominor comments clarification
Yann Collet [Thu, 11 Aug 2016 16:55:42 +0000 (18:55 +0200)]
minor comments clarification

7 years agoFixed #157 : LZ4F_getFrameInfo() fails on valid null-content frame
Yann Collet [Thu, 11 Aug 2016 12:44:53 +0000 (14:44 +0200)]
Fixed #157 : LZ4F_getFrameInfo() fails on valid null-content frame

7 years agoMinor fuzzer code refactoring
Yann Collet [Thu, 11 Aug 2016 10:18:45 +0000 (12:18 +0200)]
Minor fuzzer code refactoring

7 years agoMerge branch 'dev' of github.com:Cyan4973/lz4 into dev
Yann Collet [Thu, 11 Aug 2016 10:00:32 +0000 (12:00 +0200)]
Merge branch 'dev' of github.com:Cyan4973/lz4 into dev

7 years agofixed : fuzzer test, reported by @setharnold (#203)
Yann Collet [Wed, 10 Aug 2016 07:14:11 +0000 (09:14 +0200)]
fixed : fuzzer test, reported by @setharnold (#203)

7 years agominor refactoring changes
Yann Collet [Thu, 30 Jun 2016 11:44:58 +0000 (13:44 +0200)]
minor refactoring changes

8 years agoMerge pull request #222 from kou/fix-build-error-with-mingw
Yann Collet [Tue, 26 Jul 2016 09:44:09 +0000 (11:44 +0200)]
Merge pull request #222 from kou/fix-build-error-with-mingw

Fix build error with MinGW on Linux

8 years agoFix build error with MinGW on Linux
Kouhei Sutou [Mon, 25 Jul 2016 06:54:16 +0000 (15:54 +0900)]
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.
    ...

8 years agoMerge pull request #219 from BenWiederhake/dev
Yann Collet [Fri, 8 Jul 2016 04:31:18 +0000 (06:31 +0200)]
Merge pull request #219 from BenWiederhake/dev

Clean up links, repository-wide

8 years agoUse https wherever possible
Ben Wiederhake [Thu, 7 Jul 2016 22:39:39 +0000 (00:39 +0200)]
Use https wherever possible

8 years agoCorrectly reference self (github, not googlecode)
Ben Wiederhake [Thu, 7 Jul 2016 22:35:57 +0000 (00:35 +0200)]
Correctly reference self (github, not googlecode)

8 years agoUse correct 'repository' hostname
Ben Wiederhake [Thu, 7 Jul 2016 22:34:53 +0000 (00:34 +0200)]
Use correct 'repository' hostname

8 years agoUpdated xxhash library to v0.6.1
Yann Collet [Wed, 29 Jun 2016 19:48:27 +0000 (21:48 +0200)]
Updated xxhash library to v0.6.1

8 years agostronger compilation flags
Yann Collet [Wed, 29 Jun 2016 18:25:10 +0000 (20:25 +0200)]
stronger compilation flags

8 years agomodified : some more deprecated functions from lz4hc.h generate warnings
Yann Collet [Wed, 29 Jun 2016 16:18:34 +0000 (18:18 +0200)]
modified : some more deprecated functions from lz4hc.h generate warnings

8 years agochanged : default benchmark LZ4_decompress_safe()
Yann Collet [Wed, 29 Jun 2016 15:48:28 +0000 (17:48 +0200)]
changed : default benchmark LZ4_decompress_safe()

8 years agoMinor refactoring (code style)
Yann Collet [Wed, 29 Jun 2016 15:12:24 +0000 (17:12 +0200)]
Minor refactoring (code style)

8 years agoFixed : alignment warning
Yann Collet [Wed, 29 Jun 2016 15:02:09 +0000 (17:02 +0200)]
Fixed : alignment warning

8 years agominor refactoring
Yann Collet [Wed, 29 Jun 2016 13:53:21 +0000 (15:53 +0200)]
minor refactoring

8 years agovery minor decompression speed gain
Yann Collet [Wed, 29 Jun 2016 13:04:19 +0000 (15:04 +0200)]
very minor decompression speed gain

8 years agofixed display result issue when benchmarking multiple files
Yann Collet [Wed, 29 Jun 2016 12:56:50 +0000 (14:56 +0200)]
fixed display result issue when benchmarking multiple files

8 years agominor code refactoring
Yann Collet [Wed, 29 Jun 2016 12:44:05 +0000 (14:44 +0200)]
minor code refactoring

8 years agoReduced bench dependency to standard C <time.h>
Yann Collet [Wed, 29 Jun 2016 12:35:19 +0000 (14:35 +0200)]
Reduced bench dependency to standard C <time.h>
Faster tests
More accurate results on systems with high resolution clocks

8 years agominor compression speed improvement
Yann Collet [Wed, 29 Jun 2016 11:43:11 +0000 (13:43 +0200)]
minor compression speed improvement

8 years agominor refactoring
Yann Collet [Wed, 29 Jun 2016 11:21:23 +0000 (13:21 +0200)]
minor refactoring

8 years agominor refactoring (coding style)
Yann Collet [Wed, 29 Jun 2016 10:54:23 +0000 (12:54 +0200)]
minor refactoring (coding style)

8 years agoMerge pull request #208 from Nimloth/dev
Yann Collet [Tue, 17 May 2016 09:14:31 +0000 (11:14 +0200)]
Merge pull request #208 from Nimloth/dev

Add FreeBSD to install targets

8 years agoAdd FreeBSD to install targets
Martin Waschbüsch [Tue, 17 May 2016 05:47:03 +0000 (07:47 +0200)]
Add FreeBSD to install targets

Add FreeBSD to install targets

8 years agoMerge pull request #204 from irwand/dev
Yann Collet [Tue, 10 May 2016 06:01:53 +0000 (08:01 +0200)]
Merge pull request #204 from irwand/dev

Alloc failure fixes

8 years agofixed non-C99 compilers
Irwan Djajadi [Tue, 19 Apr 2016 20:06:15 +0000 (15:06 -0500)]
fixed non-C99 compilers

8 years agofixed non-C99 compiler
Irwan Djajadi [Tue, 19 Apr 2016 20:01:35 +0000 (15:01 -0500)]
fixed non-C99 compiler

8 years agoMerge branch 'heapmode_alloc_failure_fix' into dev
Irwan Djajadi [Tue, 19 Apr 2016 13:22:56 +0000 (08:22 -0500)]
Merge branch 'heapmode_alloc_failure_fix' into dev

8 years agoalloc failure fix
Irwan Djajadi [Mon, 18 Apr 2016 20:51:32 +0000 (15:51 -0500)]
alloc failure fix

8 years agoMerge pull request #201 from cernekee/cmake-pc
Yann Collet [Mon, 18 Apr 2016 18:11:13 +0000 (11:11 -0700)]
Merge pull request #201 from cernekee/cmake-pc

cmake: Install liblz4.pc

8 years agocmake: Install liblz4.pc
Kevin Cernekee [Mon, 18 Apr 2016 04:51:26 +0000 (21:51 -0700)]
cmake: Install liblz4.pc

This performs the same substitutions as lib/Makefile.

8 years agoMerge pull request #197 from Cyan4973/fix-readme-travis
Yann Collet [Thu, 7 Apr 2016 17:59:27 +0000 (19:59 +0200)]
Merge pull request #197 from Cyan4973/fix-readme-travis

Fix wrong link for Travis

8 years agoFix wrong link for Travis
Takayuki MATSUOKA [Thu, 7 Apr 2016 17:54:28 +0000 (02:54 +0900)]
Fix wrong link for Travis

8 years agoMerge pull request #194 from jzhuge/dev
Yann Collet [Fri, 1 Apr 2016 14:41:58 +0000 (16:41 +0200)]
Merge pull request #194 from jzhuge/dev

lz4cli: print library version

8 years agolz4cli: print library version
John Zhuge [Wed, 30 Mar 2016 23:33:17 +0000 (23:33 +0000)]
lz4cli: print library version

8 years agoMerge branch 'dev' of github.com:Cyan4973/lz4 into dev
Yann Collet [Thu, 25 Feb 2016 13:50:05 +0000 (14:50 +0100)]
Merge branch 'dev' of github.com:Cyan4973/lz4 into dev

8 years agoAdded zstd
Yann Collet [Thu, 25 Feb 2016 13:49:40 +0000 (14:49 +0100)]
Added zstd

8 years agoMerge pull request #185 from jwerner-chromium/dev
Yann Collet [Tue, 16 Feb 2016 21:29:10 +0000 (22:29 +0100)]
Merge pull request #185 from jwerner-chromium/dev

Add support for safe in-place decoding

8 years agoAllow for safe in-place decoding
Julius Werner [Fri, 12 Feb 2016 23:35:41 +0000 (15:35 -0800)]
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>
8 years agoRemove whitespace from ends of lines
Julius Werner [Fri, 12 Feb 2016 22:34:07 +0000 (14:34 -0800)]
Remove whitespace from ends of lines

I'm trying to import LZ4 code into a project with strict linting
requirements. This will make that easier.

Signed-off-by: Julius Werner <jwerner@chromium.org>