Skip to content

Model::bodiesToMove(): bug in iteration method #60

@basil-huber

Description

@basil-huber

in Model::bodiesToMove(), we loop over bodies_ which is a std::map with

for(int i = 0; i < bodies_.size(); i++){
    bodies_[i]

If the keys of bodies_ are not starting with 0 and consecutive, we access non-existing elements, which leads to a seg fault

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions