workflow_objc icon indicating copy to clipboard operation
workflow_objc copied to clipboard

_objc_msgSend parser to call doesn't work when you have multiple function name

Open elbiazo opened this issue 3 years ago • 3 comments

Lets say there are two class. Employee class and Student class. They are not related at all but they both have function called print. current _objc_msgSend resolver doesn't account for that and sets everyone function to just one function.

You can see below its calling a function from Student when Employee is not even related to it image

I think it should only set the address when you know for sure which object it is. maybe do sink -> init source analysis to know which class it is. and only change the call when it is likely correct.

elbiazo avatar Sep 21 '22 21:09 elbiazo