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: libical_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 899 50.8%
gold [1:9] 28 1.58%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 842 47.5%
All colors 1769 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
58 64 2 :

['icalrecur_free_by', 'ical_get_invalid_rrule_handling_setting']

58 319 icalrecurrencetype_new_from_string call site: 01590 /src/libical/src/libical/icalrecur.c:929
58 58 1 :

['icalrecur_free_by']

58 58 icalrecur_resize_by call site: 00501 /src/libical/src/libical/icalrecur.c:316
2 118 3 :

['icalmemory_strdup', 'icalmemory_free_buffer', '__errno_location']

2 118 icalattach_new_from_data call site: 01411 /src/libical/src/libical/icalattach.c:65
2 57 2 :

['icalmemory_free_buffer', '__errno_location']

2 57 icalattach_new_from_url call site: 01393 /src/libical/src/libical/icalattach.c:34
2 2 1 :

['get_zone_directory_builtin']

24 512 icaltimezone_parse_zone_tab call site: 00522 /src/libical/src/libical/icaltimezone.c:1665
2 2 1 :

['__errno_location']

2 13 icalvalue_set_caladdress call site: 01498 /src/libical/src/libical/icalderivedvalue.c:200
2 2 1 :

['__errno_location']

2 13 icalvalue_set_query call site: 01446 /src/libical/src/libical/icalderivedvalue.c:579
2 2 1 :

['__errno_location']

2 13 icalvalue_set_string call site: 01488 /src/libical/src/libical/icalderivedvalue.c:741
2 2 1 :

['__errno_location']

2 13 icalvalue_set_text call site: 00099 /src/libical/src/libical/icalderivedvalue.c:810
2 2 1 :

['__errno_location']

2 13 icalvalue_set_uid call site: 01689 /src/libical/src/libical/icalderivedvalue.c:879
2 2 1 :

['__errno_location']

2 13 icalvalue_set_uri call site: 01508 /src/libical/src/libical/icalderivedvalue.c:917
2 2 1 :

['__errno_location']

2 13 icalvalue_set_xmlreference call site: 01699 /src/libical/src/libical/icalderivedvalue.c:1017

Runtime coverage analysis

Covered functions
239
Functions that are reachable but not covered
212
Reachable functions
450
Percentage of reachable functions covered
52.89%
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
/src/libical_fuzzer.cc 1
icalparser.c 21
icalerror.c 10
icalmemory.c 14
pvl.c 13
icalderivedparameter.c 7
icalparameter.c 8
icalderivedproperty.c 37
icalproperty.c 16
icalderivedvalue.c 52
icalvalue.c 13
icaltime.c 22
icalattach.c 4
icalrecur.c 91
icalcomponent.c 19
icaltimezone.c 33
icalarray.c 10
icaltz-util.c 11
/usr/include/x86_64-linux-gnu/bits/byteswap.h 2
icalperiod.c 4
icalduration.c 7
caldate.c 2
qsort_gen.c 2
/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h 1
icaltypes.c 4
/usr/include/stdlib.h 1
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h 1
icalenums.c 1

Fuzzer: libical_extended_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 933 42.3%
gold [1:9] 28 1.27%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 1240 56.3%
All colors 2201 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
58 64 2 :

['icalrecur_free_by', 'ical_get_invalid_rrule_handling_setting']

58 319 icalrecurrencetype_new_from_string call site: 01591 /src/libical/src/libical/icalrecur.c:929
58 58 1 :

['icalrecur_free_by']

58 58 icalrecur_resize_by call site: 00502 /src/libical/src/libical/icalrecur.c:316
2 118 3 :

['icalmemory_strdup', 'icalmemory_free_buffer', '__errno_location']

2 118 icalattach_new_from_data call site: 01412 /src/libical/src/libical/icalattach.c:65
2 57 2 :

['icalmemory_free_buffer', '__errno_location']

2 57 icalattach_new_from_url call site: 01394 /src/libical/src/libical/icalattach.c:34
2 2 1 :

['get_zone_directory_builtin']

24 512 icaltimezone_parse_zone_tab call site: 00523 /src/libical/src/libical/icaltimezone.c:1665
2 2 1 :

