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

Add UndefinedBehaviorSanitizer to Linux CI #1440

Merged
merged 3 commits into from
Jul 26, 2022

Conversation

sweemer
Copy link
Contributor

@sweemer sweemer commented Jul 25, 2022

Add UndefinedBehaviorSanitizer (a.k.a. UBSan) to the Linux CI job in addition to AddressSanitizer, which has already been added.

Also fix a couple uninitialized member variables that UBSan flagged. I am not sure if these are the correct default values to use, but they are at least better than uninitialized values. Even better would be if the classes could be refactored to always take in the value to initialize the variables with, but I will leave that to a future refactoring.

In case you're curious, -fno-sanitize-recover=all is required because some UBSan checks are recoverable and do not terminate the process, but we want any violations to result in the CI failing.

@coveralls
Copy link

coveralls commented Jul 25, 2022

Coverage Status

Coverage remained the same at 71.174% when pulling 4447809 on sweemer:undefined into 1945b48 on lballabio:master.

@lballabio lballabio added this to the Release 1.28 milestone Jul 25, 2022
@lballabio lballabio merged commit 4bd5aa7 into lballabio:master Jul 26, 2022
@sweemer sweemer deleted the undefined branch July 26, 2022 09:32
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.

3 participants