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

Fuzzer details

Fuzzer: fuzztest_proto3_static

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 61 24.4%
gold [1:9] 0 0.0%
yellow [10:29] 1 0.40%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 187 75.1%
All colors 249 100

Fuzz blockers

The followings are the branches where fuzzer fails to bypass.

Unique non-covered Complexity Unique Reachable Complexities Unique Reachable Functions All non-covered Complexity All Reachable Complexity Function Name Function Callsite Blocked Branch
15 15 1 :

['pb_field_iter_begin_extension']

15 366 pb_field_set_to_default call site: 00020 /src/nanopb/pb_decode.c:874
5 5 1 :

['encode_callback_field']

5 5 encode_field call site: 00161 /src/nanopb/pb_encode.c:457
0 363 2 :

['pb_field_iter_begin', 'pb_message_set_to_defaults']

0 725 decode_static_field call site: 00095 /src/nanopb/pb_decode.c:536
0 47 2 :

['pb_close_string_substream', 'pb_make_string_substream']

0 428 pb_decode_ex call site: 00010 /src/nanopb/pb_decode.c:1158
0 9 1 :

['pb_write']

0 9 pb_encode_submessage call site: 00211 /src/nanopb/pb_encode.c:744
0 9 1 :

['pb_write']

0 9 encode_array call site: 00178 /src/nanopb/pb_encode.c:177
0 2 1 :

['pb_istream_from_buffer']

0 776 pb_message_set_to_defaults call site: 00014 /src/nanopb/pb_decode.c:958
0 0 None 346 804 pb_decode_inner call site: 00014 /src/nanopb/pb_decode.c:1011
0 0 None 346 804 pb_decode_inner call site: 00014 /src/nanopb/pb_decode.c:1047
0 0 None 346 804 pb_decode_inner call site: 00014 /src/nanopb/pb_decode.c:1059
0 0 None 346 804 pb_decode_inner call site: 00014 /src/nanopb/pb_decode.c:1103
0 0 None 215 454 pb_encode call site: 00154 /src/nanopb/pb_encode.c:519

Runtime coverage analysis

Covered functions
79
Functions that are reachable but not covered
17
Reachable functions
93
Percentage of reachable functions covered
81.72%
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/build/fuzztest/fuzztest.c 6
tests/build/common/malloc_wrappers.c 5
pb_decode.c 36
pb_common.c 10
tests/build/fuzztest/validation.c 3
pb_encode.c 27
tests/build/fuzztest/flakystream.c 1

Fuzzer: fuzztest_io_errors

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 20 9.52%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 190 90.4%
All colors 210 100

Fuzz blockers

The followings are the branches where fuzzer fails to bypass.

Unique non-covered Complexity Unique Reachable Complexities Unique Reachable Functions All non-covered Complexity All Reachable Complexity Function Name Function Callsite Blocked Branch
0 76 1 :

['validate_message']

0 85 do_stream_decode call site: 00011 /src/nanopb/tests/build/fuzztest/fuzztest.c:124
0 5 1 :

['free_with_check']

0 5 realloc_with_check call site: 00069 /src/nanopb/tests/build/common/malloc_wrappers.c:108
0 0 None 0 804 pb_decode_inner call site: 00015 /src/nanopb/pb_decode.c:1011
0 0 None 0 747 pb_message_set_to_defaults call site: 00017 /src/nanopb/pb_decode.c:961
0 0 None 0 747 pb_message_set_to_defaults call site: 00021 /src/nanopb/pb_decode.c:967
0 0 None 0 747 pb_message_set_to_defaults call site: 00021 /src/nanopb/pb_decode.c:973
0 0 None 0 747 pb_message_set_to_defaults call site: 00021 /src/nanopb/pb_decode.c:975
0 0 None 0 437 do_decode call site: 00180 /src/nanopb/tests/build/fuzztest/fuzztest.c:81
0 0 None 0 366 pb_field_set_to_default call site: 00025 /src/nanopb/pb_decode.c:883
0 0 None 0 362 decode_static_field call site: 00140 /src/nanopb/pb_decode.c:543
0 0 None 0 346 decode_extension call site: 00093 /src/nanopb/pb_decode.c:854
0 0 None 0 342 default_extension_decoder call site: 00095 /src/nanopb/pb_decode.c:834

