Skip to content

Commit

Permalink
Merge pull request #2238 from s-ff/scripts-fix-caps-by-function
Browse files Browse the repository at this point in the history
scripts/show-capabilities-by-function.py: fix incorrect function address
  • Loading branch information
mr-tz authored Jul 29, 2024
2 parents cf3494d + 8476aee commit b9c4cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/show-capabilities-by-function.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def render_matches_by_function(doc: rd.ResultDocument):
for f in doc.meta.analysis.feature_counts.functions:
if not matches_by_function.get(f.address, {}):
continue
ostream.writeln(f"function at {capa.render.verbose.format_address(addr)} with {f.count} features: ")
ostream.writeln(f"function at {capa.render.verbose.format_address(f.address)} with {f.count} features: ")
for rule_name in sorted(matches_by_function[f.address]):
ostream.writeln(" - " + rule_name)

Expand Down

0 comments on commit b9c4cc6

Please sign in to comment.