mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
0ba48a2a5b
wrap hash and eql callbacks with mrb_protect_error() to catch exceptions during khash table rebuild. when an exception occurs (e.g., SystemStackError from infinite recursion), return a safe default value and store the exception in mrb->exc for later processing. this prevents memory leaks from orphaned allocations when exceptions propagate through khash rebuild. Co-authored-by: Claude <noreply@anthropic.com>