• avoid overflow in integer multiplication · 7e0ae169
    卜部昌平 提交于
    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
dir.c 85.6 KB