Exemplo n.º 1
0
 def _update(self, ctxt):
     try:
         graph = self.update()
         if graph is None:
             return None
         return core.BNNewFlowGraphReference(graph.handle)
     except:
         log.log_error(traceback.format_exc())
         return None
Exemplo n.º 2
0
	def _update(self, ctxt):
		try:
			graph = self.update()
			if graph is None:
				return None
			return ctypes.cast(core.BNNewFlowGraphReference(graph.handle), ctypes.c_void_p).value
		except:
			log.log_error(traceback.format_exc())
			return None
Exemplo n.º 3
0
	def _show_graph_report(self, ctxt, view, title, graph):
		try:
			if view:
				view = binaryview.BinaryView(handle = core.BNNewViewReference(view))
			else:
				view = None
			self.show_graph_report(view, title, flowgraph.CoreFlowGraph(core.BNNewFlowGraphReference(graph)))
		except:
			log.log_error(traceback.format_exc())