From 6fc5806f57bfcdc2fa98b5a8b497532be3bbc0ed Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Sat, 14 Sep 2024 21:25:42 +0100 Subject: [PATCH] introspector: use introspector to get harness/source pairs by default (#611) Ref: https://github.com/google/oss-fuzz-gen/issues/525 --------- Signed-off-by: David Korczynski --- data_prep/introspector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data_prep/introspector.py b/data_prep/introspector.py index 233c468360..8126e11994 100755 --- a/data_prep/introspector.py +++ b/data_prep/introspector.py @@ -40,7 +40,7 @@ TIMEOUT = 45 MAX_RETRY = 5 -USE_FI_TO_GET_TARGETS = bool(int(os.getenv('OSS_FI_TO_GET_TARGETS', '0'))) +USE_FI_TO_GET_TARGETS = bool(int(os.getenv('OSS_FI_TO_GET_TARGETS', '1'))) # By default exclude static functions when identifying fuzz target candidates # to generate benchmarks. @@ -734,7 +734,7 @@ def _get_harness_intrinsics( filenames, language='') -> tuple[Optional[str], Optional[str], Dict[str, str]]: """Returns a harness source path and executable from a given project.""" - if USE_FI_TO_GET_TARGETS and language != 'jvm': + if USE_FI_TO_GET_TARGETS and language != 'jvm' and language != 'python': harnesses = query_introspector_for_harness_intrinsics(project) harness_dict = harnesses[0] harness = harness_dict['source']