Skip to content
  • 卜部昌平's avatar
    7e0ae169
    avoid overflow in integer multiplication · 7e0ae169
    卜部昌平 authored
    This changeset basically replaces `ruby_xmalloc(x * y)` into
    `ruby_xmalloc2(x, y)`.  Some convenient functions are also
    provided for instance `rb_xmalloc_mul_add(x, y, z)` which allocates
    x * y + z byes.
    7e0ae169
    avoid overflow in integer multiplication
    卜部昌平 authored
    This changeset basically replaces `ruby_xmalloc(x * y)` into
    `ruby_xmalloc2(x, y)`.  Some convenient functions are also
    provided for instance `rb_xmalloc_mul_add(x, y, z)` which allocates
    x * y + z byes.
Loading