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 61 26.1%
gold [1:9] 17 7.29%
yellow [10:29] 3 1.28%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 152 65.2%
All colors 233 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 61 plist_new_int call site: 00061 plist_new_uint
3 37 node_attach call site: 00037 node_destroy
3 100 plist_new_array call site: 00100 plist_free
3 123 plist_new_dict call site: 00123 plist_free
3 136 plist_get_node_type call site: 00136 fprintf
3 158 plist_dict_set_item call site: 00158 fprintf
3 192 plist_dict_set_item call site: 00192 plist_dict_drop_cache
2 91 parse_string call site: 00091 plist_free_data
2 203 plist_new_key call site: 00203 plist_free_data
2 208 plist_dict_set_item call site: 00208 plist_free_node
1 3 plist_from_json call site: 00003 fprintf
1 12 jsmn_parse_primitive call site: 00012 fprintf

Runtime coverage analysis

Covered functions
65
Functions that are reachable but not covered
15
Reachable functions
75
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/jplist_fuzzer.cc 1
src/jplist.c 7
src/jsmn.c 6
src/plist.c 24
libcnary/node.c 11
libcnary/node_list.c 5
src/ptrarray.c 4
src/hashtable.c 4

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 47 21.4%
gold [1:9] 17 7.76%
yellow [10:29] 4 1.82%
greenyellow [30:49] 2 0.91%
lawngreen 50+ 149 68.0%
All colors 219 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 65 node_attach call site: 00065 node_destroy
3 108 parse_data_node call site: 00108 plist_free_data
3 116 parse_string_node call site: 00116 plist_free_data
3 202 parse_dict_node call site: 00202 plist_free
3 209 parse_dict_node call site: 00209 plist_free
2 20 plist_from_bin call site: 00020 fprintf
2 69 node_destroy call site: 00069 plist_free_data
2 128 parse_unicode_node call site: 00128 fprintf
2 140 parse_array_node call site: 00140 plist_free_data
2 166 parse_array_node call site: 00166 plist_free
2 184 parse_dict_node call site: 00184 plist_free_data
2 188 parse_dict_node call site: 00188 plist_free

Runtime coverage analysis

Covered functions
50
Functions that are reachable but not covered
9
Reachable functions
54
Percentage of reachable functions covered
83.33%
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 16
/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: 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 69 30.1%
gold [1:9] 6 2.62%
yellow [10:29] 7 3.05%
greenyellow [30:49] 4 1.74%
lawngreen 50+ 143 62.4%
All colors 229 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
6 178 node_list_insert call site: 00178 node_insert
5 88 node_from_openstep call site: 00088 byte_array_grow
4 108 node_from_openstep call site: 00108 plist_free_data
3 20 node_attach call site: 00020 node_destroy
3 44 plist_get_node_type call site: 00044 fprintf
3 98 node_from_openstep call site: 00098 plist_free_data
3 146 plist_dict_set_item call site: 00146 fprintf
3 201 plist_dict_set_item call site: 00201 plist_free_node
2 37 node_from_openstep call site: 00037 plist_free_data
2 78 node_from_openstep call site: 00078 plist_free_data
2 103 node_from_openstep call site: 00103 plist_free_data
2 115 node_from_openstep call site: 00115 plist_free_data

Runtime coverage analysis

Covered functions
56
Functions that are reachable but not covered
15
Reachable functions
66
Percentage of reachable functions covered
77.27%
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 20
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 83 22.5%
gold [1:9] 28 7.60%
yellow [10:29] 25 6.79%
greenyellow [30:49] 15 4.07%
lawngreen 50+ 217 58.9%
All colors 368 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
14 286 plist_dict_set_item call site: 00286 plist_free_node
8 263 node_list_insert call site: 00263 node_insert
4 338 plist_get_type_and_value call site: 00338 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 231 plist_dict_set_item call site: 00231 fprintf
3 303 plist_array_append_item call site: 00303 fprintf
3 349 plist_set_element_val call site: 00349 strdup
2 135 text_parts_get_content call site: 00135 text_parts_free
2 153 node_from_xml call site: 00153 text_parts_free
2 204 node_from_xml call site: 00204 text_parts_free

Runtime coverage analysis

Covered functions
65
Functions that are reachable but not covered
19
Reachable functions
79
Percentage of reachable functions covered
75.95%
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 24
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: 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 311 24.7%
gold [1:9] 63 5.01%
yellow [10:29] 49 3.89%
greenyellow [30:49] 17 1.35%
lawngreen 50+ 817 64.9%
All colors 1257 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
23 871 plist_to_json_with_options call site: 00871 _node_estimate_size
19 1038 plist_write_to_string_default call site: 01038 _node_estimate_size
19 1116 plist_write_to_string_limd call site: 01116 _node_estimate_size
18 519 node_from_xml call site: 00519 plist_set_uid_val
18 1188 plist_write_to_string_plutil call site: 01188 _node_estimate_size
13 958 plist_to_openstep_with_options call site: 00958 _node_estimate_size
6 450 node_list_insert call site: 00450 node_insert
6 545 node_from_xml call site: 00545 plist_new_uid
4 587 plist_new_int call site: 00587 plist_new_uint
4 710 node_from_openstep call site: 00710 plist_free_data
3 68 node_attach call site: 00068 node_destroy
3 111 parse_data_node call site: 00111 plist_free_data

Runtime coverage analysis

Covered functions
141
Functions that are reachable but not covered
32
Reachable functions
170
Percentage of reachable functions covered
81.18%
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 36
src/bplist.c 16
/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', 'parse_string', 'plist_new_key']

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_data_node', 'parse_string_node', 'parse_dict_node', 'plist_from_bin', 'node_destroy', 'parse_unicode_node', 'parse_array_node']

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_list_insert', 'node_from_openstep', 'node_attach', 'plist_get_node_type', 'plist_dict_set_item']

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

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_to_json_with_options', 'plist_write_to_string_default', 'plist_write_to_string_limd', 'node_from_xml', 'plist_write_to_string_plutil', 'plist_to_openstep_with_options', 'node_list_insert', 'plist_new_int', 'node_from_openstep']

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

Directories in report

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