Skip to content

Instantly share code, notes, and snippets.

@DavidKorczynski
Created May 23, 2024 19:56
Show Gist options
  • Save DavidKorczynski/f573d074d7745f351f76fcecd4a51930 to your computer and use it in GitHub Desktop.
Save DavidKorczynski/f573d074d7745f351f76fcecd4a51930 to your computer and use it in GitHub Desktop.
Lorawan-parser Fuzz Introspector sample output
## Intro
The following is a sample output from Fuzz Introspector (https://github.com/ossf/fuzz-introspector)
of the lorawan-parser `json_validate` function. The goal is to show here what information is available
on for each function in a program under Fuzz Introspector analysis.
This is used by OSS-Fuzz-gen to synthesize fuzzing harnesses: https://github.com/google/oss-fuzz-gen
This information is also used by https://introspector.oss-fuzz.com/ to show information about a large
set of open source projects being fuzzed.
```
{
"Func name": "json_validate",
"func_url": "/covreport/linux/src/test-fuzz-build-2/./lib/json.c.html#L434",
"Functions filename": "/src/test-fuzz-build-2/./lib/json.c",
"Args": [
"N/A"
],
"Function call depth": 7,
"Reached by Fuzzers": [],
"collapsible_id": "json_validate_jeskbeA",
"Fuzzers runtime hit": "no",
"Func lines hit %": "0.0%",
"I Count": 45,
"BB Count": 8,
"Cyclomatic complexity": 4,
"Functions reached": 45,
"Reached by functions": 0,
"Accumulated cyclomatic complexity": 212,
"Undiscovered complexity": 212,
"ArgNames": [
"json"
],
"return_type": "bool",
"raw-function-name": "json_validate",
"callsites": {
"skip_space": [
"./lib/json.c#json_validate:437",
"./lib/json.c#json_validate:441"
],
"parse_value": [
"./lib/json.c#json_validate:438"
]
},
"source_line_begin": 434,
"source_line_end": 446,
"is_accessible": true,
"is_jvm_library": false,
"is_enum_class": false,
"function_signature": "bool json_validate(const char *)",
"debug_function_info": {
"name": "json_validate",
"file_location": "/src/test-fuzz-build-2/./lib/json.c:433",
"type_arguments": [
94046044259992,
94046042051824
],
"raw_name": "json_validate",
"is_public": 0,
"is_private": 0,
"func_signature_elems": {
"return_type": [
"DW_TAG_base_type",
"bool"
],
"params": [
[
"DW_TAG_pointer_type",
"DW_TAG_const_type",
"char"
]
]
},
"source": {
"source_file": "/src/test-fuzz-build-2/lib/json.c",
"source_line": "433"
},
"return_type": "bool",
"args": [
"const char *"
]
}
},
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment