Skip to content

Calls to objc_superclass detect the two struct items in the first argument as seperate variables, resulting in incorrect lifting #5594

Description

@0cyn

This decompilation is incorrect:
image

The correct output can be seen here:
image

The first argument of objc_msgSendSuper2 is an objc_super struct containing a pointer to the self Class object and a pointer to the superclass.

The full type definitions can be seen starting here: https://github.com/apple-oss-distributions/objc4/blob/main/runtime/message.h#L34

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions