all InfoSec news
Igor’s Tip of the Week #177: Unused argument attribute
Malware Analysis, News and Indicators - Latest topics malware.news
In one of the past tips we mentioned the __unused attribute which can be applied to function arguments. When can it be useful?
Let’s consider this code from Apple’s dyld:
v19 is passed as fist argument to dyld4::ProcessConfig::PathOverrides::setString(). Since its name looks like a class method, the decompiler assigned the class type to the first argument (normally corresponding to the implicit this argument). However, strncmp returns a simple integer with the comparison result and has no relation to the PathOverrides …
apple argument can class code decompiler function malware analysis name tips week