-
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
Applayer plugin 5053 final v3.6 #11987
Conversation
instead of a global variable. For easier initialization with dynamic number of protocols
for expectation_proto Ticket: 5053
for alproto_names Ticket: 5053
Ticket: 5053
so that we can use safely EXCEPTION_POLICY_MAX*sizeof(x)
Ticket: 5053 delay after initialization so that StringToAppProto works
Ticket: 5053 The names are nwo dynamic
Ticket: 5053
AppProto alproto, int direction, int to_client_progress, int to_server_progress) | ||
{ | ||
size_t i = 0; | ||
while (al_protocols[i].al_proto != ALPROTO_UNKNOWN && i < ALPROTO_WITHFILES_MAX) { |
Check failure
Code scanning / CodeQL
Array offset used before range check High
range check
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #11987 +/- ##
==========================================
+ Coverage 82.77% 82.90% +0.12%
==========================================
Files 910 910
Lines 249016 258292 +9276
==========================================
+ Hits 206134 214126 +7992
- Misses 42882 44166 +1284
Flags with carried forward coverage won't be shown. Click here to find out more. |
Information: QA ran without warnings. Pipeline 23133 |
Needs rebase to take care of #11983 |
Rebased in #12052 |
Link to ticket: https://redmine.openinfosecfoundation.org/issues/
https://redmine.openinfosecfoundation.org/issues/5053
Describe changes:
#11572 final round + #11910 with more
Example plugin at https://github.com/catenacyber/suricata-zabbix