Merge pull request #1218 from mandiant/fix/issue-1194

small explorer fixes
This commit is contained in:
Willi Ballenthin
2022-12-07 15:11:02 +01:00
committed by GitHub
3 changed files with 4 additions and 0 deletions

View File

@@ -51,6 +51,8 @@
### capa explorer IDA Pro plugin
- fix: display instruction items #1154 @mr-tz
- fix: accept only plaintext pasted content #1194 @williballenthin
- fix: UnboundLocalError #1217 @williballenthin
### Development

View File

@@ -916,6 +916,7 @@ class CapaExplorerForm(idaapi.PluginForm):
logger.error("Failed to match function/basic block rule scope (error: %s)", e)
return False
else:
fh = None
func_features = {}
except UserCancelledError:
logger.info("User cancelled analysis.")

View File

@@ -184,6 +184,7 @@ class CapaExplorerRulegenPreview(QtWidgets.QTextEdit):
self.setFont(QtGui.QFont("Courier", weight=QtGui.QFont.Bold))
self.setLineWrapMode(QtWidgets.QTextEdit.NoWrap)
self.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)
self.setAcceptRichText(False)
def reset_view(self):
""" """