aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/lz/match_c.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/liblzma/lz/match_c.h')
-rw-r--r--src/liblzma/lz/match_c.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/liblzma/lz/match_c.h b/src/liblzma/lz/match_c.h
index 68766385..e1ee6a07 100644
--- 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();