General

Profile

segiddins (Samuel Giddins)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 10 10

Activity

11/26/2026

10:26 AM Ruby Revision 81aba56d (git): [ruby/zlib] Keep the arguments of GzipReader#each_line when returning an enumerator
rb_gzreader_each created the enumerator with RETURN_ENUMERATOR(obj, 0, 0), so each_line(sep, limit) without a block iterated with the default separator and no limit.
```ruby
gz = Zlib.gzip("a,b,c\nd,e\n")
Zlib::GzipReader.new(StringIO.n...
segiddins (Samuel Giddins)
09:58 AM Ruby Revision 8becf802 (git): [ruby/zlib] Fix GzipReader#gets(limit) splitting a multibyte character at the buffer end
gzreader_charboundary finds how many bytes of the character at the limit are missing from the inflated buffer, but asked gzfile_fill for only n + missing bytes. When the buffer already held more than n bytes nothing new was read, and the... segiddins (Samuel Giddins)
09:46 AM Ruby Revision 5d684cba (git): [ruby/zlib] Raise ArgumentError for a zero limit in GzipReader#each_line and #readlines
GzipReader#gets(0) returns "" without consuming anything, as IO#gets(0) does, so each_line(0) and readlines(0) never reached the end of the stream and allocated an empty string per iteration until the process ran out of memory. IO#each_l... segiddins (Samuel Giddins)
06:30 AM Ruby Revision 3f96fa89 (git): [ruby/zlib] Do not match the line separator inside a multibyte character in GzipReader#gets
The separator was searched bytewise with memchr and memcmp, without checking that a match starts on a character boundary. In Shift_JIS the second byte of a character can be an ASCII byte such as "@", "a" or "|", so gets with such a separ... segiddins (Samuel Giddins)

11/25/2026

03:45 AM Ruby Bug #22606 (Closed): Lazy zero repeat `x{0,0}?` can match one `x`, and raises "undefined bytecode (bug)" since 4.0
Applied in changeset commit:git|524ff52b7977fa45bbb2056741f5178202461f90.
----------
[Bug #22606] Compile a repeat whose upper bound is zero to nothing
A lazy repeat with an upper bound of zero, such as x{0,0}?, was compiled
as a loop,...
segiddins (Samuel Giddins)
03:45 AM Ruby Revision 524ff52b (git): [Bug #22606] Compile a repeat whose upper bound is zero to nothing
A lazy repeat with an upper bound of zero, such as x{0,0}?, was compiled
as a loop, unlike the greedy one. It could run its body once on
backtracking, and the match cache analysis for it could fail with
"undefined bytecode (bug)".
segiddins (Samuel Giddins)

11/19/2026

07:03 AM Ruby Bug #22606 (Closed): Lazy zero repeat `x{0,0}?` can match one `x`, and raises "undefined bytecode (bug)" since 4.0
A zero repeat with the lazy modifier, `x{0,0}?`, is compiled as a loop instead of being dropped like the greedy `x{0,0}`. This has two visible effects.
### 1. The quantifier can consume one `x`
```ruby
/\Ax{0,0}?x\z/.match("xx") ...
segiddins (Samuel Giddins)

11/09/2026

03:43 AM Ruby Revision d848052e (git): [ruby/zlib] Do not raise Zlib::BufError for a repeated flush with no new input
zlib's deflate() returns Z_BUF_ERROR when it is asked to flush again without having consumed any input since the previous flush of the same or higher rank, and the binding treated every code other than Z_OK and Z_STREAM_END as fatal. Not... segiddins (Samuel Giddins)

06/13/2025

03:55 AM Ruby Revision 73532ecf (git): [rubygems/rubygems] Update bundled tls certs
By running tool/update_bundled_ca_certificates.rb
Signed-off-by: Samuel Giddins <segiddins@segiddins.me>
https://github.com/rubygems/rubygems/commit/54f5278450
segiddins (Samuel Giddins)

06/10/2025

11:48 PM Ruby Revision 7e3d271f (git): [rubygems/rubygems] Install the best matching gem for the current platform in gem install
Instead of picking essentially a random matching platform
Signed-off-by: Samuel Giddins <segiddins@segiddins.me>
https://github.com/rubygems/rubygems/commit/3727096297
segiddins (Samuel Giddins)

Also available in: Atom