diff options
| author | plafosse <peter.a.lafosse@gmail.com> | 2016-08-20 21:49:51 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-20 21:49:51 -0400 |
| commit | c489e1972b1a178ba2a0a862755439d416a05950 (patch) | |
| tree | d90269b77cf7b7a9e993ede05de88ba297e1fc52 /python/__init__.py | |
| parent | 72099cccb7105dc58a6334776746b586604418bc (diff) | |
| parent | d15d5acf01ded806bea77963c816587e9fca5ed8 (diff) | |
Merge pull request #396 from bambu/small_python_bugs
Fixed small python bugs
Diffstat (limited to 'python/__init__.py')
| -rw-r--r-- | python/__init__.py | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/python/__init__.py b/python/__init__.py index b88c5beb..0f57f651 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -4343,16 +4343,6 @@ class Function(object): return result @property - def indirect_branches(self): - count = ctypes.c_ulonglong() - branches = core.BNGetIndirectBranches(self.handle, count) - result = [] - for i in xrange(0, count.value): - result.append(IndirectBranchInfo(Architecture(branches[i].sourceArch), branches[i].sourceAddr, Architecture(branches[i].destArch), branches[i].destAddr, branches[i].autoDefined)) - core.BNFreeIndirectBranchList(branches) - return result - - @property def low_level_il(self): """Function low level IL (read-only)""" return LowLevelILFunction(self.arch, core.BNNewLowLevelILFunctionReference( @@ -8201,7 +8191,7 @@ class Transform: def perform_decode(self, data, params): if self.type == "InvertingTransform": - return perform_encode(data, params) + return self.perform_encode(data, params) return None def perform_encode(self, data, params): @@ -9852,7 +9842,7 @@ def demangle_ms(arch, mangled_name): for i in xrange(outSize.value): names.append(outName[i]) return (Type(handle), names) - return (None, mangledName) + return (None, mangled_name) _output_to_log = False def redirect_output_to_log(): |
