Skip to content

copy byte slices given to NewReusableReadCloser - #796

Merged
Mzack9999 merged 2 commits into
mainfrom
fix/795-reusable-reader-copy
Oct 18, 2026
Merged

Mzack9999 merged 2 commits into
mainfrom
fix/795-reusable-reader-copy

Conversation

@dogancanbakir

Copy link
Copy Markdown
Member

Fixes #795

The reader now owns a copy, so reset can no longer write into the caller's slice or another reader built from it.

@Mzack9999
Mzack9999 merged commit d159861 into main Oct 18, 2026
7 checks passed
@Mzack9999
Mzack9999 deleted the fix/795-reusable-reader-copy branch October 18, 2026 13:58
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.

NewReusableReadCloser shares the caller's byte slice

2 participants