diff options
| author | Alan Wu <XrXr@users.noreply.github.com> | 2025-01-28 23:54:38 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-28 23:54:38 -0500 |
| commit | 58ccce60cf5f3268e7ef27942b75e78fe2d78e75 (patch) | |
| tree | 9767c939f1cb236638e7289e5e71854e7c754641 /include | |
| parent | ff64806ae51c2813f0c6334c0c52082b027c255c (diff) | |
YJIT: Initialize locals in ISeqs defined with `...` (#12660)
* YJIT: Fix indentation [ci skip]
Fixes: cdf33ed5f37f9649c482c3ba1d245f0d80ac01ce
* YJIT: Initialize locals in ISeqs defined with `...`
Previously, callers of forwardable ISeqs moved the stack pointer up
without writing to the stack. If there happens to be a stale value in
the area skipped over, it could crash due to "try to mark T_NONE". Also,
the uninitialized local variables were observable through `binding`.
Initialize the locals to nil.
[Bug #21021]
Notes
Notes:
Merged-By: maximecb <maximecb@ruby-lang.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
