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

Commits on Jan 24, 2022

  1. Disarm UBSAN for VirtualOffsetSelector cast

    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
    
    ```
    gjasny committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    e9fbf97 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2023

  1. Merge pull request #261 from gjasny/disarm-ubsan

    Disarm UBSAN for VirtualOffsetSelector cast
    FranckRJ committed Apr 16, 2023
    Configuration menu
    Copy the full SHA
    f0befa8 View commit details
    Browse the repository at this point in the history
  2. Improved UBSAN support for gcc too + added a macro to disable tests t…

    …hat have to trigger UBSAN.
    FranckRJ committed Apr 16, 2023
    Configuration menu
    Copy the full SHA
    04d9638 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5d6c990 View commit details
    Browse the repository at this point in the history