Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
The following code demonstrates a crash:
a = Time.new.zone # allocates static string
a # converts to shared string
GC.start # reduces refcnt to 1?
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 Time#zone; the first line can be changed to anything that allocates a static string, e.g. a = :a.to_s.
a = :a.to_s
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
The text was updated successfully, but these errors were encountered:
No branches or pull requests