diff options
| author | Alan Wu <XrXr@users.noreply.github.com> | 2023-12-06 21:00:37 -0500 |
|---|---|---|
| committer | Alan Wu <XrXr@users.noreply.github.com> | 2023-12-07 11:16:12 -0500 |
| commit | 195dbf241f800556731c190b0e4368224afe2e11 (patch) | |
| tree | 98e700441ea328a72751973884fbc4f6900f8994 /test/ruby | |
| parent | 050806f4252dce2698260d905f7c86c621c1ec63 (diff) | |
Fix potential compaction issue in env_copy()
`src_ep[VM_ENV_DATA_INDEX_ME_CREF]` was read out and held without
marking across the allocation in vm_env_new(). In case vm_env_new() ran
compaction, an invalid reference could have been written into
`copied_env`.
It might've been hard to actually produce a crash with this issue due to
the pinning marking of the field in rb_execution_context_mark().
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions
