@@ -370,7 +370,7 @@ def __init__(self):
370
370
self .task = None
371
371
self .reviewer = None
372
372
373
- def start (self , args , files , reports_dir ):
373
+ def start (self , files , reports_dir , reviews = False , fuzzables = False ):
374
374
"""Starts the analysis process for the given source files.
375
375
376
376
This function takes the command-line arguments and the reports
@@ -391,10 +391,10 @@ def start(self, args, files, reports_dir):
391
391
f"[green] Blinting { len (files )} binaries" ,
392
392
total = len (files ), start = True , )
393
393
for f in files :
394
- self ._process_files (f , args , reports_dir )
394
+ self ._process_files (f , reports_dir , reviews , fuzzables )
395
395
return self .findings , self .reviews , self .fuzzables
396
396
397
- def _process_files (self , f , args , reports_dir ):
397
+ def _process_files (self , f , reports_dir , reviews , fuzzables ):
398
398
"""Processes the given file and generates findings.
399
399
400
400
Args:
@@ -419,10 +419,10 @@ def _process_files(self, f, args, reports_dir):
419
419
if finding := run_checks (f , metadata ):
420
420
self .findings += finding
421
421
# Perform symbol reviews
422
- if not args . no_reviews :
422
+ if reviews :
423
423
self .do_review (exe_name , f , metadata )
424
424
# Suggest fuzzable targets
425
- if args . suggest_fuzzable and (fuzzdata := run_prefuzz (metadata )):
425
+ if fuzzables and (fuzzdata := run_prefuzz (metadata )):
426
426
self .fuzzables .append (
427
427
{
428
428
"filename" : f ,
0 commit comments