diff options
| author | Alan Wu <XrXr@users.noreply.github.com> | 2025-01-28 16:13:28 -0500 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2025-02-13 17:44:58 -0800 |
| commit | 706f1d0573f0b807bee4c0cc8937b8f5b9b24ebd (patch) | |
| tree | 1de6ab3de459ed1667d54acc969250234f19499f /spec/ruby/core/array/map_spec.rb | |
| parent | 12c716eea02f0efbb7dcd4ddb3a8b0523cdb99c2 (diff) | |
YJIT: Initialize locals in ISeqs defined with `...`
Backport of GH-12660:
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]
Diffstat (limited to 'spec/ruby/core/array/map_spec.rb')
0 files changed, 0 insertions, 0 deletions
