From 2e39db661b2fef134f317bd1e1e038f1d3146624 Mon Sep 17 00:00:00 2001 From: Brian Cox Date: Tue, 14 Mar 2017 00:32:16 -0700 Subject: [PATCH] Comment out a known-problematic assert in zdeflate.cpp (though I haven't actually seen it fail in OST). Later versions of Crypto++ comment out or remove this line, so this seems reasonable to do until I can figure out how to update the whole library --- src/cryptlib/zdeflate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cryptlib/zdeflate.cpp b/src/cryptlib/zdeflate.cpp index 8a4302a..60d74e3 100644 --- a/src/cryptlib/zdeflate.cpp +++ b/src/cryptlib/zdeflate.cpp @@ -236,7 +236,7 @@ int Deflator::longest_match(IPos cur_match) if (prev_length >= good_match) { chain_length >>= 2; } - assert(strstart <= (unsigned)WINDOW_SIZE-MIN_LOOKAHEAD); + //assert(strstart <= (unsigned)WINDOW_SIZE-MIN_LOOKAHEAD); do { assert(cur_match < strstart);