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

http: complete multipart until request.body-limit #8641

Closed

Conversation

catenacyber
Copy link
Contributor

Link to redmine ticket:
https://redmine.openinfosecfoundation.org/issues/5952

  • http: complete multipart until request.body-limit

This illustrates the QA SURI_TLPW1_files_sha256 differences from #8450

#8450 is right for hash 0adad78526c1b9c35f349a2cc7014c458aa87adcb9ec86f052fd8a9a80584e39 and master is wrong because being zealous with the limit request.body_limit and taking less bytes than it can

I propose we merge this first, do the QA rebase, and then rebase #8450 to check SURI_TLPW1_files_sha256 again

Replaces #8510 with rebase and commit reword with redmine ticket reference

suricata-verify-pr: 1109
OISF/suricata-verify#1109

In the case we are truncating a multipart file because of reaching
request.body-limit, we used to not consume the whole buffer, but
keep expected_boundary_len bytes in case a new boundary begins
in these bytes.
Even if we cannot check the complete boundary, we can still check
the first bytes, as will be done in the rust version.

Ticket: OISF#5952
@codecov
Copy link

codecov bot commented Mar 28, 2023

Codecov Report

Merging #8641 (8af0b80) into master (d313b5d) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8641      +/-   ##
==========================================
- Coverage   81.94%   81.93%   -0.01%     
==========================================
  Files         968      968              
  Lines      278837   278842       +5     
==========================================
- Hits       228488   228483       -5     
- Misses      50349    50359      +10     
Flag Coverage Δ
fuzzcorpus 64.46% <100.00%> (+<0.01%) ⬆️
suricata-verify 59.68% <80.00%> (+0.01%) ⬆️
unittests 63.23% <100.00%> (+<0.01%) ⬆️

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

@suricata-qa
Copy link

Information:

ERROR: QA failed on SURI_TLPW1_files_sha256.

field baseline test %
SURI_TLPR1_stats_chk
.flow.memuse 526264696 644305944 122.43%
TREX_GENERIC_stats_chk
.capture.kernel_drops 0 34 0.00

Pipeline 12879

@victorjulien
Copy link
Member

Merged after rebase in #8648, thanks!

@catenacyber
Copy link
Contributor Author

Was SURI_TLPW1_files_sha256 updated after this merge ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants