diff options
| author | nagachika <nagachika@ruby-lang.org> | 2023-03-21 12:02:04 +0900 |
|---|---|---|
| committer | nagachika <nagachika@ruby-lang.org> | 2023-03-21 12:02:04 +0900 |
| commit | 159930b7857bd3fe603840f686edffb54693d2a7 (patch) | |
| tree | 2b0fa83ad8daa9818f035b5ea024feed19a2678e /test/ruby/test_rubyvm.rb | |
| parent | eba3f787cbd38acf60fff6bdb450aacfc2e9c3a1 (diff) | |
merge revision(s) d8ef0a98c670449b20436947f5ebbd327ed5ab0d: [Backport #19319]
[Bug #19319] Fix crash in rb_str_casemap
The following code crashes on my machine:
```
GC.stress = true
str = "testing testing testing"
puts str.capitalize
```
We need to ensure that the object `buffer_anchor` remains on the stack
so it does not get GC'd.
---
string.c | 2 ++
1 file changed, 2 insertions(+)
Diffstat (limited to 'test/ruby/test_rubyvm.rb')
0 files changed, 0 insertions, 0 deletions
