mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
Fix out of bounds read.
This commit is contained in:
parent
86602484a2
commit
952ff7fbb3
Notes:
git
2022-05-25 18:51:13 +09:00
1 changed files with 1 additions and 2 deletions
3
io.c
3
io.c
|
@ -2096,8 +2096,7 @@ rb_io_writev(VALUE io, int argc, const VALUE *argv)
|
||||||
|
|
||||||
do rb_io_write(io, *argv++); while (--argc);
|
do rb_io_write(io, *argv++); while (--argc);
|
||||||
|
|
||||||
/* unused right now */
|
return Qnil;
|
||||||
return argv[0];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return rb_funcallv(io, id_write, argc, argv);
|
return rb_funcallv(io, id_write, argc, argv);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue