Project

General

Profile

« Previous | Next » 

Revision 777c4da0

Added by peterzhu2118 (Peter Zhu) over 1 year ago

[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.