Runtime coverage analysis

Covered functions
70
Functions that are reachable but not covered
7
Reachable functions
72
Percentage of reachable functions covered
90.28%
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/build/fuzztest/fuzztest.c 5
tests/build/common/malloc_wrappers.c 9
tests/build/fuzztest/flakystream.c 1
pb_decode.c 40
pb_common.c 9
tests/build/fuzztest/validation.c 3

Fuzzer: fuzztest_proto2_static

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 35 13.4%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 226 86.5%
All colors 261 100

Fuzz blockers

The followings are the branches where fuzzer fails to bypass.

Unique non-covered Complexity Unique Reachable Complexities Unique Reachable Functions All non-covered Complexity All Reachable Complexity Function Name Function Callsite Blocked Branch
68 68 1 :

['pb_check_proto3_default_value']

73 526 encode_field call site: 00159 /src/nanopb/pb_encode.c:431
5 5 1 :

['encode_callback_field']

5 5 encode_field call site: 00161 /src/nanopb/pb_encode.c:457
0 47 2 :

['pb_close_string_substream', 'pb_make_string_substream']

0 428 pb_decode_ex call site: 00010 /src/nanopb/pb_decode.c:1158
0 9 1 :

['pb_write']

0 9 pb_encode_submessage call site: 00211 /src/nanopb/pb_encode.c:744
0 9 1 :

['pb_write']

0 9 encode_array call site: 00178 /src/nanopb/pb_encode.c:177
0 0 None 5 458 encode_field call site: 00161 /src/nanopb/pb_encode.c:447
0 0 None 2 1298 do_roundtrip call site: 00145 /src/nanopb/tests/build/fuzztest/fuzztest.c:216
0 0 None 0 804 pb_decode_inner call site: 00014 /src/nanopb/pb_decode.c:1011
0 0 None 0 747 pb_message_set_to_defaults call site: 00016 /src/nanopb/pb_decode.c:961
0 0 None 0 747 pb_message_set_to_defaults call site: 00020 /src/nanopb/pb_decode.c:967
0 0 None 0 747 pb_message_set_to_defaults call site: 00020 /src/nanopb/pb_decode.c:973
0 0 None 0 747 pb_message_set_to_defaults call site: 00020 /src/nanopb/pb_decode.c:975

Runtime coverage analysis

Covered functions
90
Functions that are reachable but not covered
10
Reachable functions
94
Percentage of reachable functions covered
89.36%
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/build/fuzztest/fuzztest.c 7
tests/build/common/malloc_wrappers.c 5
pb_decode.c 36
pb_common.c 10
tests/build/fuzztest/validation.c 3
pb_encode.c 27
tests/build/fuzztest/flakystream.c 1

Fuzzer: fuzztest_proto3_pointer

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 66 23.1%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 219 76.8%
All colors 285 100

Fuzz blockers

The followings are the branches where fuzzer fails to bypass.

Unique non-covered Complexity Unique Reachable Complexities Unique Reachable Functions All non-covered Complexity All Reachable Complexity Function Name Function Callsite Blocked Branch
15 86 2 :

['pb_field_iter_begin_extension', 'pb_release_single_field']

15 96 pb_release_single_field call site: 00031 /src/nanopb/pb_decode.c:1243
15 15 1 :

['pb_field_iter_begin_extension']

15 366 pb_field_set_to_default call site: 00020 /src/nanopb/pb_decode.c:874
5 5 1 :

['encode_callback_field']

5 5 encode_field call site: 00197 /src/nanopb/pb_encode.c:457
0 363 2 :

['pb_field_iter_begin', 'pb_message_set_to_defaults']

0 725 decode_static_field call site: 00137 /src/nanopb/pb_decode.c:536
0 363 2 :

['pb_field_iter_begin', 'pb_message_set_to_defaults']

0 363 pb_field_set_to_default call site: 00024 /src/nanopb/pb_decode.c:907
0 47 2 :

['pb_close_string_substream', 'pb_make_string_substream']

0 428 pb_decode_ex call site: 00010 /src/nanopb/pb_decode.c:1158
0 24 1 :

['pb_read']

