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

Fuzzer details

Fuzzer: xplist_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 32 12.5%
gold [1:9] 21 8.26%
yellow [10:29] 17 6.69%
greenyellow [30:49] 6 2.36%
lawngreen 50+ 178 70.0%
All colors 254 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
8 8 2 :

['hash_table_lookup', 'strlen']

8 8 plist_dict_get_item call site: 00190 /src/libplist/src/plist.c:828
0 38 2 :

['node_attach', 'node_destroy']

0 38 node_create call site: 00052 /src/libplist/libcnary/node.c:64
0 0 None 50 2009 node_from_xml call site: 00041 /src/libplist/src/xplist.c:1109
0 0 None 50 2009 node_from_xml call site: 00102 /src/libplist/src/xplist.c:1166
0 0 None 50 2009 node_from_xml call site: 00128 /src/libplist/src/xplist.c:1217
0 0 None 50 2009 node_from_xml call site: 00164 /src/libplist/src/xplist.c:1294
0 0 None 50 2009 node_from_xml call site: 00174 /src/libplist/src/xplist.c:1328
0 0 None 50 2009 node_from_xml call site: 00231 /src/libplist/src/xplist.c:1395
0 0 None 7 7 plist_dict_set_item call site: 00212 /src/libplist/src/plist.c:873
0 0 None 2 41 text_parts_get_content call site: 00102 /src/libplist/src/xplist.c:917
0 0 None 2 4 plist_get_type_and_value call site: 00245 /src/libplist/src/plist.c:975
0 0 None 0 534 plist_from_xml call site: 00001 /src/libplist/src/xplist.c:1476

Runtime coverage analysis

Covered functions
57
Functions that are reachable but not covered
18
Reachable functions
69
Percentage of reachable functions covered
73.91%
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
fuzz/xplist_fuzzer.cc 1
src/xplist.c 13
src/plist.c 16
libcnary/node.c 8
libcnary/node_list.c 5
src/ptrarray.c 4
src/hashtable.c 4
src/base64.c 1
src/time64.c 1

Fuzzer: bplist_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 16 10.4%
gold [1:9] 18 11.7%
yellow [10:29] 5 3.26%
greenyellow [30:49] 6 3.92%
lawngreen 50+ 108 70.5%
All colors 153 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 38 2 :

['node_attach', 'node_destroy']

0 38 node_create call site: 00040 /src/libplist/libcnary/node.c:64
0 0 None 16 1084 parse_dict_node call site: 00141 /src/libplist/src/bplist.c:488
0 0 None 10 293 plist_from_bin call site: 00001 /src/libplist/src/bplist.c:799
0 0 None 8 1100 parse_bin_node call site: 00033 /src/libplist/src/bplist.c:579
0 0 None 4 4 plist_utf16be_to_utf8 call site: 00089 /src/libplist/src/bplist.c:340
0 0 None 2 41 parse_string_node call site: 00080 /src/libplist/src/bplist.c:314
0 0 None 0 280 plist_from_bin call site: 00017 /src/libplist/src/bplist.c:880
0 0 None 0 39 parse_data_node call site: 00072 /src/libplist/src/bplist.c:421
0 0 None 0 0 node_create call site: 00040 /src/libplist/libcnary/node.c:52
0 0 None 0 0 node_list_create call site: 00043 /src/libplist/libcnary/node_list.c:39
0 0 None 0 0 node_list_remove call site: 00047 /src/libplist/libcnary/node_list.c:135
0 0 None 0 0 node_list_remove call site: 00047 /src/libplist/libcnary/node_list.c:137

Runtime coverage analysis

Covered functions
43
Functions that are reachable but not covered
9
Reachable functions
46
Percentage of reachable functions covered
80.43%
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
fuzz/bplist_fuzzer.cc 1
src/bplist.c 13
/usr/include/x86_64-linux-gnu/bits/byteswap.h 2
src/ptrarray.c 7
src/plist.c 5
libcnary/node.c 6
libcnary/node_list.c 4
src/hashtable.c 1

