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

Improve undefined sanitizer support. #318

Merged
merged 4 commits into from Apr 16, 2023
Merged

Conversation

FranckRJ
Copy link
Collaborator

@FranckRJ FranckRJ commented Apr 16, 2023

Based on #261, should fix #304.

Added a new action in the GitHub CI as well to run tests with sanitizers enabled (for GCC and Clang).

gjasny and others added 2 commits January 24, 2022 12:21
Otherswise Clang will report the following:
```
.../include/standalone/fakeit.hpp:5337:47: runtime error: member call on address 0x7ffc27172e08 which does not point to an object of type 'rtc::test::tpsclient::ITestCaseHandler'
0x7ffc27172e08: note: object is of type 'fakeit::VirtualOffsetSelector'
 00 00 00 00  38 b1 5e 00 00 00 00 00  10 c0 91 01 00 00 00 00  10 c0 91 01 00 00 00 00  f8 1d 05 01
              ^~~~~~~~~~~~~~~~~~~~~~~
              vptr for 'fakeit::VirtualOffsetSelector'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior .../include/standalone/fakeit.hpp:5337:47 in

```
Disarm UBSAN for VirtualOffsetSelector cast
@coveralls
Copy link

coveralls commented Apr 16, 2023

Coverage Status

Coverage: 99.926%. Remained the same when pulling 5d6c990 on improve-undef-san-support into f6de205 on dev.

@FranckRJ FranckRJ added this to the 2.4.0 milestone Apr 16, 2023
@FranckRJ FranckRJ merged commit bc4aafb into dev Apr 16, 2023
49 checks passed
@FranckRJ FranckRJ deleted the improve-undef-san-support branch April 16, 2023 20:55
This was referenced Apr 16, 2023
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.

None yet

3 participants