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) 12 months ago. Updated 10 months 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