Project

General

Profile

Actions

Bug #19640

closed

`IO#puts` can generate zero length iov which can cause rb_bug crash.

Added by ioquatix (Samuel Williams) over 1 year ago. Updated over 1 year ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:113482]

Description

In the fiber scheduler, IO#puts "" or IO#puts nil can generate a zero length iov which causes io_binwritev_internal to fail since the result is zero.

We need to fix IO#puts so that it does not generate zero length writes, but also we fix io_binwritev_internal to handle this case more robustly.

Fix: https://github.com/ruby/ruby/pull/7806/files

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0