projects
/
platform
/
upstream
/
xz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e09e1c
)
Don't use coder->lz.stream_end_was_reached in assertions
author
Lasse Collin
<lasse.collin@tukaani.org>
Mon, 14 Jan 2008 10:09:52 +0000
(12:09 +0200)
committer
Lasse Collin
<lasse.collin@tukaani.org>
Mon, 14 Jan 2008 10:09:52 +0000
(12:09 +0200)
in match_c.h.
src/liblzma/lz/match_c.h
patch
|
blob
|
history
diff --git
a/src/liblzma/lz/match_c.h
b/src/liblzma/lz/match_c.h
index
6876638
..
e1ee6a0
100644
(file)
--- a/
src/liblzma/lz/match_c.h
+++ b/
src/liblzma/lz/match_c.h
@@
-122,7
+122,6
@@
LZMA_GET_MATCHES(LZMA_MATCH_FINDER_NAME_LOWER)
if (lz->read_pos + lz->match_max_len <= lz->write_pos) {
len_limit = lz->match_max_len;
} else {
- assert(lz->stream_end_was_reached);
len_limit = lz->write_pos - lz->read_pos;
if (len_limit < MIN_MATCH_CHECK) {
distances[0] = 0;
@@
-300,7
+299,6
@@
LZMA_SKIP(LZMA_MATCH_FINDER_NAME_LOWER)
if (lz->read_pos + lz->match_max_len <= lz->write_pos) {
len_limit = lz->match_max_len;
} else {
- assert(lz->stream_end_was_reached == true);
len_limit = lz->write_pos - lz->read_pos;
if (len_limit < MIN_MATCH_CHECK) {
move_pos();