Skip to content

Reject invalid cell-list dimensions before allocation #346

Description

@galjos

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions