Actions
Bug #22535
closedRelease mode segfault due to half-initialized error in singleton_method
Bug #22535:
Release mode segfault due to half-initialized error in singleton_method
Description
Actions
Added by tekknolagi (Maxwell Bernstein) 6 days ago. Updated 4 days ago.
Description
Applied in changeset git|45666487ee3868605bc6fd792f21ff8ac42264da.
Fix NameError from singleton_method for a name with no ID
rb_check_id returns 0 when the name has no ID, and we were passing that
to ID2SYM. 0 is never a valid ID, so also assert against it in
rb_id2sym.
[Bug #22535]
Merged into ruby_3_4 at https://github.com/ruby/ruby/commit/deb94faedf5cda15510423bcd16371a411d7da77.