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

Feature/http range/v22 #6308

Closed
wants to merge 8 commits into from

Conversation

victorjulien
Copy link
Member

#6298, addressing @catenacyber comments

suricata-verify-pr: 517

victorjulien and others added 8 commits August 24, 2021 10:20
Compares two buffers with their two sizes
adds a container, ie a thread safe hash table whose
key is the filename

keep a tree of unordered ranges, up to a memcap limit

adds HTPFileOpenWithRange to handle like HTPFileOpen
if there is a range : open 2 files, one for the whole reassembled,
and one only for the current range
Simplify locking by using the THashData lock instead of a separate
range lock.

Avoid size_t in function arguments.

Clean up file handling functions.

Implement handling of alloc errors.

Rename yaml entry to byterange

Unify public api naming
@victorjulien victorjulien requested a review from a team as a code owner August 24, 2021 08:44
@codecov
Copy link

codecov bot commented Aug 24, 2021

Codecov Report

Merging #6308 (9680650) into master (7551247) will increase coverage by 0.00%.
The diff coverage is 69.30%.

@@           Coverage Diff            @@
##           master    #6308    +/-   ##
========================================
  Coverage   76.95%   76.95%            
========================================
  Files         611      612     +1     
  Lines      185955   186362   +407     
========================================
+ Hits       143102   143419   +317     
- Misses      42853    42943    +90     
Flag Coverage Δ
fuzzcorpus 52.84% <44.52%> (-0.02%) ⬇️
suricata-verify 51.24% <72.95%> (+0.12%) ⬆️
unittests 63.01% <3.64%> (-0.12%) ⬇️

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

if (HttpRangeAppendData(c, data, data_len) < 0) {
SCLogDebug("Failed to append data");
}
DEBUG_VALIDATE_BUG_ON(SC_ATOMIC_GET(c->container->hdata->use_cnt) > (uint32_t)INT_MAX);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This DEBUG_VALIDATE_BUG_ON still feels redundant as #6298 (comment)

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 3921

@catenacyber
Copy link
Contributor

Replaced by #6312

@victorjulien victorjulien deleted the feature/http-range/v22 branch February 24, 2022 14:22
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