diff --git a/tools/web-fuzzing-introspection/app/webapp/models.py b/tools/web-fuzzing-introspection/app/webapp/models.py index e1e9144db..499c0fdff 100644 --- a/tools/web-fuzzing-introspection/app/webapp/models.py +++ b/tools/web-fuzzing-introspection/app/webapp/models.py @@ -129,7 +129,7 @@ def __init__(self, self.is_jvm_library = is_jvm_library self.is_enum_class = is_enum_class - def __dict__(self): + def to_dict(self): return { 'function_name': self.name, 'function_arguments': self.function_arguments, diff --git a/tools/web-fuzzing-introspection/app/webapp/routes.py b/tools/web-fuzzing-introspection/app/webapp/routes.py index 12956d519..c08bb4022 100644 --- a/tools/web-fuzzing-introspection/app/webapp/routes.py +++ b/tools/web-fuzzing-introspection/app/webapp/routes.py @@ -575,6 +575,7 @@ def oracle_1(all_functions, all_projects, max_project_count=5): and function.accummulated_cyclomatic_complexity > 30): to_continue = False + for proj in all_projects: if proj.name == function.project and proj.language in { 'c', 'c++' @@ -1503,7 +1504,7 @@ def api_all_interesting_function_targets(): # Rewrite list list_of_targets = [] for func, heuristic_name in functions_to_display: - dict_to_use = func.__dict__() + dict_to_use = func.to_dict() list_of_targets.append({ 'function_target': dict_to_use,