summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2010-06-01 09:11:33 +0000
committerroot <root>2010-06-01 09:11:33 +0000
commitb40815d63b686fa625364bdfd41dbbed1fdc8449 (patch)
treef37244c02be775eff44bbb81ba7127d2549e470e
parent4a7d25b8ab74275f0d5eb91e185cd721dacda909 (diff)
*** empty log message ***
-rw-r--r--lzfP.h2
-rw-r--r--lzf_c.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lzfP.h b/lzfP.h
index ded481e..7b7feda 100644
--- a/lzfP.h
+++ b/lzfP.h
@@ -49,7 +49,7 @@
* the difference between 15 and 14 is very small
* for small blocks (and 14 is usually a bit faster).
* For a low-memory/faster configuration, use HLOG == 13;
- * For best compression, use 15 or 16 (or more, up to 23).
+ * For best compression, use 15 or 16 (or more, up to 22).
*/
#ifndef HLOG
# define HLOG 16
diff --git a/lzf_c.c b/lzf_c.c
index eb5927b..bc07084 100644
--- a/lzf_c.c
+++ b/lzf_c.c
@@ -150,7 +150,6 @@ lzf_compress (const void *const in_data, unsigned int in_len,
&& ref < ip /* the next test will actually take care of this, but this is faster */
#endif
&& (off = ip - ref - 1) < MAX_OFF
- && ip + 4 < in_end
&& ref > (u8 *)in_data
&& ref[2] == ip[2]
#if STRICT_ALIGN
@@ -218,6 +217,7 @@ lzf_compress (const void *const in_data, unsigned int in_len,
}
*op++ = off;
+
lit = 0; op++; /* start run */
ip += len + 1;