From b8f49d5fecc354ad25533efad8660f4c07b9879b Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 27 Jul 2018 20:24:10 -0400 Subject: Expose the ability to suppress analysis of auto-discovered functions --- python/binaryview.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'python/binaryview.py') diff --git a/python/binaryview.py b/python/binaryview.py index 25953b34..35ef6a40 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -1098,6 +1098,15 @@ class BinaryView(object): def max_function_size_for_analysis(self, size): core.BNSetMaxFunctionSizeForAnalysis(self.handle, size) + @property + def new_auto_function_analysis_suppressed(self): + """Whether or not automatically discovered functions will be analyzed""" + return core.BNGetNewAutoFunctionAnalysisSuppressed(self.handle) + + @new_auto_function_analysis_suppressed.setter + def new_auto_function_analysis_suppressed(self, suppress): + core.BNSetNewAutoFunctionAnalysisSuppressed(self.handle, suppress) + def __len__(self): return int(core.BNGetViewLength(self.handle)) -- cgit v1.3.1 From cfeda2e333f094e678289ff4a64635bf9d76982a Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Wed, 1 Aug 2018 17:27:15 -0400 Subject: Fix analysis_info broken in python merge from b460b9495a. --- python/binaryview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/binaryview.py') diff --git a/python/binaryview.py b/python/binaryview.py index 35ef6a40..63a12caa 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -983,7 +983,7 @@ class BinaryView(object): info = info_ref[0] active_info_list = [] for i in xrange(0, info.count): - func = function.Function(self, core.BNNewFunctionReference(info.activeInfo[i].func)) + func = binaryninja.function.Function(self, core.BNNewFunctionReference(info.activeInfo[i].func)) active_info = ActiveAnalysisInfo(func, info.activeInfo[i].analysisTime, info.activeInfo[i].updateCount, info.activeInfo[i].submitCount) active_info_list.append(active_info) result = AnalysisInfo(info.state, info.analysisTime, active_info_list) -- cgit v1.3.1 From 5adbd368a2f312aff5d949df5d7bbf1097c10bbd Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Fri, 10 Aug 2018 14:44:21 -0400 Subject: Return the boolean value from bv.navigate in the Python API. --- python/binaryview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/binaryview.py') diff --git a/python/binaryview.py b/python/binaryview.py index 63a12caa..5e3e765d 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -1747,7 +1747,7 @@ class BinaryView(object): self.file.redo() def navigate(self, view, offset): - self.file.navigate(view, offset) + return self.file.navigate(view, offset) def read(self, addr, length): """ -- cgit v1.3.1