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

Fuzzer details

Fuzzer: fuzz_manifest

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 115 52.7%
gold [1:9] 86 39.4%
yellow [10:29] 10 4.58%
greenyellow [30:49] 2 0.91%
lawngreen 50+ 5 2.29%
All colors 218 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
165 165 1 :

['parse_package_deps']

165 201 clib_package_new call site: 00209 /src/clib/src/common/clib-package.c:577
58 58 2 :

['parse_repo_owner', 'parse_repo_name']

420 860 clib_package_new call site: 00159 /src/clib/src/common/clib-package.c:531
32 32 5 :

['list_rpush', 'json_array_get_count', 'list_node_new', 'json_array_get_string_safe', 'list_new']

362 679 clib_package_new call site: 00180 /src/clib/src/common/clib-package.c:551
18 24 3 :

['use_colors', 'free', 'strdup']

18 24 debug call site: 00000 /src/clib/deps/debug/debug.c:98
4 4 1 :

['list_destroy']

4 4 clib_package_free call site: 00215 /src/clib/src/common/clib-package.c:1701
0 291 3 :

['get_quoted_string', 'json_object_add', 'parse_value']

8 361 parse_object_value call site: 00110 /src/clib/deps/parson/parson.c:613
0 12 1 :

['json_value_free']

0 12 parse_object_value call site: 00112 /src/clib/deps/parson/parson.c:619
0 0 None 443 1624 clib_package_new call site: 00033 /src/clib/src/common/clib-package.c:452
0 0 None 443 1410 clib_package_new call site: 00117 /src/clib/src/common/clib-package.c:466
0 0 None 443 1410 clib_package_new call site: 00119 /src/clib/src/common/clib-package.c:473
0 0 1 :

['free']

443 1041 clib_package_new call site: 00138 /src/clib/src/common/clib-package.c:503
0 0 None 362 802 clib_package_new call site: 00170 /src/clib/src/common/clib-package.c:536

Runtime coverage analysis

Covered functions
47
Functions that are reachable but not covered
65
Reachable functions
112
Percentage of reachable functions covered
41.96%
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
test/fuzzing/fuzz_manifest.c 1
src/common/clib-package.c 10
deps/fs/fs.c 6
deps/console-colors/console-colors.c 5
deps/parson/parson.c 44
deps/strdup/strdup.c 1
deps/asprintf/asprintf.c 2
deps/debug/debug.c 2
deps/wildcardcmp/wildcardcmp.c 1
deps/parse-repo/parse-repo.c 2
deps/substr/substr.c 1
deps/list/list.c 3
deps/list/list_node.c 1

Analyses and suggestions

Optimal target analysis

Remaining optimal interesting functions

The following table shows a list of functions that are optimal targets. Optimal targets are identified by finding the functions that in combination, yield a high code coverage.

Func name Functions filename Arg count Args Function depth hitcount instr count bb count cyclomatic complexity Reachable functions Incoming references total cyclomatic complexity Unreached complexity
clib_package_install /src/clib/src/common/clib-package.c 3 ['struct.clib_package_t *', 'char *', 'int '] 10 0 1190 200 74 212 5 1100 623
json_serialize_to_buffer_r /src/clib/deps/parson/parson.c 5 ['struct.json_value_t *', 'char *', 'int ', 'int ', 'char *'] 3 0 1198 228 69 19 9 209 173
configure_package_with_manifest_name /src/clib/src/clib-configure.c 2 ['char *', 'char *'] 9 0 947 127 43 174 4 847 130
json_object_dotset_string /src/clib/deps/parson/parson.c 3 ['struct.json_object_t *', 'char *', 'char *'] 3 0 54 8 4 27 0 135 61

Implementing fuzzers that target the above functions will improve reachability such that it becomes:

Functions statically reachable by fuzzers
59.2%
170/287
Cyclomatic complexity statically reachable by fuzzers
71.8%
1152 / 1603

All functions overview

If you implement fuzzers for these functions, the status of all functions in the project will be:

Func name Functions filename Args Function call depth 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

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/clib/deps/path-join/path-join.c [] []
/src/clib/deps/console-colors/console-colors.c ['fuzz_manifest'] ['fuzz_manifest']
/src/clib/deps/tinydir/tinydir.h [] []
/src/clib/deps/str-ends-with/str-ends-with.c [] []
/src/clib/deps/path-normalize/path-normalize.c [] []
/src/clib/deps/commander/commander.c [] []
/src/clib/deps/rimraf/rimraf.c [] []
/src/clib/deps/debug/debug.c ['fuzz_manifest'] ['fuzz_manifest']
/src/clib/deps/fs/fs.c ['fuzz_manifest'] ['fuzz_manifest']
/src/clib/deps/hash/hash.h [] []
/src/clib/deps/list/list_iterator.c [] []
/src/clib/deps/parson/parson.c ['fuzz_manifest'] ['fuzz_manifest']
/src/clib/src/clib-configure.c [] []
/src/clib/deps/hash/khash.h [] []
/src/clib/deps/copy/copy.c [] []
/src/clib/src/common/clib-cache.c [] []
/src/clib/deps/asprintf/asprintf.c ['fuzz_manifest'] []
/src/clib/deps/hash/hash.c [] []
/src/clib/./deps/hash/hash.h [] []
/src/clib/deps/substr/substr.c ['fuzz_manifest'] []
/src/clib/deps/list/list_node.c ['fuzz_manifest'] []
/src/clib/deps/trim/trim.c [] []
/src/clib/deps/http-get/http-get.c [] []
/src/clib/deps/list/list.c ['fuzz_manifest'] []
/src/clib/deps/str-starts-with/str-starts-with.c [] []
/src/clib/deps/wildcardcmp/wildcardcmp.c ['fuzz_manifest'] []
/src/clib/test/fuzzing/fuzz_manifest.c ['fuzz_manifest'] ['fuzz_manifest']
/src/clib/deps/tempdir/tempdir.c [] []
/src/clib/deps/strdup/strdup.c ['fuzz_manifest'] ['fuzz_manifest']
/src/clib/deps/mkdirp/mkdirp.c [] []
/src/clib/deps/str-flatten/str-flatten.c [] []
/src/clib/src/common/clib-package.c ['fuzz_manifest'] ['fuzz_manifest']
/src/clib/deps/parse-repo/parse-repo.c ['fuzz_manifest'] []

Directories in report

Directory
/src/clib/deps/debug/
/src/clib/deps/str-starts-with/
/src/clib/src/common/
/src/clib/deps/asprintf/
/src/clib/deps/path-join/
/src/clib/deps/list/
/src/clib/./deps/hash/
/src/clib/deps/substr/
/src/clib/deps/http-get/
/src/clib/deps/wildcardcmp/
/src/clib/deps/copy/
/src/clib/deps/tinydir/
/src/clib/deps/parson/
/src/clib/deps/tempdir/
/src/clib/test/fuzzing/
/src/clib/deps/fs/
/src/clib/deps/mkdirp/
/src/clib/deps/parse-repo/
/src/clib/deps/commander/
/src/clib/deps/trim/
/src/clib/src/
/src/clib/deps/strdup/
/src/clib/deps/str-flatten/
/src/clib/deps/rimraf/
/src/clib/deps/str-ends-with/
/src/clib/deps/hash/
/src/clib/deps/path-normalize/
/src/clib/deps/console-colors/

Function call coverage