-
Notifications
You must be signed in to change notification settings - Fork 164
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 bound access when compiling tests #190
Comments
Thanks for the heads-up and for the PR! Which tests were you running exactly so that I have a chance to reproduce this? Just our tests (e.g. |
Thanks for getting back to me. I was running I did more testing this morning. It turns out that this problem is compiler dependent, which is probably an indication of numeric stability issues. When I compile it with GCC 11.4, all tests from What exactly happens when I am building it with MSVC is as follows (Debug build). When I try to run Stepping in with a debugger show that an issue is I think this particular else-branch is unsafe because it has a potential of turning "innocent" numeric issues into more serious memory safety issues if
(I understand that the number of valid profiles is 3, but what if someone uses invalid input and sets acceleration and jerk to "infinite" values, for example). Next step is to add
Now, I see that what fails is
Finally, when I change the number of valid profiles from 3 to 4, this test passes, and it starts to fail from Please, let me know if you need some more details, or if I can help somehow. |
I was trying to build Ruckig w/ tests and got out-of-bound access errors in some of the tests that was captured by asserts in STL. I've made a quick look into the code, and it looks like that the
profile
iterator is out bound for some velocity and potion interfaces when the number of valid profiles equals to three.Please find some details in the pull request: #189
The text was updated successfully, but these errors were encountered: