Commit Graph

130 Commits

Author SHA1 Message Date
yann.collet.73@gmail.com
c5493d8721 renamed : main.c into lz4demo.c
changed Makefile accordingly

git-svn-id: https://lz4.googlecode.com/svn/trunk@30 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
2011-09-25 22:47:31 +00:00
yann.collet.73@gmail.com
420248cff4 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
2011-09-25 21:34:35 +00:00
yann.collet.73@gmail.com
dab6b9d3dc 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
2011-09-25 20:11:05 +00:00
yann.collet.73@gmail.com
e1ae3a0b95 Small compression speed improvement
Decoding speed improvement

git-svn-id: https://lz4.googlecode.com/svn/trunk@27 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
2011-09-23 22:27:08 +00:00
yann.collet.73@gmail.com
3071281340 Corrected issue 3 in compression function. Update is recommended.
git-svn-id: https://lz4.googlecode.com/svn/trunk@26 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
2011-09-22 13:11:17 +00:00
yann.collet.73@gmail.com
90bd4616ca 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
2011-09-21 11:45:00 +00:00
yann.collet.73@gmail.com
d9bf974023 Small compression speed improvement
git-svn-id: https://lz4.googlecode.com/svn/trunk@24 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
2011-09-20 10:01:23 +00:00
yann.collet.73@gmail.com
babbc0f494 removed an harmless warning under gcc for linux
git-svn-id: https://lz4.googlecode.com/svn/trunk@23 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
2011-09-18 10:50:12 +00:00
yann.collet.73@gmail.com
e8d1e99112 small compression speed improvement
git-svn-id: https://lz4.googlecode.com/svn/trunk@22 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
2011-09-15 21:37:09 +00:00
yann.collet.73@gmail.com
e154e125fc 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
2011-09-15 20:20:39 +00:00
yann.collet.73@gmail.com
d5a574c351 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
2011-09-15 19:14:57 +00:00
yann.collet.73@gmail.com
15d69c39eb small compression speed improvement
git-svn-id: https://lz4.googlecode.com/svn/trunk@19 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
2011-09-13 22:55:49 +00:00
yann.collet.73@gmail.com
86a59c7a82 small compression speed improvement
git-svn-id: https://lz4.googlecode.com/svn/trunk@18 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
2011-09-13 18:19:42 +00:00
yann.collet.73@gmail.com
7c6229fb3d Updated : license text (main.c)
git-svn-id: https://lz4.googlecode.com/svn/trunk@17 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
2011-09-13 13:30:45 +00:00
yann.collet.73@gmail.com
32f4bab6fc Small compression speed improvement
git-svn-id: https://lz4.googlecode.com/svn/trunk@16 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
2011-09-13 12:01:11 +00:00
yann.collet.73@gmail.com
84bfd32c9c 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
2011-09-03 16:06:26 +00:00
yann.collet.73@gmail.com
558c03a1af Corrected a (rare) bug in compression function
git-svn-id: https://lz4.googlecode.com/svn/trunk@14 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
2011-09-03 12:43:13 +00:00
yann.collet.73@gmail.com
3a6d9640fb 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
2011-08-30 22:35:09 +00:00
yann.collet.73@gmail.com
8860e61b4f 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
2011-08-21 11:42:08 +00:00
yann.collet.73@gmail.com
a201020317 Improved compression and decompression speed under GCC compiler
git-svn-id: https://lz4.googlecode.com/svn/trunk@11 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
2011-06-07 17:57:25 +00:00
yann.collet.73@gmail.com
075bf1349b 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
2011-06-05 21:23:42 +00:00
yann.collet.73@gmail.com
6b798d5e40 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
2011-06-04 17:15:43 +00:00
yann.collet.73@gmail.com
0121f47e00 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
2011-05-27 12:18:22 +00:00
yann.collet.73@gmail.com
ca8d6c21e5 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
2011-05-25 22:25:57 +00:00
yann.collet.73@gmail.com
06abb77c00 Added some comments for better clarity
git-svn-id: https://lz4.googlecode.com/svn/trunk@6 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
2011-05-21 07:18:49 +00:00
yann.collet.73@gmail.com
f03375468c 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
2011-05-20 19:54:28 +00:00
yann.collet.73@gmail.com
cfcae8a50f Strict end-of-buffer checks
License changed to BSD

git-svn-id: https://lz4.googlecode.com/svn/trunk@4 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
2011-04-26 23:49:24 +00:00
yann.collet.73@gmail.com
1920856128 Added CPP compatibility macro
git-svn-id: https://lz4.googlecode.com/svn/trunk@3 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
2011-04-25 08:24:43 +00:00
yann.collet.73@gmail.com
3610461005 git-svn-id: https://lz4.googlecode.com/svn/trunk@2 650e7d94-2a16-8b24-b05c-7c0b3f6821cd 2011-04-24 14:16:00 +00:00
(no author)
409f243690 Initial directory structure.
git-svn-id: https://lz4.googlecode.com/svn/trunk@1 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
2011-04-12 11:36:16 +00:00