Skip to content

Commit

Permalink
replace throw-error with error-log to avoid UAF mentioned in ros-navi…
Browse files Browse the repository at this point in the history
…gation#4175 (ros-navigation#4180)

* replace throw-error with error-log to avoid UAF

Signed-off-by: GoesM <[email protected]>

* fix typo

Signed-off-by: GoesM <[email protected]>

---------

Signed-off-by: GoesM <[email protected]>
Co-authored-by: GoesM <[email protected]>
  • Loading branch information
GoesM and GoesM authored Mar 14, 2024
1 parent 09ba08b commit 9f13cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nav2_util/include/nav2_util/simple_action_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ class SimpleActionServer
if (steady_clock::now() - start_time >= server_timeout_) {
terminate_all();
if (completion_callback_) {completion_callback_();}
throw std::runtime_error("Action callback is still running and missed deadline to stop");
error_msg("Action callback is still running and missed deadline to stop");
}
}

Expand Down

0 comments on commit 9f13cb1

Please sign in to comment.