Project

General

Profile

Bug #19546

Updated by ioquatix (Samuel Williams) about 1 year ago

(Original bug report: <https://github.com/socketry/async/issues/224>) 

 The `IO::Buffer` implementation incorrectly calls `rb_fiber_scheduler_io_write` with the `size_t`s converted to `VALUE`s: https://github.com/ruby/ruby/blob/400ccb16eefe4e21c4e3eacab4fd0f208fc5e151/io_buffer.c#L2607 

 But that function expects `size_t`s: https://github.com/ruby/ruby/blob/400ccb16eefe4e21c4e3eacab4fd0f208fc5e151/scheduler.c#L542 

 (And probably the same for the other scheduler methods + data types.) 

 Fixed by <https://github.com/ruby/ruby/pull/7593>.

Back