aboutsummaryrefslogtreecommitdiffstats
path: root/internal
diff options
context:
space:
mode:
authorJean byroot Boussier <jean.boussier+github@shopify.com>2023-10-05 09:43:59 +0200
committergit <svn-admin@ruby-lang.org>2023-10-05 07:44:08 +0000
commitf087f2c74c99ec5fed04896d3dc91ff76c2b16b8 (patch)
treea66f6c9ab91ac35c6e36df5e474b4a9750daf1e3 /internal
parent9d58f9382893a71d8badad605879c0120915fbee (diff)
downloadruby-f087f2c74c99ec5fed04896d3dc91ff76c2b16b8.tar.gz
[ruby/stringio] StringIO#pread: handle 0 length like IO#pread
(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 https://github.com/ruby/stringio/commit/37e9279337 Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
Diffstat (limited to 'internal')
0 files changed, 0 insertions, 0 deletions