Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

detect/alert: directly increment alerts.discarded - v1 #7396

Closed
wants to merge 1 commit into from

Conversation

jufajardini
Copy link
Contributor

In the unlikely case of an AlertQueueExpand failure, we were incrementing
the discarded alerts stats in AlertQueueAppend via the Packet member in the
DetectEngineThreadCtx, which may not be initialized yet.

Link to redmine ticket:
https://redmine.openinfosecfoundation.org/issues/5353

Describe changes:

  • remove indirect incrementation of alerts.discarded

In the unlikely case of AlertQueueExpand failure, we were incrementing
the discarded alerts stats in AlertQueueAppend via the Packet member in the
DetectEngineThreadCtx, which may not be initialized yet.

Bug OISF#5353
@jufajardini jufajardini requested a review from a team as a code owner May 9, 2022 18:23
@suricata-qa
Copy link

ERROR:

ERROR: QA failed on tlpw1_files_sha256.

field test baseline %
tlpr1_stats_chk
.app_layer.error.ftp-data.parser 0 395 0.0%

Pipeline 7369

@victorjulien
Copy link
Member

Merged in #7423, thanks!

@jufajardini jufajardini deleted the bug-5353/v1 branch May 25, 2022 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants