From fbf78f2b99ea3ce8f1a5f9a9177aa9d97e521bd5 Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Mon, 27 Jan 2025 13:14:45 +0000 Subject: [PATCH] core: enable adding more files for analysis (#2027) Signed-off-by: David Korczynski --- src/fuzz_introspector/frontends/oss_fuzz.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fuzz_introspector/frontends/oss_fuzz.py b/src/fuzz_introspector/frontends/oss_fuzz.py index 133fa37ed..c02e06961 100644 --- a/src/fuzz_introspector/frontends/oss_fuzz.py +++ b/src/fuzz_introspector/frontends/oss_fuzz.py @@ -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: