diff --git a/src/fuzz_introspector/datatypes/function_profile.py b/src/fuzz_introspector/datatypes/function_profile.py index 6621cc4c2..4f8155b70 100644 --- a/src/fuzz_introspector/datatypes/function_profile.py +++ b/src/fuzz_introspector/datatypes/function_profile.py @@ -38,6 +38,7 @@ def __init__(self, elem: Dict[Any, Any]) -> None: self.function_source_file = elem['functionSourceFile'] self.linkage_type = elem['linkageType'] self.function_linenumber = elem['functionLinenumber'] + self.function_line_number_end = elem.get('functionLinenumberEnd', -1) self.return_type = elem['returnType'] self.arg_count = elem['argCount'] self.arg_types = elem['argTypes'] diff --git a/src/fuzz_introspector/html_report.py b/src/fuzz_introspector/html_report.py index 82b058118..7a7a27911 100644 --- a/src/fuzz_introspector/html_report.py +++ b/src/fuzz_introspector/html_report.py @@ -141,6 +141,8 @@ def create_all_function_table( json_copy['return_type'] = fd.return_type json_copy['raw-function-name'] = fd.raw_function_name json_copy['callsites'] = fd.callsite + json_copy['source_line_begin'] = fd.function_linenumber + json_copy['source_line_end'] = fd.function_line_number_end table_rows_json_report.append(json_copy) logger.info("Assembled a total of %d entries" %