Skip to content
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 ReinterpretAsInt causing undefind behavior + segfaulting on release mode #362

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

JafarAbdi
Copy link

@JafarAbdi JafarAbdi commented Nov 25, 2024

Should fix #23.

I kept getting a segfault when building with Release mode for Quadruped Flat (For some reason I don't get it with RelWithDebugInfo). I think it's because in the previous implementation using reinterpret_cast is causing an undefined behavior (Due to type size mismatch?)

This is a compiler-explorer link that shows the bug https://godbolt.org/z/hWW5GcGeY

@nimrod-gileadi could you please test this since you ran into the same issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AddressSanitizer issue: residual parameters array and the UI
1 participant