From 952ff7fbb3d1d4e9f13a4124016cb805c3a06a51 Mon Sep 17 00:00:00 2001 From: Samuel Williams 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(-) (limited to 'io.c') 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) 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