Skip to content
Snippets Groups Projects
Unverified Commit ef8cfad6 authored by Michael Ferguson's avatar Michael Ferguson Committed by GitHub
Browse files

fix invalid memory access (#1969)

* fix invalid memory access

this fix was applied as part of the noetic release of costmap_2d

* uncrustify
parent 98e994fa
No related branches found
No related tags found
No related merge requests found
......@@ -144,6 +144,12 @@ void TestNode::validatePointInflation(
continue;
}
if (dist == bin->first) {
// Adding to our current bin could cause a reallocation
// Which appears to cause the iterator to get messed up
dist += 0.001;
}
if (cell.x_ > 0) {
CellData data(costmap->getIndex(cell.x_ - 1, cell.y_),
cell.x_ - 1, cell.y_, cell.src_x_, cell.src_y_);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment