diff options
| author | NARUSE, Yui <naruse@airemix.jp> | 2023-01-19 11:59:43 +0900 |
|---|---|---|
| committer | NARUSE, Yui <naruse@airemix.jp> | 2023-01-19 11:59:43 +0900 |
| commit | 686b38f83e70b3e1796092c71dd0b7dc2206b118 (patch) | |
| tree | 60af8b39f89c182ae7d77e7c3efbde3a5f5c3639 /include/ruby/internal | |
| parent | 1a2447ac9925e7794a7c5aa07960ad4de08e6aca (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 'include/ruby/internal')
0 files changed, 0 insertions, 0 deletions
