diff options
author | 刘皓 <[email protected]> | 2025-03-27 00:37:14 -0400 |
---|---|---|
committer | Yuta Saito <[email protected]> | 2025-03-31 11:59:33 +0900 |
commit | 3a730be8b464454878a42132f6fecb98ab4c1b5b (patch) | |
tree | 68df1ed6c072a5022d7bb173c9e24ccd19a810f0 /cont.c | |
parent | 72fc9c7b1580251eac7d8db116df7f6e436be8b3 (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |