-
-
Notifications
You must be signed in to change notification settings - Fork 379
Avoid indexing past vector length in Pathfinder writer #3364
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
Conversation
Jenkins Console Log Machine informationNo LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focalCPU: G++: Clang: |
SteveBronder
left a comment
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.
Thanks!
Submission Checklist
./runTests.py src/test/unitmake cpplintSummary
Resolves the address sanitizer error from #3361
In the pathfinder writer logic for checking whether a draw id is present multiple times:
The
whilestatement checks a value at indexj + 1, but this reads past the end of the vector whenjis the last iteration. This PR just wraps the logic in a conditional onjnot being the last elementIntended Effect
Resolve address sanitizer error
How to Verify
Run bernoulli example model with sanitizers
Side Effects
N/A
Documentation
N/A
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): Andrew Johnson
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses: