mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Fix jump buffer leak in WASI builds
This commit is contained in:
parent
687bd83724
commit
45e814d116
Notes:
git
2025-04-27 06:47:46 +00:00
3 changed files with 3 additions and 0 deletions
1
signal.c
1
signal.c
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue