Join GitHub today
mrb_str_modify tries to write to static string #3373
The following code demonstrates a crash:
a = Time.new.zone # allocates static string a # converts to shared string GC.start # reduces refcnt to 1? a.next! #crash
The crash occurs here, where an attempt is made to write to a static string's buffer (which is not writeable):
The crash is not particular to
I haven't investigated further, so I'm not sure what the right fix is.
This issue was reported by https://hackerone.com/marotagem_vrt