0 24 pb_dec_bytes call site: 00065 /src/nanopb/pb_decode.c:1513
0 24 1 :

['pb_read']

0 24 pb_dec_string call site: 00079 /src/nanopb/pb_decode.c:1555
0 9 1 :

['pb_write']

0 9 pb_encode_submessage call site: 00247 /src/nanopb/pb_encode.c:744
0 9 1 :

['pb_write']

0 9 encode_array call site: 00214 /src/nanopb/pb_encode.c:177
0 5 1 :

['free_with_check']

0 5 realloc_with_check call site: 00068 /src/nanopb/tests/build/common/malloc_wrappers.c:108
0 3 1 :

['safe_read_bool']

5 461 encode_field call site: 00195 /src/nanopb/pb_encode.c:431

Runtime coverage analysis

Covered functions
86
Functions that are reachable but not covered
16
Reachable functions
99
Percentage of reachable functions covered
83.84%
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/build/fuzztest/fuzztest.c 6
tests/build/common/malloc_wrappers.c 6
pb_decode.c 40
pb_common.c 10
tests/build/fuzztest/validation.c 3
pb_encode.c 27
tests/build/fuzztest/flakystream.c 1

Fuzzer: fuzztest_proto2_pointer

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 48 16.8%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 237 83.1%
All colors 285 100

Fuzz blockers

The followings are the branches where fuzzer fails to bypass.

Unique non-covered Complexity Unique Reachable Complexities Unique Reachable Functions All non-covered Complexity All Reachable Complexity Function Name Function Callsite Blocked Branch
5 5 1 :

['encode_callback_field']

5 5 encode_field call site: 00197 /src/nanopb/pb_encode.c:457
0 363 2 :

['pb_field_iter_begin', 'pb_message_set_to_defaults']

0 725 decode_static_field call site: 00137 /src/nanopb/pb_decode.c:536
0 47 2 :

['pb_close_string_substream', 'pb_make_string_substream']

0 428 pb_decode_ex call site: 00010 /src/nanopb/pb_decode.c:1158
0 24 1 :

['pb_read']

0 24 pb_dec_bytes call site: 00065 /src/nanopb/pb_decode.c:1513
0 9 1 :

['pb_write']

0 9 pb_encode_submessage call site: 00247 /src/nanopb/pb_encode.c:744
0 9 1 :

['pb_write']

0 9 encode_array call site: 00214 /src/nanopb/pb_encode.c:177
0 5 1 :

['free_with_check']

0 5 realloc_with_check call site: 00068 /src/nanopb/tests/build/common/malloc_wrappers.c:108
0 2 1 :

['pb_istream_from_buffer']

0 776 pb_message_set_to_defaults call site: 00014 /src/nanopb/pb_decode.c:958
0 0 None 10 86 validate_static call site: 00153 /src/nanopb/tests/build/fuzztest/validation.c:19
0 0 None 6 82 validate_static call site: 00152 /src/nanopb/tests/build/fuzztest/validation.c:13
0 0 None 6 82 validate_static call site: 00154 /src/nanopb/tests/build/fuzztest/validation.c:38
0 0 None 6 82 validate_static call site: 00155 /src/nanopb/tests/build/fuzztest/validation.c:43

Runtime coverage analysis

Covered functions
92
Functions that are reachable but not covered
10
Reachable functions
99
Percentage of reachable functions covered
89.9%
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/build/fuzztest/fuzztest.c 6
tests/build/common/malloc_wrappers.c 6
pb_decode.c 40
pb_common.c 10
tests/build/fuzztest/validation.c 3
pb_encode.c 27
tests/build/fuzztest/flakystream.c 1

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/build/fuzztest/fuzztest.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=['validate_static', 'pb_field_iter_find_extension', 'pb_message_set_to_defaults', 'pb_close_string_substream', 'decode_static_field', 'pb_encode', 'pb_decode_inner', 'pb_skip_field', 'validate_message']

tests/build/fuzztest/fuzztest.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=['validate_static', 'validate_message', 'do_decode', 'do_callback_decode', 'pb_field_set_to_default', 'realloc_with_check', 'decode_field', 'pb_decode']

