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: stb_png_read_fuzzer

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 21 9.72%
gold [1:9] 9 4.16%
yellow [10:29] 10 4.62%
greenyellow [30:49] 8 3.70%
lawngreen 50+ 168 77.7%
All colors 216 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
7 203 stbi__convert_format16(unsigned short*, int, int, unsigned int, unsigned int) call site: 00203 __assert_fail
6 194 stbi__convert_format(unsigned char*, int, int, unsigned int, unsigned int) call site: 00194 __assert_fail
2 167 stbi__compute_transparency(stbi__png*, unsigned char*, int) call site: 00167 __assert_fail
2 177 stbi__parse_png_file(stbi__png*, int, int) call site: 00177
1 8 stbi__check_png_header(stbi__context*) call site: 00008
1 115 stbi__compute_huffman_codes(stbi__zbuf*) call site: 00115
1 190 stbi__do_png(stbi__png*, int*, int*, int*, int, stbi__result_info*) call site: 00190
1 214 stbi__convert_16_to_8(unsigned short*, int, int, int) call site: 00214

Runtime coverage analysis

Covered functions
56
Functions that are reachable but not covered
12
Reachable functions
120
Percentage of reachable functions covered
90.0%
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
/src/stb/tests/stbi_read_fuzzer.c 1
stb_image.h 60

Fuzzer: stbi_read_fuzzer

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 572 62.3%
gold [1:9] 199 21.6%
yellow [10:29] 60 6.53%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 87 9.47%
All colors 918 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
53 859 stbi__hdr_to_ldr(float*, int, int, int) call site: 00859 __assert_fail
51 719 stbi__jpeg_decode_block(stbi__jpeg*, short*, stbi__huffman*, stbi__huffman*, short*, int, unsigned short*) call site: 00719
48 478 stbi__load_main(stbi__context*, int*, int*, int*, int, stbi__result_info*, int) call site: 00478 __assert_fail
47 285 stbi__bmp_parse_header(stbi__context*, stbi__bmp_data*) call site: 00285
43 624 stbi__load_main(stbi__context*, int*, int*, int*, int, stbi__result_info*, int) call site: 00624
41 533 stbi__load_main(stbi__context*, int*, int*, int*, int, stbi__result_info*, int) call site: 00533
39 578 stbi__load_main(stbi__context*, int*, int*, int*, int, stbi__result_info*, int) call site: 00578
25 412 stbi__hdr_info(stbi__context*, int*, int*, int*) call site: 00412 strtol
21 776 stbi__cleanup_jpeg(stbi__jpeg*) call site: 00776
20 370 stbi__pnm_info(stbi__context*, int*, int*, int*) call site: 00370
19 448 stbi__do_png(stbi__png*, int*, int*, int*, int, stbi__result_info*) call site: 00448 __assert_fail
18 838 stbi__hdr_load(stbi__context*, int*, int*, int*, int, stbi__result_info*) call site: 00838

Runtime coverage analysis

Covered functions
99
Functions that are reachable but not covered
107
Reachable functions
299
Percentage of reachable functions covered
64.21%
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
/src/stb/tests/stbi_read_fuzzer.c 1
stb_image.h 148

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.

/src/stb/tests/stbi_read_fuzzer.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=['stbi__convert_format16(unsigned short*, int, int, unsigned int, unsigned int)', 'stbi__convert_format(unsigned char*, int, int, unsigned int, unsigned int)', 'stbi__compute_transparency(stbi__png*, unsigned char*, int)', 'stbi__parse_png_file(stbi__png*, int, int)', 'stbi__check_png_header(stbi__context*)', 'stbi__compute_huffman_codes(stbi__zbuf*)', 'stbi__do_png(stbi__png*, int*, int*, int*, int, stbi__result_info*)', 'stbi__convert_16_to_8(unsigned short*, int, int, int)']

/src/stb/tests/stbi_read_fuzzer.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=['stbi__hdr_to_ldr(float*, int, int, int)', 'stbi__jpeg_decode_block(stbi__jpeg*, short*, stbi__huffman*, stbi__huffman*, short*, int, unsigned short*)', 'stbi__load_main(stbi__context*, int*, int*, int*, int, stbi__result_info*, int)', 'stbi__bmp_parse_header(stbi__context*, stbi__bmp_data*)', 'stbi__load_main(stbi__context*, int*, int*, int*, int, stbi__result_info*, int)', 'stbi__load_main(stbi__context*, int*, int*, int*, int, stbi__result_info*, int)', 'stbi__load_main(stbi__context*, int*, int*, int*, int, stbi__result_info*, int)', 'stbi__hdr_info(stbi__context*, int*, int*, int*)', 'stbi__cleanup_jpeg(stbi__jpeg*)', 'stbi__pnm_info(stbi__context*, int*, int*, int*)']