Skip to content

Applayer plugin 5053 v2.5#11429

Closed
catenacyber wants to merge 4 commits intoOISF:masterfrom
catenacyber:applayer-plugin-5053-v2.5
Closed

Applayer plugin 5053 v2.5#11429
catenacyber wants to merge 4 commits intoOISF:masterfrom
catenacyber:applayer-plugin-5053-v2.5

Conversation

@catenacyber
Copy link
Contributor

Link to ticket: https://redmine.openinfosecfoundation.org/issues/
Preliminary work for https://redmine.openinfosecfoundation.org/issues/5053

Describe changes:

  • get ready to use dynamic number of app-layer protos for some global arrays : run modes and output

Small PR good in itself.

#11373 next round
Based on #11426 with review taken into account

Still more work to do : I guess stack allocated arrays are fine, but the global variables cf git grep '\[ALPROTO_MAX' in

  • app-layer-detect-proto.c
  • app-layer-frames.c
  • app-layer-parser.c
  • app-layer-protos.c
  • app-layer.c
    need to be allocated and freed, with taking care of the initialization order, so that we know ALPROTO_MAX final value...

THashInitConfig may not allocate array and increase memuse.
Such a failure leads to THashShutdown which should not decrease
the memuse.

Ticket: 7135
@codecov
Copy link

codecov bot commented Jul 4, 2024

Codecov Report

Attention: Patch coverage is 92.15686% with 4 lines in your changes missing coverage. Please review.

Project coverage is 82.27%. Comparing base (a7af371) to head (f5075b6).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11429      +/-   ##
==========================================
- Coverage   82.44%   82.27%   -0.17%     
==========================================
  Files         938      938              
  Lines      248086   248117      +31     
==========================================
- Hits       204534   204139     -395     
- Misses      43552    43978     +426     
Flag Coverage Δ
fuzzcorpus 60.11% <82.35%> (+<0.01%) ⬆️
livemode 18.74% <86.27%> (+0.02%) ⬆️
pcap ?
suricata-verify 61.42% <92.15%> (+<0.01%) ⬆️
unittests 59.44% <72.54%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 21377

@victorjulien
Copy link
Member

@catenacyber
Copy link
Contributor Author

Indeed, I need to reproduce locally to understand why the initialization/clean is wrong here...

@catenacyber
Copy link
Contributor Author

Continued in #11473

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