diff options
author | Samuel Williams <[email protected]> | 2025-06-05 12:49:02 +0900 |
---|---|---|
committer | Samuel Williams <[email protected]> | 2025-06-06 13:13:16 +0900 |
commit | ead14b19aa5acbdfb2f1ccc53cc7b8b34517b6e9 () | |
tree | 5070560cb4326d1d209d81e2aed6dfcd29f28bf6 /include | |
parent | 81a23c5793fecaff5f75cefe6a6e03dab99df16b (diff) |
Fix `blocking_operation_wait` use-after-free bug.
Notes: Merged: https://.com/ruby/ruby/pull/13437
-rw-r--r-- | include/ruby/fiber/scheduler.h | 43 |
1 files changed, 43 insertions, 0 deletions
@@ -394,11 +394,54 @@ VALUE rb_fiber_scheduler_io_close(VALUE scheduler, VALUE io); */ VALUE rb_fiber_scheduler_address_resolve(VALUE scheduler, VALUE hostname); struct rb_fiber_scheduler_blocking_operation_state { void *result; int saved_errno; }; /** * Defer the execution of the passed function to the scheduler. * |