search for: resolveclassmethod

Displaying 1 result from an estimated 1 matches for "resolveclassmethod".

2020 Oct 12
2
[RFC] Analysis and runtime check of objc_direct/objc_non_runtime_protocol
...be much more accurately diagnosed via global analysis. Runtime Check The goal of runtime checks is to catch the usages of dynamic APIs targeting direct methods at runtime, e.g, respondsToSelector, performSelector, etc. The idea is to intercept Objc runtime’s invocation of resolveInstanceMethod and resolveClassMethod , which is responsible for resolving methods that aren’t recorded in the metadata, and check if the unresolved method is a direct method. It requires we collect the list of direct method names, and the names of the classes where they’re defined. There is another category of runtime issues which run...