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 18 368 386

Projects

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

Activity

Today

06:43 AM Ruby Bug #22632 (Closed): parse.y magic encoding comments accept NUL bytes
Applied in changeset commit:git|04c53049956263d2f8987aa4a7a96ee25d5824b6.
----------
Pass the length of a magic comment value to its handler
The value was passed as a C string, so the part after NUL was ignored,
e.g. "binary\0ignored" ...
mame (Yusuke Endoh)
06:43 AM Ruby Revision 04c53049 (git): Pass the length of a magic comment value to its handler
The value was passed as a C string, so the part after NUL was ignored,
e.g. "binary\0ignored" was taken as "binary". Pass the length as well
and compare the whole value, so such a value is treated as invalid.
[Bug #22632]
Co-Authored-B...
mame (Yusuke Endoh)
03:59 AM Ruby Revision 84207b41 (git): [ruby/zlib] Raise InProgressError from other methods while the stream is running
Only #inflate, #deflate and the methods that run the stream checked
ZSTREAM_IN_PROGRESS. The others could change the zlib state or the
output buffer while another thread was running zlib without the GVL,
or from the block of #inflate/#d...
mame (Yusuke Endoh)
03:59 AM Ruby Revision d745a74b (git): [ruby/zlib] Raise InProgressError from GzipFile methods while the stream is running
GzipFile methods did not check ZSTREAM_IN_PROGRESS either, so another
thread could close the stream or replace its buffer while zlib was
running without the GVL.
gz = Zlib::GzipWriter.new(StringIO.new)
q = Thread::Queue.new
Thread...
mame (Yusuke Endoh)
02:49 AM Ruby Revision 7bd3830e (git): [ruby/resolv] Check the length in MessageEncoder#put_length16
put_length16 wrote the length modulo 65536 when the data was longer
than 65535 bytes. Raise ArgumentError instead, as put_string does for
a character-string longer than 255 bytes.
Reported-by: femi oyesanya <oyesanyf@gmail.com>
https:/...
mame (Yusuke Endoh)
02:49 AM Ruby Revision f2a16df0 (git): [ruby/resolv] Check the record counts and the message length for TCP
Message#encode wrote the number of records in each section modulo
65536, and Requester::TCP wrote the message length modulo 65536. Raise
ArgumentError when they do not fit in 16 bits.
https://github.com/ruby/resolv/commit/1c0b7a494e
Co...
mame (Yusuke Endoh)

12/01/2026

03:29 PM Ruby Revision 65b46484 (git): Check chilled strings before reading the length in rb_str_modify_expand
The warning for a chilled string can call Warning.warn, which may change
the encoding of the string. Read the terminator length and the length
after the check, and do the same in rb_str_set_len.
Reported-by: Vincent Ng (https://hackeron...
mame (Yusuke Endoh)
03:29 PM Ruby Revision 21051bcd (git): Check chilled strings before computing the capacity in String#initialize
The warning for a chilled string can call Warning.warn, which may change
the encoding of the string. Compute the terminator length after the check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mame (Yusuke Endoh)
06:38 AM Ruby Revision 573bbc21 (git): Do not compare magic comment names containing NUL
STRNCASECMP stops at NUL, so a name containing NUL such as "coding\0x"
was taken as matching "coding" up to the NUL, and then the known name
was read beyond its end. Skip the comparison for such names.
Reported-by: JINHWAN YOON (https:/...
mame (Yusuke Endoh)
06:23 AM Ruby Bug #22632: parse.y magic encoding comments accept NUL bytes
I opened a PR: https://github.com/ruby/ruby/pull/20336 mame (Yusuke Endoh)

Also available in: Atom