Skip to content

Guard against large capacities when allocating #33

Open
@rtheunissen

Description

@rtheunissen

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions