Skip to content

[filters] Potentially undefined behavior in VoxelGridCovariance #6174

Open
@thallerod

Description

@thallerod

Undefined behavior if floating-point expression doesn't fit into an int.

min_b_[0] = static_cast<int> (std::floor (min_p[0] * inverse_leaf_size_[0]));

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions