From 1731805967edf5d31448db2ae43cf72c6cf46c11 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Mon, 6 Jul 2026 17:49:32 +0200 Subject: [PATCH] doh2: clear the buffer after processing it Ticket: 8725 So that multiple HTTP2 DATA frames with EndOfStream flag set, do not make the buffer grow, while processing it each time, resulting in quadratic complexity --- rust/src/http2/http2.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/src/http2/http2.rs b/rust/src/http2/http2.rs index 4667a134dc..5b0c3e1532 100644 --- a/rust/src/http2/http2.rs +++ b/rust/src/http2/http2.rs @@ -484,6 +484,7 @@ impl HTTP2Transaction { SCAppLayerForceProtocolChange(flow, ALPROTO_DOH2); } } + doh.data_buf[dir.index()].clear(); } } }