summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSamuel Williams <[email protected]>2025-06-05 12:49:02 +0900
committerSamuel Williams <[email protected]>2025-06-06 13:13:16 +0900
commitead14b19aa5acbdfb2f1ccc53cc7b8b34517b6e9 ()
tree5070560cb4326d1d209d81e2aed6dfcd29f28bf6 /include
parent81a23c5793fecaff5f75cefe6a6e03dab99df16b (diff)
Fix `blocking_operation_wait` use-after-free bug.
Notes: Merged: https://.com/ruby/ruby/pull/13437
-rw-r--r--include/ruby/fiber/scheduler.h43
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.
*