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: 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 52 22.9%
gold [1:9] 17 7.48%
yellow [10:29] 3 1.32%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 155 68.2%
All colors 227 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
4 54 plist_new_int call site: 00054 plist_new_uint
3 36 node_attach call site: 00036 node_destroy
3 96 plist_new_array call site: 00096 plist_free
3 124 plist_new_dict call site: 00124 plist_free
3 137 plist_get_node_type call site: 00137 fprintf
3 159 plist_dict_set_item call site: 00159 fprintf
2 199 plist_new_key call site: 00199 plist_free_data
2 204 plist_dict_set_item call site: 00204 plist_free_node
1 3 plist_from_json call site: 00003 fprintf
1 12 jsmn_parse_primitive call site: 00012 fprintf
1 15 plist_from_json call site: 00015 fprintf
1 17 plist_from_json call site: 00017 fprintf

Runtime coverage analysis

Covered functions
64
Functions that are reachable but not covered
14
Reachable functions
73
Percentage of reachable functions covered
80.82%
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 22
libcnary/node.c 11
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 46 22.1%
gold [1:9] 7 3.36%
yellow [10:29] 9 4.32%
greenyellow [30:49] 1 0.48%
lawngreen 50+ 145 69.7%
All colors 208 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
4 86 node_from_openstep call site: 00086 byte_array_grow
3 19 node_attach call site: 00019 node_destroy
3 35 plist_get_node_type call site: 00035 fprintf
3 95 node_from_openstep call site: 00095 plist_free_data
3 133 plist_dict_set_item call site: 00133 fprintf
3 165 node_list_insert call site: 00165 node_insert
3 182 plist_dict_set_item call site: 00182 plist_free_node
2 103 node_from_openstep call site: 00103 plist_free_data
2 174 plist_new_key call site: 00174 plist_free_data
2 179 plist_dict_set_item call site: 00179 plist_free_node
2 204 plist_from_openstep call site: 00204 plist_free
1 7 node_from_openstep call site: 00007 node_create

Runtime coverage analysis

Covered functions
55
Functions that are reachable but not covered
14
Reachable functions
64
Percentage of reachable functions covered
78.12%
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 18
libcnary/node.c 11
libcnary/node_list.c 5
src/ptrarray.c 4
src/hashtable.c 4
src/bytearray.c 4

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 72 20.1%
gold [1:9] 24 6.70%
yellow [10:29] 27 7.54%
greenyellow [30:49] 13 3.63%
lawngreen 50+ 222 62.0%
All colors 358 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
12 280 plist_dict_set_item call site: 00280 plist_free_node
4 328 plist_get_type_and_value call site: 00328 strdup
3 6 find_next call site: 00006 find_char
3 59 node_attach call site: 00059 node_first_child
3 65 node_attach call site: 00065 node_destroy
3 232 plist_dict_set_item call site: 00232 fprintf
3 264 node_list_insert call site: 00264 node_insert
3 294 plist_array_append_item call site: 00294 fprintf
3 339 plist_set_element_val call site: 00339 strdup
2 132 text_parts_get_content call site: 00132 text_parts_free
2 150 node_from_xml call site: 00150 text_parts_free
2 205 node_from_xml call site: 00205 text_parts_free

Runtime coverage analysis

Covered functions
64
Functions that are reachable but not covered
18
Reachable functions
77
Percentage of reachable functions covered
76.62%
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 14
src/plist.c 22
libcnary/node.c 12
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 38 19.0%
gold [1:9] 19 9.5%
yellow [10:29] 5 2.5%
greenyellow [30:49] 4 2.0%
lawngreen 50+ 134 67.0%
All colors 200 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
3 58 node_attach call site: 00058 node_destroy
3 102 parse_string_node call site: 00102 plist_free_data
3 188 parse_dict_node call site: 00188 plist_free
2 20 plist_from_bin call site: 00020 fprintf
2 91 parse_data_node call site: 00091 plist_free_data
2 97 _plist_free_data call site: 00097 node_create
2 123 parse_array_node call site: 00123 plist_free_data
2 166 parse_dict_node call site: 00166 plist_free_data
1 18 plist_from_bin call site: 00018 fprintf
1 27 parse_bin_node_at_index call site: 00027 fprintf
1 45 plist_new_plist_data call site: 00045 fprintf
1 48 node_create call site: 00048 node_attach

