Add pattern_end_offset to signature_state

Add pattern_end_offset to signature_state

Update init-bare.zeek

Update RuleMatcher.cc

Update RuleMatcher.h

Update init-bare.zeek

clang format

clang format

clang format

Using Match Offsets List

Temp commit
This commit is contained in:
ronny8360988 2024-09-01 15:51:20 +03:00 committed by Arne Welzel
parent ab4d8744b6
commit 5859e23198
3 changed files with 16 additions and 6 deletions

View file

@ -173,6 +173,7 @@ private:
};
using matcher_list = PList<Matcher>;
using match_offset_list = std::vector<MatchPos>;
analyzer::Analyzer* analyzer;
RuleEndpointState* opposite;
@ -182,10 +183,12 @@ private:
rule_hdr_test_list hdr_tests;
// The follow tracks which rules for which all patterns have matched,
// and in a parallel list the (first instance of the) corresponding
// matched text.
// in a parallel list the (first instance of the) corresponding
// matched text, and in another parallel list the offset of the
// end of the last pattern match.
rule_list matched_by_patterns;
bstr_list matched_text;
match_offset_list match_offsets;
int payload_size;
bool is_orig;