Skip to content

Double free in create_wall_timer if an invalid period is passed #1177

@brawner

Description

@brawner

In create_wall_timer() in create_timer.hpp, if a bad period duration is passed (either < 0 or > nanoseconds::max()) then rcl will throw an error. During the destructor of WallTimer, it will call cancel, which results in a double free. I haven't found exactly where.

This issue is to track the several PRs I think will be necessary to resolve the cascade of errors present.

Metadata

Metadata

Assignees

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