Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detect and throw on over-size array.
Otherwise, the multiplication with the element size can overflow; this leads to an allocation of zero (or a small number) of bytes, which we then SEGV on trying to zero because they are under-length.
- Loading branch information