diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2024-02-07 11:30:20 -0500 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2024-02-08 10:12:56 -0500 |
| commit | 01fd262e62076277a41af72ea13f20deb1b462a2 (patch) | |
| tree | b6fab7e83c82f23766b0fe09a4473ebe400594a8 /include/ruby/thread_native.h | |
| parent | 6756dbf3bbdd71967472ade018c84ddedefd8a6c (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/thread_native.h')
0 files changed, 0 insertions, 0 deletions
