gradetwo / zynamics

Automatically exported from code.google.com/p/zynamics
0 stars 0 forks source link

Patch: IDA pro 6.3 / newer version of XCode ObjC didn't find refs #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The objc_helper.py didn't find any refs to the correct functions. Unknown 
reason: IDA versioning difference or compiler optimalization??

diff --git a/objc_helper.py b/objc_helper.py
index 6f0ea78..5027c27 100644
--- a/objc_helper.py
+++ b/objc_helper.py
@@ -77,6 +77,12 @@ def trace_param(ea, min_ea, op_type, op_val):
                         # Optimizations use LR as general reg
                         op_val = 14
                     else:
+                       refs = list(idautils.DataRefsFrom(ea))
+                       if refs:
+                               while len(refs) > 0:
+                                       far_ref = refs[0]
+                                       refs = 
list(idautils.DataRefsFrom(refs[0]))
+                               return far_ref
                         try:
                             op_val = int(displ_re.search(idc.GetDisasm(ea)).group('regnum'))
                         except:

Original issue reported on code.google.com by streetde...@gmail.com on 21 Sep 2012 at 12:36

GoogleCodeExporter commented 8 years ago
Hi,

thank you for your bug report and the patch. We have distributed the case 
internally and will look into the issue.

Best Regards,

Original comment by timkor...@google.com on 9 Oct 2012 at 10:02

GoogleCodeExporter commented 8 years ago

Original comment by timkor...@google.com on 28 Apr 2015 at 8:34