tests/build/fuzztest/fuzztest.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=['validate_static', 'encode_field', 'pb_field_set_to_default', 'validate_message', 'pb_encode_tag_for_field', 'do_roundtrip', 'default_extension_decoder', 'decode_field', 'encode_array']

tests/build/fuzztest/fuzztest.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=['pb_encode', 'pb_dec_submessage', 'pb_skip_field', 'pb_message_set_to_defaults', 'decode_static_field', 'validate_message', 'pb_field_iter_find_extension', 'pb_decode_inner', 'pb_release_union_field', 'decode_pointer_field']

tests/build/fuzztest/fuzztest.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=['pb_skip_field', 'decode_static_field', 'encode_field', 'validate_message', 'pb_decode_inner', 'decode_pointer_field', 'do_roundtrip', 'pb_field_set_to_default']

Files and Directories in report

This section shows which files and directories are considered in this report. The main reason for showing this is fuzz introspector may include more code in the reasoning than is desired. This section helps identify if too many files/directories are included, e.g. third party code, which may be irrelevant for the threat model. In the event too much is included, fuzz introspector supports a configuration file that can exclude data from the report. See the following link for more information on how to create a config file: link

Files in report

Source file Reached by Covered by
[] []
/src/nanopb/tests/build/fuzztest/flakystream.c ['fuzztest_proto3_static', 'fuzztest_io_errors', 'fuzztest_proto2_static', 'fuzztest_proto3_pointer', 'fuzztest_proto2_pointer'] ['fuzztest_proto3_static', 'fuzztest_io_errors', 'fuzztest_proto2_static', 'fuzztest_proto3_pointer', 'fuzztest_proto2_pointer']
/src/nanopb/tests/build/fuzztest/fuzztest.c ['fuzztest_proto3_static', 'fuzztest_io_errors', 'fuzztest_proto2_static', 'fuzztest_proto3_pointer', 'fuzztest_proto2_pointer'] ['fuzztest_proto3_static', 'fuzztest_io_errors', 'fuzztest_proto2_static', 'fuzztest_proto3_pointer', 'fuzztest_proto2_pointer']
/src/nanopb/pb_common.c ['fuzztest_proto3_static', 'fuzztest_io_errors', 'fuzztest_proto2_static', 'fuzztest_proto3_pointer', 'fuzztest_proto2_pointer'] ['fuzztest_proto3_static', 'fuzztest_io_errors', 'fuzztest_proto2_static', 'fuzztest_proto3_pointer', 'fuzztest_proto2_pointer']
/src/nanopb/pb_encode.c ['fuzztest_proto3_static', 'fuzztest_proto2_static', 'fuzztest_proto3_pointer', 'fuzztest_proto2_pointer'] ['fuzztest_proto3_static', 'fuzztest_proto2_static', 'fuzztest_proto3_pointer', 'fuzztest_proto2_pointer']
/src/nanopb/tests/build/common/malloc_wrappers.c ['fuzztest_proto3_static', 'fuzztest_io_errors', 'fuzztest_proto2_static', 'fuzztest_proto3_pointer', 'fuzztest_proto2_pointer'] ['fuzztest_proto3_static', 'fuzztest_io_errors', 'fuzztest_proto2_static', 'fuzztest_proto3_pointer', 'fuzztest_proto2_pointer']
/src/nanopb/tests/build/fuzztest/validation.c ['fuzztest_proto3_static', 'fuzztest_io_errors', 'fuzztest_proto2_static', 'fuzztest_proto3_pointer', 'fuzztest_proto2_pointer'] ['fuzztest_proto3_static', 'fuzztest_io_errors', 'fuzztest_proto2_static', 'fuzztest_proto3_pointer', 'fuzztest_proto2_pointer']
/src/nanopb/pb_decode.c ['fuzztest_proto3_static', 'fuzztest_io_errors', 'fuzztest_proto2_static', 'fuzztest_proto3_pointer', 'fuzztest_proto2_pointer'] ['fuzztest_proto3_static', 'fuzztest_io_errors', 'fuzztest_proto2_static', 'fuzztest_proto3_pointer', 'fuzztest_proto2_pointer']

Directories in report

Directory
/src/nanopb/tests/build/fuzztest/
/src/nanopb/tests/build/common/
/src/nanopb/