git-svn: trunk@3374
Tomasz Kojm authored on 2007/12/07 00:01:10... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Thu Dec 6 15:15:45 CET 2007 (tk) |
|
2 |
+--------------------------------- |
|
3 |
+ * libclamav/mspack.c: fix off-by-one error in LZX_READ_HUFFSYM() (bb#663) |
|
4 |
+ |
|
1 | 5 |
Thu Dec 6 15:11:25 CET 2007 (tk) |
2 | 6 |
--------------------------------- |
3 | 7 |
* libclamav/mbox.c: some attachments were not being scanned (NJH, bb#660) |
... | ... |
@@ -734,7 +734,7 @@ void mszip_free(struct mszip_stream *zip) { |
734 | 734 |
|
735 | 735 |
#define LZX_ENSURE_BITS(nbits) \ |
736 | 736 |
while (bits_left < (nbits)) { \ |
737 |
- if (i_ptr >= i_end) { \ |
|
737 |
+ if (i_ptr + 1 >= i_end) { \ |
|
738 | 738 |
if (lzx_read_input(lzx)) return lzx->error; \ |
739 | 739 |
i_ptr = lzx->i_ptr; \ |
740 | 740 |
i_end = lzx->i_end; \ |