diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2021-07-29 12:04:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-29 12:04:36 -0400 |
commit | cbecf9c7ba71ef0e844c72c97f85ce4fffb46aa6 (patch) | |
tree | f2c7c07931ac774ff09eafb870cfaccbbfe9dd9f /gc.c | |
parent | 12d4da7478136f12f463cc8029d73cd22ec0a021 (diff) |
Fix use-after-free on -DUSE_EMBED_CI=0
On -DUSE_EMBED_CI=0, there are more GC allocations and the old code
didn't keep old_operands[0] reachable while allocating. On a Debian
based system, I get a crash requiring erb under GC stress mode. On
macOS, tool/transcode-tblgen.rb runs incorrectly if I put GC.stress=true
as the first line.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4662
Merged-By: XrXr
Diffstat (limited to 'gc.c')
0 files changed, 0 insertions, 0 deletions