From: Shivani Bhardwaj Date: Thu, 13 Jun 2024 13:05:31 +0000 (+0530) Subject: flow: add defensive check X-Git-Tag: suricata-8.0.0-beta1~1121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14cd594d3c805fd56dfa239d9c443f1235b45e2a;p=thirdparty%2Fsuricata.git flow: add defensive check --- diff --git a/src/flow-manager.c b/src/flow-manager.c index 92eeea6b4a..d5def431a1 100644 --- a/src/flow-manager.c +++ b/src/flow-manager.c @@ -566,6 +566,7 @@ static uint32_t FlowCleanupHash(void) FlowWakeupFlowRecyclerThread(); } } + DEBUG_VALIDATE_BUG_ON(local_queue.len >= 25); FlowQueueAppendPrivate(&flow_recycle_q, &local_queue); FlowWakeupFlowRecyclerThread();