Project

General

Profile

Actions

Bug #5457

closed

Counters are not initialized in all places.

Added by tug tugtug 2 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Target version:
Affected Versions:
Effort:
Difficulty:
Label:
Needs backport to 6.0

Description

counter_alerts_overflow and counter_alerts_suppressed are only initialized in DetectEngineThreadCtxInit in detect-engine.c, but not in DetectEngineThreadCtxInitForReload.

i.e. once suricata rules are reload, these 2 counters would become invalid and writes to incorrect structure in StatsAddUI64. In fact, if one turns on debugging, the BUG_ON should trigger in StatsAddUI64.


Subtasks 1 (0 open1 closed)

Bug #5459: Counters are not initialized in all places. (6.0.x backport)ClosedJuliana Fajardini ReichowActions

Related issues 1 (0 open1 closed)

Copied to Bug #5459: Counters are not initialized in all places. (6.0.x backport)ClosedJuliana Fajardini ReichowActions
Actions

Also available in: Atom PDF