binaryninja-api icon indicating copy to clipboard operation
binaryninja-api copied to clipboard

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

Open 0cyn opened this issue 3 years ago • 0 comments

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

0cyn avatar Sep 12 '22 17:09 0cyn