Skip to content

[pull] master from ruby:master - #1454

Merged
pull[bot] merged 7 commits into
turkdevops:masterfrom
ruby:master
Sep 28, 2026
Merged

pull[bot] merged 7 commits into
turkdevops:masterfrom
ruby:master

Conversation

@pull

@pull pull Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

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 : )

hsbt and others added 7 commits September 28, 2026 07:03
…rmed

Dependency names were written into %q<> without escaping, and specification_version, dependency types and stub line values were interpolated as is, so a stray `\`, `>` or newline changed the structure of the generated gemspec. Dump dependency names with ruby_code and raise for values that cannot be written safely.

ruby/rubygems@07fce12110

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gem::Specification#to_ruby now escapes these values or raises for them, so such a spec fails in ensure_loadable_spec as corrupt. Call to_ruby inside its rescue so that failure is reported the same way.

ruby/rubygems@008e87008d

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LONG2FIX does not check the range, so `[1].cycle(2**30).size` returned -1073741824 on mswin. 64-bit platforms hit the same with 2**62.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The child dies with SIGSEGV in about a quarter of the Windows 11-arm check runs on master, and leaves no [BUG] report to go on. It has not shown up on x64 Windows, Linux or macOS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Windows 7 and older could not write more than about 64KB to a console in one call, so console writes and binary writes to character devices were split into 31366-unit pieces [Bug #14942]. Windows older than 8 has not been supported since [Feature #20563], and a single 1MB write succeeds on Windows 11 with conhost, with and without VT processing, and with Windows Terminal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fix in commit 11f57c6 contained a bug where the calculated index should
be `len - i` and not `len - 1`. This script reproduces the crash:

    ary = (1..100).to_a
    gen = Object.new
    gen.define_singleton_method(:rand) { |lim| 8 }
    nv = Object.new
    nv.define_singleton_method(:to_int) { ary.replace(Array.new(10) { :x }); 10 }
    p ary.sample(nv, random: gen)
@pull pull Bot locked and limited conversation to collaborators Sep 28, 2026
@pull pull Bot added the ⤵️ pull label Sep 28, 2026
@pull
pull Bot merged commit d939272 into turkdevops:master Sep 28, 2026
1 of 3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants