-
Notifications
You must be signed in to change notification settings - Fork 630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(planning_evaluator): fix crashes with empty trajectories #6129
fix(planning_evaluator): fix crashes with empty trajectories #6129
Conversation
Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
@maxime-clem |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@TakaHoribe found this bug (#6126). |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6129 +/- ##
=======================================
Coverage 14.61% 14.61%
=======================================
Files 1860 1860
Lines 127417 127417
Branches 37286 37286
=======================================
+ Hits 18621 18622 +1
Misses 87884 87884
+ Partials 20912 20911 -1
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…efoundation#6129) Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
Description
Crashes were caused by subtracting 1 from unsigned integer (
size_t
), causing crashes with empty trajectories (where the size = 0).To reproduce the crash, you can publish an empty trajectory with the following command:
Tests performed
PSim
Effects on system behavior
Not applicable.
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.