summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/intersection_spec.rb
diff options
context:
space:
mode:
authornagachika <nagachika@ruby-lang.org>2024-03-31 17:37:01 +0900
committernagachika <nagachika@ruby-lang.org>2024-03-31 17:37:01 +0900
commit27606daf8efeb0ae6d0590a2c9bb1c5aae07f140 (patch)
treebe81bc12dd31060be820baa502e66a741fd4b43f /spec/ruby/core/array/intersection_spec.rb
parent4f3ed07d5bfd581b630e4afc8b9bb170ce781e7f (diff)
merge revision(s) ac0163949a6ee678dfccec9f6e56422b91e5f0a9,01fd262e62076277a41af72ea13f20deb1b462a2: [Backport #20245]
Compile code without Symbol GC always --- symbol.c | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) 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") --- symbol.c | 17 ++++++++++------- test/ruby/test_module.rb | 8 ++++++++ 2 files changed, 18 insertions(+), 7 deletions(-)
Diffstat (limited to 'spec/ruby/core/array/intersection_spec.rb')
0 files changed, 0 insertions, 0 deletions