]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
http2: remove assertion which can be wrong
authorPhilippe Antoine <contact@catenacyber.fr>
Tue, 18 May 2021 07:52:53 +0000 (09:52 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 7 Jun 2021 08:58:05 +0000 (10:58 +0200)
Brotli decoder stops consuming input it it reaches the
end of its input

(cherry picked from commit b3c502d572693368aba277d28aefc9c9cfe685af)

rust/src/http2/decompression.rs

index 518a8e320170b7b7395eef211d44c7ec2b71d204..33aefb2876130f447df720854c92dc035b20a348 100644 (file)
@@ -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]);
 }