General

Profile

mame (Yusuke Endoh)

  • Login: mame
  • Email: mame@ruby-lang.org
  • Registered on: 05/28/2008
  • Last sign in: 03/16/2026

Issues

open closed Total
Assigned issues 3 151 154
Reported issues 17 359 376

Projects

Project Roles Registered on
Ruby Committer, Security team, Infrastructure team 05/28/2008

Activity

10/24/2026

08:40 PM Ruby Revision bde63b65 (git): Give a Ractor's main thread an ec serial from the new Ractor
Since ec serials became Ractor-local (4263f1d718), the root fiber of a
Ractor's main thread gets its serial from the creating Ractor, because it
is allocated there. The serial can then collide with one that the new
Ractor gives to its ow...
mame (Yusuke Endoh)
08:32 PM Ruby Bug #22471 (Closed): Thread#name= on a terminated thread may dump core
Applied in changeset commit:git|6fdd4520878eebd737d2a702c62051d46f199f89.
----------
Skip setting the native thread name of a terminated thread
The native thread of a terminated thread may have already exited, so
its pthread_t is no lo...
mame (Yusuke Endoh)
07:41 PM Ruby Bug #22471: Thread#name= on a terminated thread may dump core
https://github.com/ruby/ruby/pull/19520 mame (Yusuke Endoh)
07:32 PM Ruby Bug #22471 (Closed): Thread#name= on a terminated thread may dump core
Calling `Thread#name=` on a terminated thread calls `pthread_setname_np()` with an invalid `pthread_t`, which can cause a SEGV or rename an unrelated thread.
```ruby
ts = 100.times.map { Thread.new {} }.each(&:join)
ts.each { |t| t....
mame (Yusuke Endoh)
08:31 PM Ruby Revision 6fdd4520 (git): Skip setting the native thread name of a terminated thread
The native thread of a terminated thread may have already exited, so
its pthread_t is no longer valid. Passing it to pthread_setname_np()
could crash or rename an unrelated thread.
[Bug #22471]
Co-Authored-By: Claude Opus 5.5 <noreply@...
mame (Yusuke Endoh)
07:57 PM Ruby Revision d85ad13d (git): [ruby/zlib] Document the restrictions on the :buffer keyword of Zlib::Inflate#inflate
https://github.com/ruby/zlib/commit/09b43c5b84
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mame (Yusuke Endoh)
05:26 PM Ruby Revision 7d104f9d (git): [ruby/zlib] Fix stale next_out in Zlib::Inflate#inflate(buffer:)
When a call with buffer: left the stream in progress (it raised
Zlib::NeedDict, or the block form has more input to come), the next run
reused the next_out saved by the previous call. If the buffer had been
modified in between, it pointe...
mame (Yusuke Endoh)
05:26 PM Ruby Revision fa4615c8 (git): [ruby/zlib] Clear ZSTREAM_REUSE_BUFFER when the output buffer is detached
The flag stayed set after a call with buffer: had returned its buffer,
so an internal buffer allocated by a later Inflate#<< was treated as
user-provided and never revealed.
data = Zlib::Deflate.deflate("A" * 50000)
half = data.byte...
mame (Yusuke Endoh)
05:26 PM Ruby Revision b5cc0e49 (git): [ruby/zlib] Carry over pending output when the inflate buffer is replaced
In the block form, output not yet yielded stays in the buffer between
calls. It was silently dropped when another buffer (or none) was given
for the next call.
data = Zlib::Deflate.deflate("A" * 50000)
half = data.bytesize / 2
inf...
mame (Yusuke Endoh)
05:13 PM Ruby Revision 8074d3f4 (git): Fix integer overflow in String#[]= with a capture index of INT_MIN
rb_str_subpat_set validated a negative capture index by negating it,
which overflows for INT_MIN and bypasses the range check. The
out-of-bounds read of the match registers then crashed the process.
Rewrite the check without negation.
...
mame (Yusuke Endoh)

Also available in: Atom