['__errno_location']

2 13 icalvalue_set_caladdress call site: 01499 /src/libical/src/libical/icalderivedvalue.c:200
2 2 1 :

['__errno_location']

2 13 icalvalue_set_query call site: 01447 /src/libical/src/libical/icalderivedvalue.c:579
2 2 1 :

['__errno_location']

2 13 icalvalue_set_string call site: 01489 /src/libical/src/libical/icalderivedvalue.c:741
2 2 1 :

['__errno_location']

2 13 icalvalue_set_text call site: 00100 /src/libical/src/libical/icalderivedvalue.c:810
2 2 1 :

['__errno_location']

2 13 icalvalue_set_uid call site: 01690 /src/libical/src/libical/icalderivedvalue.c:879
2 2 1 :

['__errno_location']

2 13 icalvalue_set_uri call site: 01509 /src/libical/src/libical/icalderivedvalue.c:917
2 2 1 :

['__errno_location']

2 13 icalvalue_set_xmlreference call site: 01700 /src/libical/src/libical/icalderivedvalue.c:1017

Runtime coverage analysis

Covered functions
336
Functions that are reachable but not covered
215
Reachable functions
550
Percentage of reachable functions covered
60.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
/src/libical_extended_fuzzer.cc 1
icalcomponent.c 30
icalparser.c 21
icalerror.c 10
icalmemory.c 15
pvl.c 15
icalderivedparameter.c 18
icalparameter.c 15
icalderivedproperty.c 48
icalproperty.c 21
icalderivedvalue.c 63
icalvalue.c 34
icaltime.c 23
icalattach.c 7
icalrecur.c 97
icaltimezone.c 33
icalarray.c 10
icaltz-util.c 11
/usr/include/x86_64-linux-gnu/bits/byteswap.h 2
icalperiod.c 5
icalduration.c 9
caldate.c 2
qsort_gen.c 2
/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h 1
icaltypes.c 5
/usr/include/stdlib.h 1
/usr/include/x86_64-linux-gnu/bits/stdlib-float.h 1
icalenums.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
icalcomponent_foreach_recurrence /src/libical/src/libical/icalcomponent.c 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 40 0 437 82 31 483 0 2717 195
icalcomponent_merge_component /src/libical/src/libical/icalcomponent.c 2 ['N/A', 'N/A'] 22 0 143 33 11 527 0 2930 144
icaltimezone_truncate_vtimezone /src/libical/src/libical/icaltimezone.c 4 ['N/A', 'N/A', 'N/A', 'int'] 58 0 1192 216 78 468 0 2704 106
icalrestriction_check_component /src/libical/src/libical/icalrestriction.c 2 ['int', 'N/A'] 21 0 238 44 14 84 3 399 71
icalrecur_iterator_prev /src/libical/src/libical/icalrecur.c 2 ['N/A', 'N/A'] 57 0 179 42 12 458 0 2570 64
icalcomponent_set_due /src/libical/src/libical/icalcomponent.c 2 ['N/A', 'N/A'] 20 0 85 15 7 478 0 2655 40
icalvalue_compare /src/libical/src/libical/icalvalue.c 2 ['N/A', 'N/A'] 24 0 352 82 26 124 0 476 36

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