Runtime coverage analysis

Covered functions
47
Functions that are reachable but not covered
9
Reachable functions
51
Percentage of reachable functions covered
82.35%
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 3
src/ptrarray.c 7
src/plist.c 7
libcnary/node.c 9
libcnary/node_list.c 4
src/hashtable.c 1

Fuzzer: plist_write_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 289 24.0%
gold [1:9] 67 5.58%
yellow [10:29] 43 3.58%
greenyellow [30:49] 17 1.41%
lawngreen 50+ 784 65.3%
All colors 1200 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
19 988 plist_write_to_string_default call site: 00988 _node_estimate_size
18 486 node_from_xml call site: 00486 plist_set_uid_val
18 823 plist_to_json_with_options call site: 00823 _node_estimate_size
18 1070 plist_write_to_string_limd call site: 01070 _node_estimate_size
18 1136 plist_write_to_string_plutil call site: 01136 _node_estimate_size
16 907 plist_to_openstep_with_options call site: 00907 _node_estimate_size
12 444 plist_dict_set_item call site: 00444 plist_free_node
6 512 node_from_xml call site: 00512 plist_new_uid
4 553 plist_new_int call site: 00553 plist_new_uint
3 61 node_attach call site: 00061 node_destroy
3 105 parse_string_node call site: 00105 plist_free_data
3 191 parse_dict_node call site: 00191 plist_free

Runtime coverage analysis

Covered functions
135
Functions that are reachable but not covered
33
Reachable functions
165
Percentage of reachable functions covered
80.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
fuzz/plist_write_fuzzer.cc 3
src/plist.c 34
src/bplist.c 13
/usr/include/x86_64-linux-gnu/bits/byteswap.h 3
src/ptrarray.c 7
libcnary/node.c 12
libcnary/node_list.c 5
src/hashtable.c 4
src/xplist.c 18
src/base64.c 2
src/time64.c 4
src/jplist.c 11
src/jsmn.c 6
src/oplist.c 9
src/bytearray.c 4
src/./plist.h 2
src/common.c 4
src/out-default.c 5
src/out-limd.c 5
src/out-plutil.c 5

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.

fuzz/jplist_fuzzer.cc

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=['plist_new_int', 'node_attach', 'plist_new_array', 'plist_new_dict', 'plist_get_node_type', 'plist_dict_set_item', 'plist_new_key', 'plist_from_json', 'jsmn_parse_primitive']

fuzz/oplist_fuzzer.cc

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=['node_from_openstep', 'node_attach', 'plist_get_node_type', 'plist_dict_set_item', 'node_list_insert', 'plist_new_key']

fuzz/xplist_fuzzer.cc

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=['plist_dict_set_item', 'plist_get_type_and_value', 'find_next', 'node_attach', 'node_list_insert', 'plist_array_append_item', 'plist_set_element_val', 'text_parts_get_content']

fuzz/bplist_fuzzer.cc

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=['node_attach', 'parse_string_node', 'parse_dict_node', 'plist_from_bin', 'parse_data_node', '_plist_free_data', 'parse_array_node', 'parse_bin_node_at_index']

fuzz/plist_write_fuzzer.cc

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=['plist_write_to_string_default', 'node_from_xml', 'plist_to_json_with_options', 'plist_write_to_string_limd', 'plist_write_to_string_plutil', 'plist_to_openstep_with_options', 'plist_dict_set_item', 'plist_new_int', 'node_attach']

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

Directories in report

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