From 9547e734a00ddb64c851fa3f116e4f9e7d763ea7 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Mon, 14 Jan 2008 12:09:52 +0200 Subject: [PATCH] Don't use coder->lz.stream_end_was_reached in assertions in match_c.h. --- src/liblzma/lz/match_c.h | 2 -- 1 file changed, 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();