Cell-list allocation multiplies its three dimensions without checking zero values or size_t overflow. Invalid dimensions can therefore produce an empty list or wrap to an unintended allocation size.
Validate every dimension and the cumulative product before resizing the cell vector.
Cell-list allocation multiplies its three dimensions without checking zero values or size_t overflow. Invalid dimensions can therefore produce an empty list or wrap to an unintended allocation size.
Validate every dimension and the cumulative product before resizing the cell vector.