mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
3f2611ebcd
fix out-of-bounds read when adding bigints of different sizes. the unrolled loop accessed both operands up to the size of x without checking if y had enough limbs. when y->sz < x->sz, this caused reads beyond y's allocation. now use min(x->sz, y->sz) for the overlap region and handle remaining limbs from the larger operand separately. Co-authored-by: Claude <noreply@anthropic.com>