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

Disarm UBSAN for VirtualOffsetSelector cast #261

Merged
merged 1 commit into from
Apr 16, 2023

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