analyzer: Cap analyzer violations at 1000 per analyzer instance

This commit is contained in:
Arne Welzel 2022-10-12 17:35:52 +02:00 committed by Tim Wojtulewicz
parent 557ffe7bbc
commit c58cdf407a
5 changed files with 34 additions and 0 deletions

View file

@ -2312,6 +2312,19 @@ type AnalyzerViolationInfo: record {
data: string &optional;
};
## The maximum number of analyzer violations the core generates before
## suppressing them for a given analyzer instance. A weird providing
## information about the analyzer and connection is generated once the
## limit is reached.
##
## An analyzer generating this many violations is unlikely parsing
## the right protocol or potentially buggy.
##
## See also :zeek:see:`DPD::max_violations` which controls disabling
## analyzers through script logic after a certain number of violations
## was observed.
const max_analyzer_violations = 1000 &redef;
module NFS3;