Skip to content

Commit

Permalink
Merge pull request #1874 from mandiant/fix/global-features
Browse files Browse the repository at this point in the history
only check and display file limitation once
  • Loading branch information
mr-tz authored Nov 28, 2023
2 parents d84457e + 8f0eb56 commit 8946cb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion capa/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,7 @@ def main(argv: Optional[List[str]] = None):
meta = collect_metadata(argv, args.sample, args.format, args.os, args.rules, extractor, counts)
meta.analysis.layout = compute_layout(rules, extractor, capabilities)

if isinstance(extractor, StaticFeatureExtractor) and has_file_limitation(rules, capabilities):
if isinstance(extractor, StaticFeatureExtractor) and found_file_limitation:
# bail if capa's static feature extractor encountered file limitation e.g. a packed binary
# do show the output in verbose mode, though.
if not (args.verbose or args.vverbose or args.json):
Expand Down

0 comments on commit 8946cb6

Please sign in to comment.