Daniel Plohmann avatar Daniel Plohmann committed 408fd69

fixed Issue #16 by initializing variable properly.

Comments (0)

Files changed (1)


     def renamePotentialWrapperFunctions(self):
+        """
+        contributed by Branko Spasojevic.
+        """
         num_wrappers_renamed = 0
         for seg_ea in self.ida_proxy.Segments():
             for func_ea in self.ida_proxy.Functions(self.ida_proxy.SegStart(seg_ea), self.ida_proxy.SegEnd(seg_ea)):
                     # wrappers are likely short
                     if (func_end - func_ea) > 0 and (func_end - func_ea) < 0x40:
                         nr_calls = 0
+                        w_name = ""
                         for i_ea in self.ida_proxy.FuncItems(func_ea):
                             if self.ida_proxy.GetMnem(i_ea) == 'jmp' \
                                 and (func_ea > self.ida_proxy.GetOperandValue(i_ea,0) \
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.