ext-ds icon indicating copy to clipboard operation
ext-ds copied to clipboard

Guard against large capacities when allocating

Open rtheunissen opened this issue 8 years ago • 2 comments

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.

rtheunissen avatar Aug 03 '16 17:08 rtheunissen

2.0 won't support allocate so this is now a 1.* issue.

rtheunissen avatar Jul 19 '17 21:07 rtheunissen

I think we should just remove explicit allocation entirely, in both 1.x and 2.0

rtheunissen avatar Mar 14 '19 14:03 rtheunissen