Skip to content

fix(s3): prevent nil upload reader panic - #566

Merged
skhaz merged 1 commit into
mainfrom
fix/s3-upload-nil-reader-20260810
Aug 10, 2026
Merged

fix(s3): prevent nil upload reader panic#566
skhaz merged 1 commit into
mainfrom
fix/s3-upload-nil-reader-20260810

Conversation

@skhaz

@skhaz skhaz commented Aug 10, 2026

Copy link
Copy Markdown
Member

Bug

S3 multipart uploads could receive a nil io.Reader and panic inside the AWS SDK, bringing down the runtime.

Fix

Validate nil and typed-nil upload readers before invoking the SDK and return a stable cloudstorage error instead.

Tests

  • Added regression coverage for nil and typed-nil readers.
  • Passed make lint, the full race-enabled make test suite, and the CLI smoke test.

@skhaz
skhaz requested a review from wolfy-j August 10, 2026 18:57
@skhaz
skhaz merged commit 4da90cc into main Aug 10, 2026
3 of 4 checks passed
@skhaz
skhaz deleted the fix/s3-upload-nil-reader-20260810 branch August 10, 2026 19:02
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