Fuzz introspector
For issues and ideas: https://github.com/ossf/fuzz-introspector/issues

Project functions overview

The following table shows data about each function in the project. The functions included in this table correspond to all functions that exist in the executables of the fuzzers. As such, there may be functions that are from third-party libraries.

For further technical details on the meaning of columns in the below table, please see the Glossary .

Func name Functions filename Args Function call depth Reached by Fuzzers Runtime reached by Fuzzers Combined reached by Fuzzers Fuzzers runtime hit Func lines hit % I Count BB Count Cyclomatic complexity Functions reached Reached by functions Accumulated cyclomatic complexity Undiscovered complexity

Fuzzer details

Fuzzer: fuzz_gltf_v3_c

Call tree

The calltree shows the control flow of the fuzzer. This is overlaid with coverage information to display how much of the potential code a fuzzer can reach is in fact covered at runtime. In the following there is a link to a detailed calltree visualisation as well as a bitmap showing a high-level view of the calltree. For further information about these topics please see the glossary for full calltree and calltree overview

Call tree overview bitmap:

The distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 282 34.8%
gold [1:9] 64 7.90%
yellow [10:29] 11 1.35%
greenyellow [30:49] 27 3.33%
lawngreen 50+ 426 52.5%
All colors 810 100

Fuzz blockers

The following nodes represent call sites where fuzz blockers occur.

Amount of callsites blocked Calltree index Parent function Callsite Largest blocked function
52 150 tg3__json_to_value call site: 00150 tg3json_stringify
22 627 tg3__parse_from_json call site: 00627 tg3__parse_extras_and_extensions
20 671 tg3__parse_from_json call site: 00671 tg3__parse_light
20 771 tg3__validate_resources call site: 00771 tg3__validate_range_in_buffer_view
18 714 tg3__parse_from_json call site: 00714 tg3__parse_extras_and_extensions
14 277 tg3__load_external_file call site: 00277 tg3__parse_extras_and_extensions
11 395 tg3__parse_primitive call site: 00395 tg3__error_pushf
9 451 tg3__parse_node call site: 00451 tg3__parse_int_array
8 251 tg3__json_number_to_uint64 call site: 00251 tg3__parse_extras_and_extensions
8 426 tg3__parse_int_array call site: 00426 tg3__error_pushf
6 23 tg3__parse_glb_header call site: 00023 tg3__arena_create
6 499 tg3__parse_texture_info call site: 00499 tg3__parse_texture_info

Runtime coverage analysis

Covered functions
110
Functions that are reachable but not covered
28
Reachable functions
136
Percentage of reachable functions covered
79.41%
NB: The sum of covered functions and functions that are reachable but not covered need not be equal to Reachable functions . This is because the reachability analysis is an approximation and thus at runtime some functions may be covered that are not included in the reachability analysis. This is a limitation of our static analysis capabilities.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
tests/v3/fuzzer/fuzz_gltf_v3_c.c 2
tiny_gltf_v3.c 91
./tinygltf_json_c.h 38

Fuzzer: fuzz_gltf_v3

Call tree

The calltree shows the control flow of the fuzzer. This is overlaid with coverage information to display how much of the potential code a fuzzer can reach is in fact covered at runtime. In the following there is a link to a detailed calltree visualisation as well as a bitmap showing a high-level view of the calltree. For further information about these topics please see the glossary for full calltree and calltree overview

Call tree overview bitmap:

The distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 350 42.5%
gold [1:9] 66 8.02%
yellow [10:29] 11 1.33%
greenyellow [30:49] 17 2.06%
lawngreen 50+ 378 45.9%
All colors 822 100

Fuzz blockers

The following nodes represent call sites where fuzz blockers occur.

