-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add commandline option to simulate alert queue expand failure - v2 #7527
Conversation
For testing purposes. Meant to simulate a reallocation failure when dynamically growing the alert queue in DetectEngineThreadCtx, so we can check that Suri's behavior doesn't break under such circumstances. Task OISF#5319
be7b364
to
ccb35a7
Compare
Force pushed to fix the commit checks, as I had fixed the include typo but in the wrong commit... Sorry about that >__< |
Information: QA ran without warnings. Pipeline 7791 |
Information: QA ran without warnings. Pipeline 7793 |
@@ -27,6 +27,7 @@ | |||
#include "flow.h" | |||
#include "flow-private.h" | |||
|
|||
#include "util-exception-policy.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be guarded with ifdef DEBUG
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Following Victor's example, this wasn't there, but I think it is a good addition, indeed.
replaced by: #7622 |
Previous PR: #7403
Link to redmine ticket:
https://redmine.openinfosecfoundation.org/issues/5319
Describe changes:
--simulate-alert-queue-realloc-failure
as part of the exception utils optionssuricata-verify-pr: 850
OISF/suricata-verify#850