summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
author刘皓 <[email protected]>2025-03-27 00:37:14 -0400
committerYuta Saito <[email protected]>2025-03-31 11:59:33 +0900
commit3a730be8b464454878a42132f6fecb98ab4c1b5b (patch)
tree68df1ed6c072a5022d7bb173c9e24ccd19a810f0 /cont.c
parent72fc9c7b1580251eac7d8db116df7f6e436be8b3 (diff)
Fix jump buffer leak in setjmp handler in WASI builds
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12995
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cont.c b/cont.c
index 072ae4562f..ae68da4e83 100644
--- a/cont.c
+++ b/cont.c
@@ -1369,6 +1369,7 @@ cont_init(rb_context_t *cont, rb_thread_t *th)
/* save thread context */
cont_save_thread(cont, th);
cont->saved_ec.thread_ptr = th;
+ cont->saved_ec.tag = NULL;
cont->saved_ec.local_storage = NULL;
cont->saved_ec.local_storage_recursive_hash = Qnil;
cont->saved_ec.local_storage_recursive_hash_for_trace = Qnil;