ruby-changes:71958
From: Samuel <ko1@a...>
Date: Wed, 25 May 2022 18:51:06 +0900 (JST)
Subject: [ruby-changes:71958] 952ff7fbb3 (master): Fix out of bounds read.
https://git.ruby-lang.org/ruby.git/commit/?id=952ff7fbb3 From 952ff7fbb3d1d4e9f13a4124016cb805c3a06a51 Mon Sep 17 00:00:00 2001 From: Samuel Williams <samuel.williams@o...> Date: Wed, 25 May 2022 19:49:51 +1200 Subject: Fix out of bounds read. --- io.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/io.c b/io.c index defdecd7d9..dab1d945f9 100644 --- a/io.c +++ b/io.c @@ -2096,8 +2096,7 @@ rb_io_writev(VALUE io, int argc, const VALUE *argv) https://github.com/ruby/ruby/blob/trunk/io.c#L2096 do rb_io_write(io, *argv++); while (--argc); - /* unused right now */ - return argv[0]; + return Qnil; } return rb_funcallv(io, id_write, argc, argv); -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/