Fix jump buffer leak in WASI builds

This commit is contained in:
刘皓 2025-04-20 14:48:02 -04:00 committed by Yuta Saito
parent 687bd83724
commit 45e814d116
Notes: git 2025-04-27 06:47:46 +00:00
3 changed files with 3 additions and 0 deletions

View file

@ -853,6 +853,7 @@ check_stack_overflow(int sig, const uintptr_t addr, const ucontext_t *ctx)
* otherwise it can cause stack overflow again at the same
* place. */
if ((crit = (!ec->tag->prev || !--uplevel)) != FALSE) break;
rb_vm_tag_jmpbuf_deinit(&ec->tag->buf);
ec->tag = ec->tag->prev;
}
reset_sigmask(sig);