platform/upstream/lz4.git
11 years agoLZ4_HC is now compatible with CPU requiring aligned memory accesses
yann.collet.73@gmail.com [Sat, 22 Dec 2012 17:56:05 +0000 (17:56 +0000)]
LZ4_HC is now compatible with CPU requiring aligned memory accesses

git-svn-id: https://lz4.googlecode.com/svn/trunk@87 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

11 years agoImproved endianess detection
yann.collet.73@gmail.com [Fri, 21 Dec 2012 16:49:17 +0000 (16:49 +0000)]
Improved endianess detection

git-svn-id: https://lz4.googlecode.com/svn/trunk@86 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

11 years agoImproved decoding speed, thanks to several contributions from Ludvig Strigeus (issues...
yann.collet.73@gmail.com [Tue, 11 Dec 2012 01:38:32 +0000 (01:38 +0000)]
Improved decoding speed, thanks to several contributions from Ludvig Strigeus (issues 49, 50 & 54)
Removed unnecessary assignment within LZ4_uncompress_unknownSize() (reported by Shivram)

git-svn-id: https://lz4.googlecode.com/svn/trunk@85 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

11 years agoLZ4 HC : extended detection window. Thanks to Adrien Grand.
yann.collet.73@gmail.com [Fri, 30 Nov 2012 13:23:36 +0000 (13:23 +0000)]
LZ4 HC : extended detection window. Thanks to Adrien Grand.
Fuzzer : more tests cases
lz4demo : detect write errors. Thanks to Dima Tisnek
bench.c : compatibility with Solaris 64. Thanks to Thorbjørn Willoch
LZ4_compressBound() : now both in inline function and macro format. Thanks to Jacob Gorm Hansen

git-svn-id: https://lz4.googlecode.com/svn/trunk@84 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoCorrected a bug into LZ4_uncompress_unknownOutputSize() introduced in r82
yann.collet.73@gmail.com [Mon, 5 Nov 2012 16:55:52 +0000 (16:55 +0000)]
Corrected a bug into LZ4_uncompress_unknownOutputSize() introduced in r82

git-svn-id: https://lz4.googlecode.com/svn/trunk@83 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoCorrected issue 38 : bench.c compilation for Sun Solaris 32 bits
yann.collet.73@gmail.com [Sat, 3 Nov 2012 21:04:19 +0000 (21:04 +0000)]
Corrected issue 38 : bench.c compilation for Sun Solaris 32 bits
Corrected issue 40 : Detect early ending of compressed stream. Thanks Adrian Grand.
Corrected issue 41 : minor comment editing on lz4.h

git-svn-id: https://lz4.googlecode.com/svn/trunk@82 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoCorrected issue 39 : bench.c for NetBSD. Thanks to Thomas Klausner.
yann.collet.73@gmail.com [Sat, 27 Oct 2012 18:26:58 +0000 (18:26 +0000)]
Corrected issue 39 : bench.c for NetBSD. Thanks to Thomas Klausner.

git-svn-id: https://lz4.googlecode.com/svn/trunk@81 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoCorrected Issue 34 (restrict)
yann.collet.73@gmail.com [Fri, 26 Oct 2012 12:35:31 +0000 (12:35 +0000)]
Corrected Issue 34 (restrict)
minor macro renaming (fuzzer.c)

git-svn-id: https://lz4.googlecode.com/svn/trunk@80 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years ago- Corrected issue 31 : LZ4 correctly accepts compressing data when the output buffer...
yann.collet.73@gmail.com [Wed, 24 Oct 2012 12:59:19 +0000 (12:59 +0000)]
- Corrected issue 31 : LZ4 correctly accepts compressing data when the output buffer has exactly the required size (it was a bit over-cautious in previous version).
- Added : a fuzzer tool
Thanks to Andrew Mahone, for contribution on both points

git-svn-id: https://lz4.googlecode.com/svn/trunk@79 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoCorrect issue 36 on LZ4_uncompress_unknownOutputSize(). Thanks to Clayton Stangeland...
yann.collet.73@gmail.com [Tue, 16 Oct 2012 21:50:15 +0000 (21:50 +0000)]
Correct issue 36 on LZ4_uncompress_unknownOutputSize(). Thanks to Clayton Stangeland and Maciej Adamczyk for notifying.
Converted tabs to space

git-svn-id: https://lz4.googlecode.com/svn/trunk@78 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoCorrection : LZ4_compress_limitedOutput() write too far error
yann.collet.73@gmail.com [Wed, 22 Aug 2012 15:59:39 +0000 (15:59 +0000)]
Correction : LZ4_compress_limitedOutput() write too far error

git-svn-id: https://lz4.googlecode.com/svn/trunk@77 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agochanged some macro names in lz4hc to avoid duplicate definition on NetBSD
yann.collet.73@gmail.com [Tue, 14 Aug 2012 16:27:47 +0000 (16:27 +0000)]
changed some macro names in lz4hc to avoid duplicate definition on NetBSD

git-svn-id: https://lz4.googlecode.com/svn/trunk@76 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoFixed Visual 2005 issues (warning/linking)
yann.collet.73@gmail.com [Mon, 13 Aug 2012 07:30:58 +0000 (07:30 +0000)]
Fixed Visual 2005 issues (warning/linking)

git-svn-id: https://lz4.googlecode.com/svn/trunk@75 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoLZ4.c : changed inline to "static inline" to comply with limitations from GCC/LLVM...
yann.collet.73@gmail.com [Wed, 8 Aug 2012 13:02:45 +0000 (13:02 +0000)]
LZ4.c : changed inline to "static inline" to comply with limitations from GCC/LLVM combination under OS-X.

git-svn-id: https://lz4.googlecode.com/svn/trunk@74 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoImproved speed under Visual
yann.collet.73@gmail.com [Fri, 3 Aug 2012 14:33:12 +0000 (14:33 +0000)]
Improved speed under Visual

git-svn-id: https://lz4.googlecode.com/svn/trunk@73 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoFixed : small compression speed hit on GCC v4.5 introduced by r71
yann.collet.73@gmail.com [Wed, 1 Aug 2012 23:51:55 +0000 (23:51 +0000)]
Fixed : small compression speed hit on GCC v4.5 introduced by r71

git-svn-id: https://lz4.googlecode.com/svn/trunk@72 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoAdded : function LZ4_compress_limitedOutput()
yann.collet.73@gmail.com [Sat, 28 Jul 2012 13:32:30 +0000 (13:32 +0000)]
Added : function LZ4_compress_limitedOutput()
Removed : functions with explicit *ctx management (LZ4_compressCtx & LZ4_compress64kCtx). Functions are still present in the .c
Changed : LZ4_compressBound() now a macro

git-svn-id: https://lz4.googlecode.com/svn/trunk@71 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agolz4.c : changed a tuning parameter name to MEMORY_USAGE, to better reflect its impact
yann.collet.73@gmail.com [Tue, 24 Jul 2012 17:12:23 +0000 (17:12 +0000)]
lz4.c : changed a tuning parameter name to MEMORY_USAGE, to better reflect its impact
Makefile : default produces native binary, all produce native & 32-bits binaries

git-svn-id: https://lz4.googlecode.com/svn/trunk@70 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoChanged Makefile default setting to generate only native binary.
yann.collet.73@gmail.com [Wed, 18 Jul 2012 19:46:57 +0000 (19:46 +0000)]
Changed Makefile default setting to generate only native binary.
The 32-bits version can still be generated (on 64-bits systems) using :
make lz4demo32

git-svn-id: https://lz4.googlecode.com/svn/trunk@69 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agogit-svn-id: https://lz4.googlecode.com/svn/trunk@68 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
yann.collet.73@gmail.com [Sat, 16 Jun 2012 00:04:09 +0000 (00:04 +0000)]
git-svn-id: https://lz4.googlecode.com/svn/trunk@68 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoUpdate CMake file to handle lz4hc. Thanks to Mark Wotton for notification and correction
yann.collet.73@gmail.com [Fri, 8 Jun 2012 09:36:33 +0000 (09:36 +0000)]
Update CMake file to handle lz4hc. Thanks to Mark Wotton for notification and correction

git-svn-id: https://lz4.googlecode.com/svn/trunk@67 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoAdded : LZ4 HC : Now integrated into main trunk.
yann.collet.73@gmail.com [Sun, 13 May 2012 17:59:10 +0000 (17:59 +0000)]
Added : LZ4 HC : Now integrated into main trunk.
LZ4_HC license moved to BSD

git-svn-id: https://lz4.googlecode.com/svn/trunk@66 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoAdded : LZ4Demo : can handle appended compressed streams.
yann.collet.73@gmail.com [Sat, 12 May 2012 19:14:43 +0000 (19:14 +0000)]
Added : LZ4Demo : can handle appended compressed streams.

git-svn-id: https://lz4.googlecode.com/svn/trunk@65 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agominor : Force Software-bit-count for WinCE environment under Visual. Thanks Bayang...
yann.collet.73@gmail.com [Wed, 9 May 2012 23:49:41 +0000 (23:49 +0000)]
minor : Force Software-bit-count for WinCE environment under Visual. Thanks Bayang for Reporting.

git-svn-id: https://lz4.googlecode.com/svn/trunk@64 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoCorrected : linking stage of Visual 2005 in Debug mode (issue 16)
yann.collet.73@gmail.com [Mon, 7 May 2012 23:10:02 +0000 (23:10 +0000)]
Corrected : linking stage of Visual 2005 in Debug mode (issue 16)
Minor changes in comments

git-svn-id: https://lz4.googlecode.com/svn/trunk@63 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoAdded : cmake configuration file, from Dmitry Cherepanov
yann.collet.73@gmail.com [Sun, 8 Apr 2012 15:18:12 +0000 (15:18 +0000)]
Added : cmake configuration file, from Dmitry Cherepanov

git-svn-id: https://lz4.googlecode.com/svn/trunk@62 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoCorrected : minor : changed a macro name to avoid duplicate within NetBSD. Thanks...
yann.collet.73@gmail.com [Tue, 3 Apr 2012 19:34:15 +0000 (19:34 +0000)]
Corrected : minor : changed a macro name to avoid duplicate within NetBSD. Thanks Gray for reporting (Issue 15)

git-svn-id: https://lz4.googlecode.com/svn/trunk@61 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoAdded : lz4demo : software swap32 backend for compilers which do not support hardware...
yann.collet.73@gmail.com [Fri, 16 Mar 2012 19:50:58 +0000 (19:50 +0000)]
Added : lz4demo : software swap32 backend for compilers which do not support hardware ones. Thanks Dmitry Cherepanov for contribution

git-svn-id: https://lz4.googlecode.com/svn/trunk@60 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agominor code refactoring, mostly around __builtin_expect
yann.collet.73@gmail.com [Fri, 9 Mar 2012 21:46:59 +0000 (21:46 +0000)]
minor code refactoring, mostly around __builtin_expect

git-svn-id: https://lz4.googlecode.com/svn/trunk@59 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoSmall speed improvement (compression & decompression), Thanks Maciej Adamczyk for...
yann.collet.73@gmail.com [Thu, 1 Mar 2012 15:19:08 +0000 (15:19 +0000)]
Small speed improvement (compression & decompression), Thanks Maciej Adamczyk for suggestion
Fixed : LZ4_uncompress_unknownOutputSize(), now protected against a malicious attack type, where a crafted input deliberately attempts to make it read outside of input buffer. Thanks Steinar H. Gunderson for report.

git-svn-id: https://lz4.googlecode.com/svn/trunk@58 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoAdded : format description file
yann.collet.73@gmail.com [Sat, 25 Feb 2012 19:13:16 +0000 (19:13 +0000)]
Added : format description file
Added : new tuning parameter : LZ4_COMPRESSMIN. Thanks to Maciej Adamczyk for suggestion.
changed : macro for bswap16, in order to help GCC intrinsic detection. Thank to Erik Andersen for suggestion.

git-svn-id: https://lz4.googlecode.com/svn/trunk@57 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoCorrected : default to Software Bit Count for GCC earlier than 3.4. Thanks to Gray.
yann.collet.73@gmail.com [Mon, 20 Feb 2012 20:53:49 +0000 (20:53 +0000)]
Corrected : default to Software Bit Count for GCC earlier than 3.4. Thanks to Gray.
Corrected : ARM compilation under Visual Studio : now generates cautious code, like GCC, to ensure compatibility with strict-align CPUs. Thanks to Joe WoodBury.
Minor : bench.c : Hash verification changed to MurmurHash3A
Minor : bench.c : selectable block size

git-svn-id: https://lz4.googlecode.com/svn/trunk@56 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoAdded : LZ4_compressBound() function
yann.collet.73@gmail.com [Thu, 16 Feb 2012 18:39:50 +0000 (18:39 +0000)]
Added : LZ4_compressBound() function
corrected : bench.c now correctly detects file size on a wider ranger of compilers; thanks to Erik Andersen
minor : removed warnings on undefined (-Wundef on gcc), thanks David Sterba for suggestion

git-svn-id: https://lz4.googlecode.com/svn/trunk@55 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoMinor comments refactoring, for better clarity
yann.collet.73@gmail.com [Mon, 6 Feb 2012 21:21:48 +0000 (21:21 +0000)]
Minor comments refactoring, for better clarity

git-svn-id: https://lz4.googlecode.com/svn/trunk@54 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agominor interface modification : source pointers are now (const char*)
yann.collet.73@gmail.com [Wed, 1 Feb 2012 20:16:10 +0000 (20:16 +0000)]
minor interface modification : source pointers are now (const char*)

git-svn-id: https://lz4.googlecode.com/svn/trunk@53 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoBetter detection of Big-Endian and PowerPC CPU
yann.collet.73@gmail.com [Wed, 1 Feb 2012 04:19:38 +0000 (04:19 +0000)]
Better detection of Big-Endian and PowerPC CPU
LZ4Demo : correction : produces compatible streams on both big-endian and little-endian systems

git-svn-id: https://lz4.googlecode.com/svn/trunk@52 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoCorrected a bug in the decoder in 64-bit mode
yann.collet.73@gmail.com [Mon, 16 Jan 2012 22:26:03 +0000 (22:26 +0000)]
Corrected a bug in the decoder in 64-bit mode

git-svn-id: https://lz4.googlecode.com/svn/trunk@51 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoImproved compression speed for 64-bit CPUs
yann.collet.73@gmail.com [Sat, 14 Jan 2012 17:17:12 +0000 (17:17 +0000)]
Improved compression speed for 64-bit CPUs

git-svn-id: https://lz4.googlecode.com/svn/trunk@50 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoImproved compression speed for 64-bit CPU
yann.collet.73@gmail.com [Fri, 13 Jan 2012 19:44:18 +0000 (19:44 +0000)]
Improved compression speed for 64-bit CPU

git-svn-id: https://lz4.googlecode.com/svn/trunk@49 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoImproved compression speed for big-endian CPU
yann.collet.73@gmail.com [Tue, 10 Jan 2012 20:03:01 +0000 (20:03 +0000)]
Improved compression speed for big-endian CPU

git-svn-id: https://lz4.googlecode.com/svn/trunk@48 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoDecompression speed improved in 64-bit mode
yann.collet.73@gmail.com [Mon, 9 Jan 2012 23:21:05 +0000 (23:21 +0000)]
Decompression speed improved in 64-bit mode
Decoding functions are now also immune to out-of-buffer read errors (note : they were already protected against malicious out-of-buffer write attacks)

git-svn-id: https://lz4.googlecode.com/svn/trunk@47 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoAdded : benchmark function within command-line utility
yann.collet.73@gmail.com [Sun, 8 Jan 2012 02:45:32 +0000 (02:45 +0000)]
Added : benchmark function within command-line utility

git-svn-id: https://lz4.googlecode.com/svn/trunk@46 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoImproved compression and decompression speed on 64-bits CPU
yann.collet.73@gmail.com [Sat, 7 Jan 2012 20:26:15 +0000 (20:26 +0000)]
Improved compression and decompression speed on 64-bits CPU

git-svn-id: https://lz4.googlecode.com/svn/trunk@45 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoImproved compression speed. Thanks to David Sterba for suggestion.
yann.collet.73@gmail.com [Wed, 4 Jan 2012 13:08:10 +0000 (13:08 +0000)]
Improved compression speed. Thanks to David Sterba for suggestion.
Compression ratio improvements in "small packet" mode (<64KB).

git-svn-id: https://lz4.googlecode.com/svn/trunk@44 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoEndianess correction
yann.collet.73@gmail.com [Fri, 16 Dec 2011 23:41:46 +0000 (23:41 +0000)]
Endianess correction

git-svn-id: https://lz4.googlecode.com/svn/trunk@43 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoEndianess correction
yann.collet.73@gmail.com [Fri, 9 Dec 2011 13:59:59 +0000 (13:59 +0000)]
Endianess correction

git-svn-id: https://lz4.googlecode.com/svn/trunk@42 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoSlightly improved compression speed
yann.collet.73@gmail.com [Mon, 21 Nov 2011 23:56:21 +0000 (23:56 +0000)]
Slightly improved compression speed

git-svn-id: https://lz4.googlecode.com/svn/trunk@41 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoBetter compliance with C99 and non-C99 compilators
yann.collet.73@gmail.com [Sat, 19 Nov 2011 21:38:27 +0000 (21:38 +0000)]
Better compliance with C99 and non-C99 compilators

git-svn-id: https://lz4.googlecode.com/svn/trunk@40 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

12 years agoModified makefile to specify C99 support to compiler (GCC)
yann.collet.73@gmail.com [Thu, 17 Nov 2011 23:07:28 +0000 (23:07 +0000)]
Modified makefile to specify C99 support to compiler (GCC)
Slightly improved compression speed in small packet mode

git-svn-id: https://lz4.googlecode.com/svn/trunk@39 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoSlightly improved decoding speed under GCC compilation
yann.collet.73@gmail.com [Tue, 15 Nov 2011 22:06:33 +0000 (22:06 +0000)]
Slightly improved decoding speed under GCC compilation

git-svn-id: https://lz4.googlecode.com/svn/trunk@38 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoCorrected a bug in LZ4_uncompress_unknownOutputSize(), which reported incorrect decod...
yann.collet.73@gmail.com [Wed, 26 Oct 2011 20:15:33 +0000 (20:15 +0000)]
Corrected a bug in LZ4_uncompress_unknownOutputSize(), which reported incorrect decodedSize when maxOutputSize=decodedSize. Thanks to Clayton Stangeland for report and solution.

git-svn-id: https://lz4.googlecode.com/svn/trunk@37 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agocode refactoring
yann.collet.73@gmail.com [Thu, 6 Oct 2011 11:24:04 +0000 (11:24 +0000)]
code refactoring

git-svn-id: https://lz4.googlecode.com/svn/trunk@36 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years ago- Improved compression ratio
yann.collet.73@gmail.com [Thu, 29 Sep 2011 20:28:37 +0000 (20:28 +0000)]
- Improved compression ratio
- Added special mode for small packet (<=64KB) which improves both compression and speed : LZ4_compress64kCtx()

git-svn-id: https://lz4.googlecode.com/svn/trunk@35 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoLZ4Demo : corrected a bug in 64 bits mode
yann.collet.73@gmail.com [Tue, 27 Sep 2011 20:47:20 +0000 (20:47 +0000)]
LZ4Demo : corrected a bug in 64 bits mode

git-svn-id: https://lz4.googlecode.com/svn/trunk@34 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoNew : ARM Validated code, thanks to Vlad Grachov.
yann.collet.73@gmail.com [Tue, 27 Sep 2011 11:59:58 +0000 (11:59 +0000)]
New : ARM Validated code, thanks to Vlad Grachov.
LZ4Demo : compress/decompress output time

git-svn-id: https://lz4.googlecode.com/svn/trunk@33 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoModified a few comments
yann.collet.73@gmail.com [Mon, 26 Sep 2011 21:15:24 +0000 (21:15 +0000)]
Modified a few comments

git-svn-id: https://lz4.googlecode.com/svn/trunk@32 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoupdated LZ4_uncompress_unknownOutputSize()
yann.collet.73@gmail.com [Mon, 26 Sep 2011 21:04:03 +0000 (21:04 +0000)]
updated LZ4_uncompress_unknownOutputSize()

git-svn-id: https://lz4.googlecode.com/svn/trunk@31 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agorenamed : main.c into lz4demo.c
yann.collet.73@gmail.com [Sun, 25 Sep 2011 22:47:31 +0000 (22:47 +0000)]
renamed : main.c into lz4demo.c
changed Makefile accordingly

git-svn-id: https://lz4.googlecode.com/svn/trunk@30 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoCLI : added test mode
yann.collet.73@gmail.com [Sun, 25 Sep 2011 21:34:35 +0000 (21:34 +0000)]
CLI : added test mode
CLI : corrected writing to NULL within Linux
Minor : several comments were updated

git-svn-id: https://lz4.googlecode.com/svn/trunk@29 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoCLI : Added : capability to compress/decompress to NULL (useful for testings)
yann.collet.73@gmail.com [Sun, 25 Sep 2011 20:11:05 +0000 (20:11 +0000)]
CLI : Added : capability to compress/decompress to NULL (useful for testings)
Corrected small bug into LZ4_uncompress(). Update is recommended.

git-svn-id: https://lz4.googlecode.com/svn/trunk@28 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoSmall compression speed improvement
yann.collet.73@gmail.com [Fri, 23 Sep 2011 22:27:08 +0000 (22:27 +0000)]
Small compression speed improvement
Decoding speed improvement

git-svn-id: https://lz4.googlecode.com/svn/trunk@27 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoCorrected issue 3 in compression function. Update is recommended.
yann.collet.73@gmail.com [Thu, 22 Sep 2011 13:11:17 +0000 (13:11 +0000)]
Corrected issue 3 in compression function. Update is recommended.

git-svn-id: https://lz4.googlecode.com/svn/trunk@26 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agominor code refactoring
yann.collet.73@gmail.com [Wed, 21 Sep 2011 11:45:00 +0000 (11:45 +0000)]
minor code refactoring
removed harmless warning under gcc for linux

git-svn-id: https://lz4.googlecode.com/svn/trunk@25 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoSmall compression speed improvement
yann.collet.73@gmail.com [Tue, 20 Sep 2011 10:01:23 +0000 (10:01 +0000)]
Small compression speed improvement

git-svn-id: https://lz4.googlecode.com/svn/trunk@24 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoremoved an harmless warning under gcc for linux
yann.collet.73@gmail.com [Sun, 18 Sep 2011 10:50:12 +0000 (10:50 +0000)]
removed an harmless warning under gcc for linux

git-svn-id: https://lz4.googlecode.com/svn/trunk@23 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agosmall compression speed improvement
yann.collet.73@gmail.com [Thu, 15 Sep 2011 21:37:09 +0000 (21:37 +0000)]
small compression speed improvement

git-svn-id: https://lz4.googlecode.com/svn/trunk@22 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoCLI : corrected : small allocation error in case of not compressible input
yann.collet.73@gmail.com [Thu, 15 Sep 2011 20:20:39 +0000 (20:20 +0000)]
CLI : corrected : small allocation error in case of not compressible input

git-svn-id: https://lz4.googlecode.com/svn/trunk@21 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoCorrected : a bug in compression function which could make it read beyond input buffe...
yann.collet.73@gmail.com [Thu, 15 Sep 2011 19:14:57 +0000 (19:14 +0000)]
Corrected : a bug in compression function which could make it read beyond input buffer in some circumstances (issue 2).
Many thanks for the detailed bug report.

git-svn-id: https://lz4.googlecode.com/svn/trunk@20 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agosmall compression speed improvement
yann.collet.73@gmail.com [Tue, 13 Sep 2011 22:55:49 +0000 (22:55 +0000)]
small compression speed improvement

git-svn-id: https://lz4.googlecode.com/svn/trunk@19 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agosmall compression speed improvement
yann.collet.73@gmail.com [Tue, 13 Sep 2011 18:19:42 +0000 (18:19 +0000)]
small compression speed improvement

git-svn-id: https://lz4.googlecode.com/svn/trunk@18 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoUpdated : license text (main.c)
yann.collet.73@gmail.com [Tue, 13 Sep 2011 13:30:45 +0000 (13:30 +0000)]
Updated : license text (main.c)

git-svn-id: https://lz4.googlecode.com/svn/trunk@17 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoSmall compression speed improvement
yann.collet.73@gmail.com [Tue, 13 Sep 2011 12:01:11 +0000 (12:01 +0000)]
Small compression speed improvement

git-svn-id: https://lz4.googlecode.com/svn/trunk@16 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoCorrected : CLI : Pipe mode in Windows (note : was already properly working for Linux)
yann.collet.73@gmail.com [Sat, 3 Sep 2011 16:06:26 +0000 (16:06 +0000)]
Corrected : CLI : Pipe mode in Windows (note : was already properly working for Linux)

git-svn-id: https://lz4.googlecode.com/svn/trunk@15 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoCorrected a (rare) bug in compression function
yann.collet.73@gmail.com [Sat, 3 Sep 2011 12:43:13 +0000 (12:43 +0000)]
Corrected a (rare) bug in compression function

git-svn-id: https://lz4.googlecode.com/svn/trunk@14 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoLZ4Demo now supports Pipe mode (inspired by Huan Truong mod)
yann.collet.73@gmail.com [Tue, 30 Aug 2011 22:35:09 +0000 (22:35 +0000)]
LZ4Demo now supports Pipe mode (inspired by Huan Truong mod)

git-svn-id: https://lz4.googlecode.com/svn/trunk@13 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoRemoved LZ4_decode() function code.
yann.collet.73@gmail.com [Sun, 21 Aug 2011 11:42:08 +0000 (11:42 +0000)]
Removed LZ4_decode() function code.
If you need to provide "isize" instead of "osize" to the decoder, please use LZ4_uncompress_unknownOutputSize(), which is safer.

git-svn-id: https://lz4.googlecode.com/svn/trunk@12 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoImproved compression and decompression speed under GCC compiler
yann.collet.73@gmail.com [Tue, 7 Jun 2011 17:57:25 +0000 (17:57 +0000)]
Improved compression and decompression speed under GCC compiler

git-svn-id: https://lz4.googlecode.com/svn/trunk@11 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoGreatly improved compression and decompression speed, at the expense of some compress...
yann.collet.73@gmail.com [Sun, 5 Jun 2011 21:23:42 +0000 (21:23 +0000)]
Greatly improved compression and decompression speed, at the expense of some compression ratio.
Most of the change is due to a modification in the performance parameter (HASH_LOG) now set to 12, to match Intel L1 cache processors.
You can change it back to 17 to get back previous compression ratio.
AMD users are invited to try HASH_LOG = 13, since AMD L1 cache is twice larger.

git-svn-id: https://lz4.googlecode.com/svn/trunk@10 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoNew function : LZ4_uncompress : secure version which is safe against buffer overflow...
yann.collet.73@gmail.com [Sat, 4 Jun 2011 17:15:43 +0000 (17:15 +0000)]
New function : LZ4_uncompress : secure version which is safe against buffer overflow attacks
New function : LZ4_uncompress_unknownOutputSize : secure but slower version which also guess the size of data to be decoded
The demo file compression program (main.c) is updated to use these new functions
LZ4_decode is still supported but in deprecated status, due to its vulnerability to malicious buffer overflow scenario

git-svn-id: https://lz4.googlecode.com/svn/trunk@9 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoCorrected : demo program : "/" no longer a valid option trigger, in order to allow...
yann.collet.73@gmail.com [Fri, 27 May 2011 12:18:22 +0000 (12:18 +0000)]
Corrected : demo program : "/" no longer a valid option trigger, in order to allow absolute path on *nix systems.
Changed (minor) : demo program : differentiate error numbers between compression et decoding routines.

git-svn-id: https://lz4.googlecode.com/svn/trunk@8 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoImproved : safe type, for linux x64 (amd64) compatibility (Thanks to Erik Andersen)
yann.collet.73@gmail.com [Wed, 25 May 2011 22:25:57 +0000 (22:25 +0000)]
Improved : safe type, for linux x64 (amd64) compatibility (Thanks to Erik Andersen)
Checked : OS X compatibility (Thanks Abhinav)
Corrected : Explicit unsigned constant for non C90-compliant C compilers (Thanks to Erik Andersen)
Changed : lowercase filename for case-sensitive file systems (like linux) (Thanks Abhinav & Erik)
Added : Makefile, for gcc (Thanks Abhinav & Erik)

git-svn-id: https://lz4.googlecode.com/svn/trunk@7 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoAdded some comments for better clarity
yann.collet.73@gmail.com [Sat, 21 May 2011 07:18:49 +0000 (07:18 +0000)]
Added some comments for better clarity

git-svn-id: https://lz4.googlecode.com/svn/trunk@6 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoCorrection : enforced typecasting for compatibility with gcc on *nix systems.
yann.collet.73@gmail.com [Fri, 20 May 2011 19:54:28 +0000 (19:54 +0000)]
Correction : enforced typecasting for compatibility with gcc on *nix systems.
Thanks to Abhinav Mehta for reporting the issue.

git-svn-id: https://lz4.googlecode.com/svn/trunk@5 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoStrict end-of-buffer checks
yann.collet.73@gmail.com [Tue, 26 Apr 2011 23:49:24 +0000 (23:49 +0000)]
Strict end-of-buffer checks
License changed to BSD

git-svn-id: https://lz4.googlecode.com/svn/trunk@4 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoAdded CPP compatibility macro
yann.collet.73@gmail.com [Mon, 25 Apr 2011 08:24:43 +0000 (08:24 +0000)]
Added CPP compatibility macro

git-svn-id: https://lz4.googlecode.com/svn/trunk@3 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agogit-svn-id: https://lz4.googlecode.com/svn/trunk@2 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
yann.collet.73@gmail.com [Sun, 24 Apr 2011 14:16:00 +0000 (14:16 +0000)]
git-svn-id: https://lz4.googlecode.com/svn/trunk@2 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

13 years agoInitial directory structure.
(no author) [Tue, 12 Apr 2011 11:36:16 +0000 (11:36 +0000)]
Initial directory structure.

git-svn-id: https://lz4.googlecode.com/svn/trunk@1 650e7d94-2a16-8b24-b05c-7c0b3f6821cd