[pull] master from ruby:master - #1453
Merged
Merged
Conversation
Treat encoding coercion, `to_io`, and scheduler capability checks as callouts that can change the buffer before byte access begins. - Copy `get_string` bytes through the existing locked-for-reading helper after encoding coercion, without retaining metadata pointers across it. - Obtain the writable buffer after `to_io` conversion in `read` and `pread`. - Reacquire and validate the buffer before native I/O fallback when the scheduler does not handle `read`, `write`, `pread`, or `pwrite`. Add regression coverage using the existing buffer and slice APIs. Scheduler probes shrink a slice without freeing its underlying storage, making stale length handling observable without accessing released memory. Also cover encoding callbacks and frozen-state changes during I/O coercion. This is an independent correctness extraction from #18911. It introduces no new classes, slice representation, or public API.
…me origin Gem::RemoteFetcher and the Bundler downloader resent the header on every redirect, including one to another origin. It carries the source URI that Bundler replaces with a mirror, credentials included, so it is meant for the mirror's origin only, and RFC 9110 (Section 15.4) asks a client following a redirect to consider removing such fields. ruby/rubygems@f52afd1b92 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )