mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
c9e3af60e1
when a Set contains itself (directly or indirectly), computing its hash would cause infinite recursion leading to SystemStackError. the exception during khash rebuild leaked memory. add recursion detection flag to Set#hash that returns 0 for recursive references, similar to Ruby's behavior. Co-authored-by: Claude <noreply@anthropic.com>