Fuzzer: jplist_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 20 12.6%
gold [1:9] 4 2.53%
yellow [10:29] 3 1.89%
greenyellow [30:49] 1 0.63%
lawngreen 50+ 130 82.2%
All colors 158 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 38 2 :

['node_attach', 'node_destroy']

0 38 node_create call site: 00024 /src/libplist/libcnary/node.c:64
0 0 None 2 825 plist_from_json call site: 00001 /src/libplist/src/jplist.c:787
0 0 None 2 823 plist_from_json call site: 00003 /src/libplist/src/jplist.c:804
0 0 None 0 48 parse_array call site: 00073 /src/libplist/src/jplist.c:689
0 0 None 0 48 parse_object call site: 00081 /src/libplist/src/jplist.c:737
0 0 None 0 13 node_insert call site: 00134 /src/libplist/libcnary/node.c:106
0 0 None 0 0 node_create call site: 00024 /src/libplist/libcnary/node.c:52
0 0 None 0 0 node_list_create call site: 00027 /src/libplist/libcnary/node_list.c:39
0 0 None 0 0 node_list_insert call site: 00137 /src/libplist/libcnary/node_list.c:99
0 0 None 0 0 node_list_insert call site: 00137 /src/libplist/libcnary/node_list.c:114
0 0 None 0 0 hash_table_destroy call site: 00128 /src/libplist/src/hashtable.c:46
0 0 None 0 0 plist_from_json call site: 00001 /src/libplist/src/jplist.c:791

Runtime coverage analysis

Covered functions
60
Functions that are reachable but not covered
14
Reachable functions
68
Percentage of reachable functions covered
79.41%
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
fuzz/jplist_fuzzer.cc 1
src/jplist.c 7
src/jsmn.c 6
src/plist.c 19
libcnary/node.c 8
libcnary/node_list.c 5
src/ptrarray.c 4
src/hashtable.c 4

Fuzzer: oplist_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 13 10.7%
gold [1:9] 7 5.78%
yellow [10:29] 9 7.43%
greenyellow [30:49] 2 1.65%
lawngreen 50+ 90 74.3%
All colors 121 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
6 6 1 :

['byte_array_grow']

6 6 byte_array_append call site: 00065 /src/libplist/src/bytearray.c:76
2 2 1 :

['fwrite']

2 2 byte_array_append call site: 00065 /src/libplist/src/bytearray.c:68
0 38 2 :

['node_attach', 'node_destroy']

0 38 node_create call site: 00009 /src/libplist/libcnary/node.c:64
0 13 1 :

['plist_free_data']

0 113 node_from_openstep call site: 00019 /src/libplist/src/oplist.c:741
0 13 1 :

['plist_free_data']

0 109 node_from_openstep call site: 00019 /src/libplist/src/oplist.c:776
0 0 None 0 932 plist_from_openstep call site: 00001 /src/libplist/src/oplist.c:900
0 0 None 0 96 node_from_openstep call site: 00019 /src/libplist/src/oplist.c:635
0 0 None 0 13 node_insert call site: 00000 /src/libplist/libcnary/node.c:106
0 0 None 0 8 plist_get_string_ptr call site: 00106 /src/libplist/src/plist.c:1057
0 0 None 0 0 node_create call site: 00009 /src/libplist/libcnary/node.c:52
0 0 None 0 0 node_list_create call site: 00012 /src/libplist/libcnary/node_list.c:39
0 0 None 0 0 node_list_insert call site: 00000 /src/libplist/libcnary/node_list.c:99

Runtime coverage analysis

