Actions
Bug #15937
closedSegmentation fault when String#initialize given same string with capacity field
Bug #15937:
Segmentation fault when String#initialize given same string with capacity field
Description
Reproduction steps:
string buffer corruption:
s = "mystring"
s.__send__(:initialize, s, capacity: 1000)
puts s
segfault:
s = "mystring that can't be embedded because it's too long and therefore must be allocated"
s.__send__(:initialize, s, capacity: 1000)
Thanks for your time :)
Actions