Skip to content
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

Dcerpc incomplete 5699/v13 stats tests/2 #12276

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

inashivb
Copy link
Member

To check if the stats difference in PR #12219 is because of accepting input > 1MB

to make it available for logging.
Instead of own internal mechanism of buffering in case of fragmented
data, use AppLayerResult::incomplete API to let the AppLayer Parser take
care of it. This makes the memory use more efficient.
Remove any unneeded variables and code with the introduction of this
API.

Ticket 5699
With the introduction of AppLayerResult::incomplete API, fragmented data
is no longer handled fully in the dcerpc code. Given that these code
paths are already covered by the following s-v tests, these tests can now be
safely removed.
- dce-gap-handling
- dcerpc-dce-iface-*

Ticket 5699
- remove unneeded variables
- remove unnecessary tracking of bytes in state
- modify calculations as indicated by failing tests
as it is now covered by the suricata-verify test
dcerpc-request-http-response.
@inashivb inashivb force-pushed the dcerpc-incomplete-5699/v13-stats-tests/2 branch from a447c92 to 7a7e5c3 Compare December 13, 2024 07:53
Copy link

codecov bot commented Dec 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.20%. Comparing base (0e4faba) to head (7a7e5c3).
Report is 15 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12276      +/-   ##
==========================================
- Coverage   83.22%   83.20%   -0.02%     
==========================================
  Files         912      912              
  Lines      257311   257248      -63     
==========================================
- Hits       214154   214051     -103     
- Misses      43157    43197      +40     
Flag Coverage Δ
fuzzcorpus 61.07% <100.00%> (-0.01%) ⬇️
livemode 19.40% <0.00%> (-0.13%) ⬇️
pcap 44.40% <90.90%> (+0.03%) ⬆️
suricata-verify 62.84% <95.45%> (+<0.01%) ⬆️
unittests 59.12% <63.63%> (-0.07%) ⬇️

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

@suricata-qa
Copy link

WARNING:

field baseline test %
SURI_TLPR1_stats_chk
.app_layer.flow.dcerpc_tcp 43 109 253.49%

Pipeline 23955

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.

2 participants