Repository navigation
Fix findWayPointIndicesForDurationAfterStart method when out of bounds (backport #3626) - #3874
Conversation
moveit#3626) * Fix findWayPointIndicesForDurationAfterStart method when out of bounds and add unit tests * Use .at() to index deque; Add 2 more edge test cases * Revise function comments --------- Co-authored-by: Nathan Brooks <[email protected]> Co-authored-by: Ezra Brooks <[email protected]> (cherry picked from commit 4287c80)
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Please target the |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## jazzy #3874 +/- ##
==========================================
+ Coverage 46.25% 46.35% +0.10%
==========================================
Files 718 718
Lines 59188 59232 +44
Branches 7598 7601 +3
==========================================
+ Hits 27374 27449 +75
+ Misses 31650 31617 -33
- Partials 164 166 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Backport of #3626 to
jazzy.Original PR: #3626
Author: @XingxinHE
Description
The fix addresses the bug raised in issue #3612 which causes undefined behavior / out-of-bounds memory access:
duration >= total_durationorwaypoints_.empty(),indexreachednum_points, leading to out-of-bounds access onduration_from_previous_[index]..at()and added boundary checks for empty waypoints and negative durations.Checklist