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

Stop dereferencing msg_send!'s first argument #102

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jun 4, 2021

  1. Stop dereferencing msg_send!'s first argument

    In Objective-C, having a null pointer receiver is valid, but with `msg_send!` it would be converted into a reference, which is undefined behavior.
    
    Additionally, there might be a mutable reference somewhere else in the program, which would now be aliased.
    
    Note: The reference is converted into a pointer immediately after, but it is still UB.
    madsmtm committed Jun 4, 2021
    Configuration menu
    Copy the full SHA
    4912ffb View commit details
    Browse the repository at this point in the history