Amount of callsites blocked Calltree index Parent function Callsite Largest blocked function
52 145 tg3__json_to_value(tg3__parse_ctx*, tg3json_value const*) call site: 00145 tg3json_stringify
45 241 tg3__parse_uint64(tg3__parse_ctx*, tg3json_value const*, char const*, unsigned long*, int, char const*) call site: 00241 tg3_is_data_uri
40 687 tg3__parse_from_json(tg3__parse_ctx*, tg3json_value const*, tg3_model*) call site: 00687 tg3json_object_get
20 766 tg3__validate_resources(tg3__parse_ctx*, tg3_model const*) call site: 00766 tg3_component_size
14 345 tg3__parse_accessor_sparse(tg3__parse_ctx*, tg3json_value const*, tg3_accessor_sparse*) call site: 00345
12 674 tg3__parse_from_json(tg3__parse_ctx*, tg3json_value const*, tg3_model*) call site: 00674
11 390 tg3__parse_primitive(tg3__parse_ctx*, tg3json_value const*, tg3_primitive*) call site: 00390 tg3json_array_get
10 14 tg3__parse_glb_header(unsigned char const*, unsigned long, unsigned char const**, unsigned long*, unsigned char const**, unsigned long*, tg3_error_stack*) call site: 00014 tg3_parse_options_init
9 295 tg3__parse_from_json(tg3__parse_ctx*, tg3json_value const*, tg3_model*) call site: 00295
9 446 tg3__parse_node(tg3__parse_ctx*, tg3json_value const*, tg3_node*) call site: 00446 tg3json_object_get
9 626 tg3__parse_camera(tg3__parse_ctx*, tg3json_value const*, tg3_camera*) call site: 00626
8 421 tg3__parse_int_array(tg3__parse_ctx*, tg3json_value const*, char const*, int const**, unsigned int*, int, char const*) call site: 00421 tg3json_array_get

Runtime coverage analysis

Covered functions
99
Functions that are reachable but not covered
74
Reachable functions
252
Percentage of reachable functions covered
70.63%
NB: The sum of covered functions and functions that are reachable but not covered need not be equal to Reachable functions . This is because the reachability analysis is an approximation and thus at runtime some functions may be covered that are not included in the reachability analysis. This is a limitation of our static analysis capabilities.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
tests/v3/fuzzer/fuzz_gltf_v3.cc 5
./tiny_gltf_v3.c 91
./tinygltf_json_c.h 38

Fuzz engine guidance

This sections provides heuristics that can be used as input to a fuzz engine when running a given fuzz target. The current focus is on providing input that is usable by libFuzzer.

tests/v3/fuzzer/fuzz_gltf_v3_c.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['tg3__json_to_value', 'tg3__parse_from_json', 'tg3__validate_resources', 'tg3__load_external_file', 'tg3__parse_primitive', 'tg3__parse_node', 'tg3__json_number_to_uint64', 'tg3__parse_int_array']

tests/v3/fuzzer/fuzz_gltf_v3.cc

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['tg3__json_to_value(tg3__parse_ctx*, tg3json_value const*)', 'tg3__parse_uint64(tg3__parse_ctx*, tg3json_value const*, char const*, unsigned long*, int, char const*)', 'tg3__parse_from_json(tg3__parse_ctx*, tg3json_value const*, tg3_model*)', 'tg3__validate_resources(tg3__parse_ctx*, tg3_model const*)', 'tg3__parse_accessor_sparse(tg3__parse_ctx*, tg3json_value const*, tg3_accessor_sparse*)', 'tg3__parse_from_json(tg3__parse_ctx*, tg3json_value const*, tg3_model*)', 'tg3__parse_primitive(tg3__parse_ctx*, tg3json_value const*, tg3_primitive*)', 'tg3__parse_glb_header(unsigned char const*, unsigned long, unsigned char const**, unsigned long*, unsigned char const**, unsigned long*, tg3_error_stack*)', 'tg3__parse_from_json(tg3__parse_ctx*, tg3json_value const*, tg3_model*)', 'tg3__parse_node(tg3__parse_ctx*, tg3json_value const*, tg3_node*)']