From: Philippe Antoine Date: Tue, 18 May 2021 07:52:53 +0000 (+0200) Subject: http2: remove assertion which can be wrong X-Git-Tag: suricata-6.0.3~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb250e5512ac0ce75e4d3937b33481dadb77c7de;p=thirdparty%2Fsuricata.git http2: remove assertion which can be wrong Brotli decoder stops consuming input it it reaches the end of its input (cherry picked from commit b3c502d572693368aba277d28aefc9c9cfe685af) --- diff --git a/rust/src/http2/decompression.rs b/rust/src/http2/decompression.rs index 518a8e3201..33aefb2876 100644 --- a/rust/src/http2/decompression.rs +++ b/rust/src/http2/decompression.rs @@ -135,8 +135,8 @@ fn http2_decompress<'a>( } } } - //checks all input was consumed - debug_validate_bug_on!(decoder.get_mut().position() < (input.len() as u64)); + //brotli does not consume all input if it reaches some end + decoder.get_mut().set_position(0); return Ok(&output[..offset]); }