Skip to content

[curl] Reject multipart parts spanning range gaps - #23052

Open
laxmanacharya8 wants to merge 1 commit into
root-project:masterfrom
laxmanacharya8:fix-rcurl-multipart-range-gap
Open

[curl] Reject multipart parts spanning range gaps#23052
laxmanacharya8 wants to merge 1 commit into
root-project:masterfrom
laxmanacharya8:fix-rcurl-multipart-range-gap

Conversation

@laxmanacharya8

Copy link
Copy Markdown

Summary

Reject a multipart byte-range part that would continue into a non-adjacent requested range. Previously, a malformed response such as Content-Range: bytes 0-19/... could fill requests for 0-9 and 100-109, silently writing bytes 10-19 into the second buffer.

Adjacent ranges remain supported because the HTTP request preprocessor coalesces them intentionally.

Add a loopback HTTP regression test that sends the malformed multipart response and verifies that the transfer fails before the second range is written.

Testing

  • git diff --check
  • Not run locally: this workspace has no configured ROOT build tree or CMake installation.

@github-actions

Copy link
Copy Markdown

Test Results

    23 files      23 suites   3d 13h 56m 48s ⏱️
 3 857 tests  3 855 ✅  0 💤 2 ❌
78 561 runs  78 549 ✅ 10 💤 2 ❌

For more details on these failures, see this check.

Results for commit f31481d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants