mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
5ed0cd4ecb
the previous fixed safety margin of 8 limbs was insufficient for certain edge cases involving deep recursion levels in karatsuba multiplication, as discovered by oss-fuzz. changed to proportional margin (~12.5% plus fixed overhead of 16) that scales with input size. this prevents potential buffer overruns in deeply nested karatsuba multiplications while maintaining efficiency for typical cases. Co-authored-by: Claude <noreply@anthropic.com>