summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/replace_spec.rb
diff options
context:
space:
mode:
authorNARUSE, Yui <nurse@users.noreply.github.com>2024-03-21 09:05:07 +0900
committerGitHub <noreply@github.com>2024-03-21 00:05:07 +0000
commitb2c2702f20abfd4bb5f38cad60170e2bbb3adff9 (patch)
tree71379ea0d5f4d11c2b3416d719a1098735b3ddcd /spec/ruby/core/array/replace_spec.rb
parent00cb72157a60c20a9b9d9fe81fc974ea83d672b4 (diff)
merge revision(s) 01fd262e62076277a41af72ea13f20deb1b462a2: [Backport #20245] (#10307)
Fix crash when checking symbol encoding [Bug #20245] We sometimes pass in a fake string to sym_check_asciionly. This can crash if sym_check_asciionly raises because it creates a CFP with the fake string as the receiver which will crash if GC tries to mark the CFP. For example, the following script crashes: GC.stress = true Object.const_defined?("\xC3")
Diffstat (limited to 'spec/ruby/core/array/replace_spec.rb')
0 files changed, 0 insertions, 0 deletions