Covered functions
51
Functions that are reachable but not covered
13
Reachable functions
58
Percentage of reachable functions covered
77.59%
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
fuzz/oplist_fuzzer.cc 1
src/oplist.c 4
src/plist.c 11
libcnary/node.c 6
libcnary/node_list.c 4
src/ptrarray.c 4
src/hashtable.c 1
src/bytearray.c 4

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
plist_write_to_file /src/libplist/src/plist.c 4 ['char *', 'char *', 'int ', 'int '] 4 0 70 11 5 73 0 502 408
plist_read_from_file /src/libplist/src/plist.c 3 ['char *', 'char **', 'int *'] 6 0 170 25 11 127 0 1108 61
timelocal64 /src/libplist/src/time64.c 1 ['struct.tm *'] 2 0 16 3 2 11 0 50 46
plist_sort /src/libplist/src/plist.c 1 ['char *'] 3 0 275 40 14 11 1 65 42
plist_write_to_string /src/libplist/src/plist.c 5 ['char *', 'char **', 'int *', 'int ', 'int '] 5 0 106 11 12 39 0 324 38
plist_dict_merge /src/libplist/src/plist.c 2 ['char **', 'char *'] 6 0 110 24 10 45 0 196 37

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

Functions statically reachable by fuzzers
67.0%
167 / 249
Cyclomatic complexity statically reachable by fuzzers
82.0%
1603 / 1960

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
[] []
/usr/include/x86_64-linux-gnu/bits/byteswap.h ['bplist_fuzzer'] []
/src/libplist/src/oplist.c ['oplist_fuzzer'] ['oplist_fuzzer']
/src/libplist/src/jsmn.c ['jplist_fuzzer'] ['jplist_fuzzer']
/src/libplist/src/plist.c ['xplist_fuzzer', 'bplist_fuzzer', 'jplist_fuzzer', 'oplist_fuzzer'] ['xplist_fuzzer', 'bplist_fuzzer', 'jplist_fuzzer', 'oplist_fuzzer']
/src/libplist/src/hashtable.c ['xplist_fuzzer', 'bplist_fuzzer', 'jplist_fuzzer', 'oplist_fuzzer'] ['xplist_fuzzer', 'bplist_fuzzer', 'jplist_fuzzer', 'oplist_fuzzer']
/src/libplist/libcnary/node_list.c ['xplist_fuzzer', 'bplist_fuzzer', 'jplist_fuzzer', 'oplist_fuzzer'] ['xplist_fuzzer', 'bplist_fuzzer', 'jplist_fuzzer', 'oplist_fuzzer']
/src/libplist/src/jplist.c ['jplist_fuzzer'] ['jplist_fuzzer']
/src/libplist/fuzz/jplist_fuzzer.cc ['jplist_fuzzer'] ['jplist_fuzzer']
/src/libplist/src/time64.c ['xplist_fuzzer'] ['xplist_fuzzer']
/src/libplist/fuzz/bplist_fuzzer.cc ['bplist_fuzzer'] ['bplist_fuzzer']
/src/libplist/src/ptrarray.c ['xplist_fuzzer', 'bplist_fuzzer', 'jplist_fuzzer', 'oplist_fuzzer'] ['xplist_fuzzer', 'bplist_fuzzer', 'jplist_fuzzer', 'oplist_fuzzer']
/src/libplist/libcnary/node.c ['xplist_fuzzer', 'bplist_fuzzer', 'jplist_fuzzer', 'oplist_fuzzer'] ['xplist_fuzzer', 'bplist_fuzzer', 'jplist_fuzzer', 'oplist_fuzzer']
/src/libplist/src/out-default.c [] []
/src/libplist/fuzz/oplist_fuzzer.cc ['oplist_fuzzer'] ['oplist_fuzzer']
/src/libplist/fuzz/xplist_fuzzer.cc ['xplist_fuzzer'] ['xplist_fuzzer']
/src/libplist/src/bytearray.c ['oplist_fuzzer'] ['oplist_fuzzer']
/src/libplist/src/out-plutil.c [] []
/src/libplist/src/base64.c ['xplist_fuzzer'] ['xplist_fuzzer']
/src/libplist/src/xplist.c ['xplist_fuzzer'] ['xplist_fuzzer']
/src/libplist/src/out-limd.c [] []
/src/libplist/src/bplist.c ['bplist_fuzzer'] ['bplist_fuzzer']

Directories in report

Directory
/src/libplist/fuzz/
/usr/include/x86_64-linux-gnu/bits/
/src/libplist/src/
/src/libplist/libcnary/