diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2024-02-16 14:23:00 -0500 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2024-02-16 15:02:03 -0500 |
| commit | 777c4da0bf41de76a22c4cc67fc93e1404b2930c (patch) | |
| tree | 380d40f9c0439df7b4ae7573aca4ea739fa893dc /test/ruby | |
| parent | fbe63047cb99c47d8ed17fd74172e671911da9bb (diff) | |
[PRISM] GC guard strings
Using RSTRING_PTR can cause the string object to not exist on the stack,
which could cause it to be GC'd or be moved by GC compaction. This can
cause RSTRING_PTR to point to the incorrect location if the string is
embedded and moved by GC compaction.
Fixes ruby/prism#2442.
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions
