Open
Description
We currently allow allocation via allocate(int $capacity)
, but we don't check for overflow or have a maximum capacity. @nikic also mentioned that we should be using the safe_*
variants when multiplying sizeof
by a variable capacity.