Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nemequ/liblzf.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Lehmann <schmorpforge@schmorp.de>2007-11-30 13:34:26 +0300
committerMarc Lehmann <schmorpforge@schmorp.de>2007-11-30 13:34:26 +0300
commita68a4b170af8b6dbf881224939d66b8de04621fd (patch)
tree187d5c81e3c5eeea0c11177ffdd53c915458a6a6
parent1d84629aedec811c57490b218ec878f2f2605116 (diff)
*** empty log message ***
-rw-r--r--Changes4
-rw-r--r--lzf_c.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/Changes b/Changes
index ffd5496..e799ca5 100644
--- a/Changes
+++ b/Changes
@@ -1,3 +1,7 @@
+3.1 Fri Nov 30 11:33:04 CET 2007
+ - IMPORTANT BUGFIX: a too long final literal run would corrupt data
+ in the encoder.
+
3.0 Tue Nov 13 22:13:09 CET 2007
- switched to 2-clause bsd with "GPL v2 or any later version" option.
- speed up compression by ~10-15% in common cases
diff --git a/lzf_c.c b/lzf_c.c
index 0e4d746..03e14f7 100644
--- a/lzf_c.c
+++ b/lzf_c.c
@@ -258,7 +258,7 @@ lzf_compress (const void *const in_data, unsigned int in_len,
}
}
- if (op + 2 > out_end) /* at most 2 bytes can be missing here */
+ if (op + 3 > out_end) /* at most 3 bytes can be missing here */
return 0;
while (ip < in_end)