mirror of
https://github.com/mandiant/capa.git
synced 2026-01-03 16:27:58 -08:00
adding support for basicblock feature introduced by 78
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user