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_c_lexer_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 0 0.0%
gold [1:9] 4 7.14%
yellow [10:29] 1 1.78%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 51 91.0%
All colors 56 100

Runtime coverage analysis

Covered functions
15
Functions that are reachable but not covered
0
Reachable functions
27
Percentage of reachable functions covered
100.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
tests/local_fuzz/c_lexer.c 1
./stb_c_lexer.h 14

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 9 3.02%
gold [1:9] 6 2.01%
yellow [10:29] 3 1.00%
greenyellow [30:49] 5 1.67%
lawngreen 50+ 275 92.2%
All colors 298 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
2 179 stbi__compute_transparency(stbi__png*, unsigned char*, int) call site: 00179 __assert_fail
1 122 stbi__compute_huffman_codes(stbi__zbuf*) call site: 00122
1 219 stbi__do_png(stbi__png*, int*, int*, int*, int, stbi__result_info*) call site: 00219
1 229 stbi__convert_format(unsigned char*, int, int, unsigned int, unsigned int) call site: 00229 __assert_fail
1 245 stbi__convert_format16(unsigned short*, int, int, unsigned int, unsigned int) call site: 00245 __assert_fail
1 250 stbi__do_png(stbi__png*, int*, int*, int*, int, stbi__result_info*) call site: 00250
1 259 stbi__convert_16_to_8(unsigned short*, int, int, int) call site: 00259
1 276 stbi__convert_8_to_16(unsigned char*, int, int, int) call site: 00276

Runtime coverage analysis

Covered functions
84
Functions that are reachable but not covered
6
Reachable functions
155
Percentage of reachable functions covered
96.13%
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/local_fuzz/image.c 5
./stb_image.h 79

Fuzzer: stb_vorbis_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 26 5.10%
gold [1:9] 3 0.58%
yellow [10:29] 6 1.17%
greenyellow [30:49] 8 1.57%
lawngreen 50+ 466 91.5%
All colors 509 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
10 106 start_decoder(stb_vorbis*) call site: 00106 memcmp
2 101 start_decoder(stb_vorbis*) call site: 00101 ftell
2 355 start_decoder(stb_vorbis*) call site: 00355 __assert_fail
2 493 stb_vorbis_get_frame_short call site: 00493
2 499 stb_vorbis_get_frame_short_interleaved call site: 00499
1 7 capture_pattern(stb_vorbis*) call site: 00007 fgetc
1 14 start_page_no_capturepattern(stb_vorbis*) call site: 00014 ftell
1 30 start_page_no_capturepattern(stb_vorbis*) call site: 00030 fread
1 221 start_decoder(stb_vorbis*) call site: 00221
1 343 compute_twiddle_factors(int, float*, float*, float*) call site: 00343 sin
1 376 vorbis_decode_initial(stb_vorbis*, int*, int*, int*, int*, int*) call site: 00376
1 384 vorbis_decode_packet(stb_vorbis*, int*, int*, int*) call site: 00384

Runtime coverage analysis

Covered functions
84
Functions that are reachable but not covered
19
Reachable functions
179
Percentage of reachable functions covered
89.39%
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/local_fuzz/vorbis.c 5
./stb_vorbis.c 82

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 33 3.39%
gold [1:9] 19 1.95%
yellow [10:29] 21 2.15%
greenyellow [30:49] 21 2.15%
lawngreen 50+ 879 90.3%
All colors 973 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
2 261 stbi__compute_transparency(stbi__png*, unsigned char*, int) call site: 00261 __assert_fail
2 865 stbi__tga_load(stbi__context*, int*, int*, int*, int, stbi__result_info*) call site: 00865
1 212 stbi__compute_huffman_codes(stbi__zbuf*) call site: 00212
1 292 stbi__gif_header(stbi__context*, stbi__gif*, int*, int) call site: 00292
1 336 stbi__bmp_parse_header(stbi__context*, stbi__bmp_data*) call site: 00336
1 461 stbi__do_png(stbi__png*, int*, int*, int*, int, stbi__result_info*) call site: 00461
1 471 stbi__convert_format(unsigned char*, int, int, unsigned int, unsigned int) call site: 00471 __assert_fail
1 487 stbi__convert_format16(unsigned short*, int, int, unsigned int, unsigned int) call site: 00487 __assert_fail
1 506 stbi__bmp_load(stbi__context*, int*, int*, int*, int, stbi__result_info*) call site: 00506
1 510 stbi__bmp_load(stbi__context*, int*, int*, int*, int, stbi__result_info*) call site: 00510
1 567 stbi__gif_load_next(stbi__context*, stbi__gif*, int*, int, unsigned char*) call site: 00567
1 589 stbi__process_gif_raster(stbi__context*, stbi__gif*) call site: 00589

Runtime coverage analysis

Covered functions
176
Functions that are reachable but not covered
8
Reachable functions
324
Percentage of reachable functions covered
97.53%
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/local_fuzz/image.c 5
./stb_image.h 162

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/local_fuzz/c_lexer.c

Dictionary

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


tests/local_fuzz/image.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__compute_transparency(stbi__png*, unsigned char*, int)', 'stbi__compute_huffman_codes(stbi__zbuf*)', 'stbi__do_png(stbi__png*, int*, int*, int*, int, stbi__result_info*)', 'stbi__convert_format(unsigned char*, int, int, unsigned int, unsigned int)', 'stbi__convert_format16(unsigned short*, int, int, unsigned int, unsigned int)', 'stbi__do_png(stbi__png*, int*, int*, int*, int, stbi__result_info*)', 'stbi__convert_16_to_8(unsigned short*, int, int, int)', 'stbi__convert_8_to_16(unsigned char*, int, int, int)']

tests/local_fuzz/vorbis.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=['start_decoder(stb_vorbis*)', 'start_decoder(stb_vorbis*)', 'start_decoder(stb_vorbis*)', 'stb_vorbis_get_frame_short', 'stb_vorbis_get_frame_short_interleaved', 'capture_pattern(stb_vorbis*)', 'start_page_no_capturepattern(stb_vorbis*)', 'start_page_no_capturepattern(stb_vorbis*)', 'start_decoder(stb_vorbis*)', 'compute_twiddle_factors(int, float*, float*, float*)']

tests/local_fuzz/image.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__compute_transparency(stbi__png*, unsigned char*, int)', 'stbi__tga_load(stbi__context*, int*, int*, int*, int, stbi__result_info*)', 'stbi__compute_huffman_codes(stbi__zbuf*)', 'stbi__gif_header(stbi__context*, stbi__gif*, int*, int)', 'stbi__bmp_parse_header(stbi__context*, stbi__bmp_data*)', 'stbi__do_png(stbi__png*, int*, int*, int*, int, stbi__result_info*)', 'stbi__convert_format(unsigned char*, int, int, unsigned int, unsigned int)', 'stbi__convert_format16(unsigned short*, int, int, unsigned int, unsigned int)', 'stbi__bmp_load(stbi__context*, int*, int*, int*, int, stbi__result_info*)', 'stbi__bmp_load(stbi__context*, int*, int*, int*, int, stbi__result_info*)']