From af7213f60f79d7798b4420053e53dc315c85b51a Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Thu, 6 Jun 2024 16:32:01 +0200 Subject: [PATCH] fuzz: limits the number of transactions as Suricata does --- test/fuzz/fuzz_htp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/fuzz/fuzz_htp.c b/test/fuzz/fuzz_htp.c index 37bba574..cd3514cf 100644 --- a/test/fuzz/fuzz_htp.c +++ b/test/fuzz/fuzz_htp.c @@ -159,6 +159,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { htp_config_register_response_start(cfg, HTPCallbackResponseStart); htp_config_register_response_complete(cfg, HTPCallbackResponse); htp_config_register_request_line(cfg, HTPCallbackRequestLine); + htp_config_set_max_tx(cfg, 512); connp = htp_connp_create(cfg); htp_connp_set_user_data(connp, (void *) 0x02);