
Issue #20245 has been updated by naruse (Yui NARUSE). Backport changed from 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: REQUIRED, 3.3: REQUIRED to 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: REQUIRED, 3.3: DONE ruby_3_3 b2c2702f20abfd4bb5f38cad60170e2bbb3adff9 merged revision(s) 01fd262e62076277a41af72ea13f20deb1b462a2. ---------------------------------------- Bug #20245: Crash when checking symbol encoding https://bugs.ruby-lang.org/issues/20245#change-107400 * Author: peterzhu2118 (Peter Zhu) * Status: Closed * Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: REQUIRED, 3.3: DONE ---------------------------------------- GitHub PR: https://github.com/ruby/ruby/pull/9871 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: ```ruby GC.stress = true Object.const_defined?("\xC3") ``` -- https://bugs.ruby-lang.org/