Skip to content

Commit

Permalink
webapp: Fix wrong language used for db building
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
  • Loading branch information
arthurscchan committed Nov 27, 2024
1 parent 4990b31 commit 4e95cee
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,13 @@ def extract_local_project_data(project_name, oss_fuzz_path,
manager_return_dict):
"""Extracts data for a project using a local OSS-Fuzz output."""
print(f'Analysing {project_name}')
project_language = 'c++'
try:
project_language = oss_fuzz.try_to_get_project_language(project_name)
if project_language == 'jvm':
project_language = 'java'
except:
# Default set to c++ as this is OSS-Fuzz's default.
project_language = 'c++'

code_coverage_summary = oss_fuzz.get_local_code_coverage_summary(
project_name, oss_fuzz_path)
Expand Down Expand Up @@ -1327,7 +1333,6 @@ def create_local_db(oss_fuzz_path):
for project in projects_to_analyse:
# Get the data
extract_local_project_data(project, oss_fuzz_path, analyses_dictionary)

# Accummulate the data from all the projects.
all_header_files = []
for project_dict in analyses_dictionary.values():
Expand Down

0 comments on commit 4e95cee

Please sign in to comment.