Skip to content

fix: reject premature EOF in file request bodies#871

Merged
ryanfowler merged 1 commit into
mainfrom
fix/multipart-premature-eof
Jul 14, 2026
Merged

fix: reject premature EOF in file request bodies#871
ryanfowler merged 1 commit into
mainfrom
fix/multipart-premature-eof

Conversation

@ryanfowler

Copy link
Copy Markdown
Owner

Summary

  • reject short multipart file reads instead of emitting undersized bodies
  • make multipart streams terminal after file open or read errors
  • enforce captured lengths for ordinary file request bodies and signing/materialization paths
  • add truncation and synthetic short-reader coverage

Validation

  • cargo fmt --check
  • cargo clippy --locked --all-targets --all-features -- -D warnings
  • cargo test --locked --all-features --lib --bins (866 passed)

Require multipart and ordinary file body readers to produce their captured lengths. Make streaming readers terminal after I/O failures and cover truncation and short-reader cases.
@ryanfowler ryanfowler merged commit ebef2f5 into main Jul 14, 2026
4 checks passed
@ryanfowler ryanfowler deleted the fix/multipart-premature-eof branch July 14, 2026 13:39
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.

1 participant