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] 12 5.55%
greenyellow [30:49] 5 2.31%
lawngreen 50+ 169 78.2%
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 56 6.10%
gold [1:9] 13 1.41%
yellow [10:29] 26 2.83%
greenyellow [30:49] 12 1.30%
lawngreen 50+ 811 88.3%
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
7 789 load_jpeg_image(stbi__jpeg*, int*, int*, int*, int) call site: 00789
6 452 stbi__convert_format(unsigned char*, int, int, unsigned int, unsigned int) call site: 00452 __assert_fail
6 461 stbi__convert_format16(unsigned short*, int, int, unsigned int, unsigned int) call site: 00461 __assert_fail
2 84 stbi__malloc_mad2(int, int, int) call site: 00084
2 89 stbi__malloc_mad3(int, int, int, int) call site: 00089
2 245 stbi__compute_transparency(stbi__png*, unsigned char*, int) call site: 00245 __assert_fail
2 572 stbi__gif_load_next(stbi__context*, stbi__gif*, int*, int, unsigned char*) call site: 00572
2 615 stbi__psd_load(stbi__context*, int*, int*, int*, int, stbi__result_info*, int) call site: 00615
1 10 stbi__get_marker(stbi__jpeg*) call site: 00010
1 201 stbi__compute_huffman_codes(stbi__zbuf*) call site: 00201
1 320 stbi__bmp_parse_header(stbi__context*, stbi__bmp_data*) call site: 00320
1 413 stbi__hdr_info(stbi__context*, int*, int*, int*) call site: 00413 strtol

Runtime coverage analysis

Covered functions
151
Functions that are reachable but not covered
15
Reachable functions
299
Percentage of reachable functions covered
94.98%
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=['load_jpeg_image(stbi__jpeg*, int*, int*, int*, int)', 'stbi__convert_format(unsigned char*, int, int, unsigned int, unsigned int)', 'stbi__convert_format16(unsigned short*, int, int, unsigned int, unsigned int)', 'stbi__malloc_mad2(int, int, int)', 'stbi__malloc_mad3(int, int, int, int)', 'stbi__compute_transparency(stbi__png*, unsigned char*, int)', 'stbi__gif_load_next(stbi__context*, stbi__gif*, int*, int, unsigned char*)', 'stbi__psd_load(stbi__context*, int*, int*, int*, int, stbi__result_info*, int)', 'stbi__get_marker(stbi__jpeg*)', 'stbi__compute_huffman_codes(stbi__zbuf*)']