-
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
Feature/http range/v22 #6308
Feature/http range/v22 #6308
Conversation
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
Codecov Report
@@ 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
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); |
There was a problem hiding this comment.
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)
Information: QA ran without warnings. Pipeline 3921 |
Replaced by #6312 |
#6298, addressing @catenacyber comments
suricata-verify-pr: 517