Functions statically reachable by fuzzers
41.0%
592 / 1461
Cyclomatic complexity statically reachable by fuzzers
54.0%
3508 / 6530

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 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

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/stdlib-float.h ['libical_fuzzer', 'libical_extended_fuzzer'] []
/src/libical/src/libical/icalvalue.c ['libical_fuzzer', 'libical_extended_fuzzer'] ['libical_fuzzer', 'libical_extended_fuzzer']
/src/libical/src/libical/caldate.c ['libical_fuzzer', 'libical_extended_fuzzer'] []
/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h ['libical_fuzzer', 'libical_extended_fuzzer'] []
/src/libical/src/libical/qsort_gen.c ['libical_fuzzer', 'libical_extended_fuzzer'] []
/src/libical/src/libical/icalderivedproperty.c ['libical_fuzzer', 'libical_extended_fuzzer'] ['libical_fuzzer', 'libical_extended_fuzzer']
/src/libical_extended_fuzzer.cc ['libical_extended_fuzzer'] ['libical_extended_fuzzer']
/src/libical/src/libical/icalrestriction.c [] []
/src/libical/src/libical/icalparameter.c ['libical_fuzzer', 'libical_extended_fuzzer'] ['libical_fuzzer', 'libical_extended_fuzzer']
/usr/include/stdlib.h ['libical_fuzzer', 'libical_extended_fuzzer'] []
/src/libical/src/libical/pvl.c ['libical_fuzzer', 'libical_extended_fuzzer'] ['libical_fuzzer', 'libical_extended_fuzzer']
/src/libical/src/libical/icaltz-util.c ['libical_fuzzer', 'libical_extended_fuzzer'] ['libical_fuzzer', 'libical_extended_fuzzer']
/src/libical_fuzzer.cc ['libical_fuzzer'] ['libical_fuzzer']
/src/libical/src/libical/icalduration.c ['libical_fuzzer', 'libical_extended_fuzzer'] ['libical_fuzzer', 'libical_extended_fuzzer']
/usr/include/x86_64-linux-gnu/bits/byteswap.h ['libical_fuzzer', 'libical_extended_fuzzer'] []
/src/libical/src/libical/icalarray.c ['libical_fuzzer', 'libical_extended_fuzzer'] ['libical_fuzzer', 'libical_extended_fuzzer']
/src/libical/src/libical/icaltypes.c ['libical_fuzzer', 'libical_extended_fuzzer'] ['libical_fuzzer', 'libical_extended_fuzzer']
/src/libical/src/libical/icaltime.c ['libical_fuzzer', 'libical_extended_fuzzer'] ['libical_fuzzer', 'libical_extended_fuzzer']
/src/libical/src/libical/icalmemory.c ['libical_fuzzer', 'libical_extended_fuzzer'] ['libical_fuzzer', 'libical_extended_fuzzer']
/src/libical/src/libical/icalproperty.c ['libical_fuzzer', 'libical_extended_fuzzer'] ['libical_fuzzer', 'libical_extended_fuzzer']
/src/libical/src/libical/icalparser.c ['libical_fuzzer', 'libical_extended_fuzzer'] ['libical_fuzzer', 'libical_extended_fuzzer']
/src/libical/src/libical/icaltimezone.c ['libical_fuzzer', 'libical_extended_fuzzer'] ['libical_fuzzer', 'libical_extended_fuzzer']
/src/libical/src/libical/icalrecur.c ['libical_fuzzer', 'libical_extended_fuzzer'] ['libical_fuzzer', 'libical_extended_fuzzer']
/src/libical/src/libical/icalderivedparameter.c ['libical_fuzzer', 'libical_extended_fuzzer'] ['libical_fuzzer', 'libical_extended_fuzzer']
/src/libical/src/libical/icalperiod.c ['libical_fuzzer', 'libical_extended_fuzzer'] ['libical_fuzzer', 'libical_extended_fuzzer']
/src/libical/src/libical/icalenums.c ['libical_fuzzer', 'libical_extended_fuzzer'] ['libical_fuzzer', 'libical_extended_fuzzer']
/src/libical/src/libical/icalderivedvalue.c ['libical_fuzzer', 'libical_extended_fuzzer'] ['libical_fuzzer', 'libical_extended_fuzzer']
/src/libical/src/libical/icalattach.c ['libical_fuzzer', 'libical_extended_fuzzer'] ['libical_fuzzer', 'libical_extended_fuzzer']
/src/libical/src/libical/icalerror.c ['libical_fuzzer', 'libical_extended_fuzzer'] ['libical_fuzzer', 'libical_extended_fuzzer']
/src/libical/src/libical/icalcomponent.c ['libical_fuzzer', 'libical_extended_fuzzer'] ['libical_fuzzer', 'libical_extended_fuzzer']

Directories in report

Directory
/usr/include/
/src/
/src/libical/src/libical/
/usr/include/x86_64-linux-gnu/bits/