mirror of
https://github.com/ruby/ruby.git
synced 2025-08-26 14:34:39 +02:00
![]() (https://github.com/ruby/stringio/pull/67)
Fix: https://github.com/ruby/stringio/issues/66
If length is 0, IO#pread don't even try to read the IO, it simply return
the buffer untouched if there is one or a new empty buffer otherwise.
It also doesn't validate the offset when length is 0.
cc @jdelStrother @kou
|
||
---|---|---|
.. | ||
test_ractor.rb | ||
test_stringio.rb |