Skip to content

Commit

Permalink
core: enable adding more files for analysis (#2027)
Browse files Browse the repository at this point in the history
Signed-off-by: David Korczynski <david@adalogics.com>
  • Loading branch information
DavidKorczynski authored Jan 27, 2025
1 parent b661b3d commit fbf78f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fuzz_introspector/frontends/oss_fuzz.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,13 @@ def analyse_folder(language: str = '',
entrypoint: str = '',
out='',
module_only=False,
dump_output=True) -> Project:
dump_output=True,
files_to_include: list[str] = []) -> Project:
"""Runs a full frontend analysis on a given directory"""

# Extract source files for target language
source_files = capture_source_files_in_tree(directory, language)
source_files.extend(files_to_include)
logger.info('Found %d files to include in analysis', len(source_files))

if language == constants.LANGUAGES.C:
Expand Down

0 comments on commit fbf78f2

Please sign in to comment.