summaryrefslogtreecommitdiff
path: root/include/ruby/internal/encoding/sprintf.h
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2024-02-07 11:30:20 -0500
committerPeter Zhu <peter@peterzhu.ca>2024-02-08 10:12:56 -0500
commit01fd262e62076277a41af72ea13f20deb1b462a2 (patch)
treeb6fab7e83c82f23766b0fe09a4473ebe400594a8 /include/ruby/internal/encoding/sprintf.h
parent6756dbf3bbdd71967472ade018c84ddedefd8a6c (diff)
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 'include/ruby/internal/encoding/sprintf.h')
0 files changed, 0 insertions, 0 deletions