diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2022-05-25 19:49:51 +1200 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2022-05-25 21:50:53 +1200 |
commit | 952ff7fbb3d1d4e9f13a4124016cb805c3a06a51 (patch) | |
tree | 2de9110bd87b71ed8cf7dc1c758f7413a2354fc4 /io.c | |
parent | 86602484a28fe345d9d164fe33d765d5e2791c58 (diff) |
Fix out of bounds read.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5940
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |