-
Notifications
You must be signed in to change notification settings - Fork 136
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
Out-of-bounds read inside norm_inf #284
Comments
Here's the |
Thank you for letting me know @jwnimmer-tri ! I will fix this and cut a new release asap. |
Works great, thanks for the quick new release! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Specifications
Description
Out-of-bounds read inside
norm_inf
. This was a regression introduced by #278.When running the latest SCS inside Drake under AddressSanitizer, it flags an out-of-bounds read. Investigating the situation, I can confirm that it is a true problem.
Here is a patch that fixes the problem, to help illustrate:
The change in #278 switched to
amax
instead oflange
, but failed to match thelange
behavior whenlen == 0
. In that caselange
is specified to return zero, but instead #278 accidentally returns the-1
th array value, which is undefined.How to reproduce
I can extract this from our regression suite if necessary, but hopefully the bug is clear without this.Edit: See below.
Output
Here is the backtrace during the error:
The text was updated successfully, but these errors were encountered: