Skip to content

Commit 4a23ff2

Browse files
GoesMGoesM
authored andcommitted
replace throw-error with error-log to avoid UAF mentioned in ros-navigation#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]> Signed-off-by: enricosutera <[email protected]>
1 parent e69d40f commit 4a23ff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nav2_util/include/nav2_util/simple_action_server.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ class SimpleActionServer
315315
if (steady_clock::now() - start_time >= server_timeout_) {
316316
terminate_all();
317317
if (completion_callback_) {completion_callback_();}
318-
throw std::runtime_error("Action callback is still running and missed deadline to stop");
318+
error_msg("Action callback is still running and missed deadline to stop");
319319
}
320320
}
321321

0 commit comments

Comments
 (0)