From 6dc75c5f29583d2b1e669d11b17d5f51423fe092 Mon Sep 17 00:00:00 2001 From: Michael Hunhoff Date: Fri, 3 Jul 2020 14:34:32 -0600 Subject: [PATCH] adding support for basicblock feature introduced by 78 --- capa/ida/explorer/model.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/capa/ida/explorer/model.py b/capa/ida/explorer/model.py index 4d876fee..3325e283 100644 --- a/capa/ida/explorer/model.py +++ b/capa/ida/explorer/model.py @@ -530,6 +530,9 @@ class CapaExplorerDataModel(QtCore.QAbstractItemModel): parent, display, source=doc["rules"].get(feature[feature["type"]], {}).get("source", "") ) + if feature["type"] == "basicblock": + return CapaExplorerBlockItem(parent, location) + if feature["type"] in instruction_view: return CapaExplorerInstructionViewItem(parent, display, location)