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: xlsx_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 2683 74.6%
gold [1:9] 6 0.16%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 904 25.1%
All colors 3593 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
316 1998 lxw_create_package call site: 01998 lxw_chart_assemble_xml_file
230 2486 lxw_create_package call site: 02486 _write_vml_drawing_rels_file
203 1424 _worksheet_write_conditional_formats call site: 01424 _worksheet_write_conditional_formatting
168 2316 lxw_create_package call site: 02316 _add_to_zip
151 594 workbook_close call site: 00594 worksheet_set_error_cell
87 3293 lxw_create_package call site: 03293 _add_to_zip
83 1214 _worksheet_write_sheet_view call site: 01214 _worksheet_write_panes
74 2718 lxw_create_package call site: 02718 _add_to_zip
63 2794 lxw_create_package call site: 02794 _add_to_zip
61 532 workbook_close call site: 00532 _store_defined_name
56 1793 lxw_worksheet_assemble_xml_file call site: 01793 _worksheet_write_ext_list_data_bars
52 479 workbook_close call site: 00479 lxw_worksheet_prepare_vml_objects

Runtime coverage analysis

Covered functions
298
Functions that are reachable but not covered
541
Reachable functions
835
Percentage of reachable functions covered
35.21%
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/libxlsxwriter/dev/fuzzing/xlsx_fuzzer.cpp 2
/src/libxlsxwriter/src/workbook.c 63
/src/libxlsxwriter/src/utility.c 18
/src/libxlsxwriter/src/shared_strings.c 13
/src/libxlsxwriter/src/hash_table.c 5
/src/libxlsxwriter/src/format.c 9
/src/libxlsxwriter/src/chartsheet.c 11
/src/libxlsxwriter/src/worksheet.c 190
/src/libxlsxwriter/src/drawing.c 49
/src/libxlsxwriter/src/chart.c 72
/src/libxlsxwriter/third_party/tmpfileplus/tmpfileplus.c 5
/src/libxlsxwriter/src/xmlwriter.c 16
/src/libxlsxwriter/src/packager.c 40
/src/libxlsxwriter/third_party/minizip/zip.c 30
/src/libxlsxwriter/third_party/minizip/ioapi.c 6
/src/libxlsxwriter/src/content_types.c 22
/src/libxlsxwriter/src/relationships.c 12
/src/libxlsxwriter/src/vml.c 43
/src/libxlsxwriter/src/comment.c 27
/src/libxlsxwriter/src/table.c 9
/src/libxlsxwriter/src/custom.c 11
/src/libxlsxwriter/src/theme.c 3
/src/libxlsxwriter/src/styles.c 45
/src/libxlsxwriter/src/core.c 16
/src/libxlsxwriter/src/metadata.c 17
/src/libxlsxwriter/src/rich_value.c 8
/src/libxlsxwriter/src/rich_value_rel.c 6
/src/libxlsxwriter/src/rich_value_types.c 8
/src/libxlsxwriter/src/rich_value_structure.c 7
/src/libxlsxwriter/src/app.c 24

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
_chart_write_line_chart /src/libxlsxwriter/src/chart.c 1 ['N/A'] 14 0 63 7 3 110 0 571 305
_chart_write_plot_area /src/libxlsxwriter/src/chart.c 1 ['N/A'] 14 0 52 3 2 95 0 494 190
worksheet_conditional_format_cell /src/libxlsxwriter/src/worksheet.c 4 ['N/A', 'int', 'short', 'N/A'] 5 0 26 3 2 35 0 233 163
worksheet_embed_image_buffer /src/libxlsxwriter/src/worksheet.c 5 ['N/A', 'int', 'short', 'N/A', 'size_t'] 13 0 27 3 2 112 0 653 157
worksheet_add_table /src/libxlsxwriter/src/worksheet.c 6 ['N/A', 'int', 'short', 'int', 'short', 'N/A'] 11 0 402 50 18 89 0 541 100
workbook_add_chart /src/libxlsxwriter/src/workbook.c 2 ['N/A', 'char'] 6 0 80 14 5 24 0 128 88
worksheet_data_validation_cell /src/libxlsxwriter/src/worksheet.c 4 ['N/A', 'int', 'short', 'N/A'] 5 0 26 3 2 17 0 130 81
worksheet_write_comment /src/libxlsxwriter/src/worksheet.c 4 ['N/A', 'int', 'short', 'N/A'] 9 0 24 3 2 66 0 407 49
workbook_add_chartsheet /src/libxlsxwriter/src/workbook.c 2 ['N/A', 'N/A'] 8 0 255 30 8 77 0 703 46
chartsheet_set_footer /src/libxlsxwriter/src/chartsheet.c 2 ['N/A', 'N/A'] 7 0 18 3 2 30 0 162 40

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

Functions statically reachable by fuzzers
74.0%
962 / 1301
Cyclomatic complexity statically reachable by fuzzers
83.0%
6288 / 7587

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
[] []
/src/libxlsxwriter/src/xmlwriter.c ['xlsx_fuzzer'] ['xlsx_fuzzer']
/src/libxlsxwriter/src/theme.c ['xlsx_fuzzer'] ['xlsx_fuzzer']
/src/libxlsxwriter/src/rich_value_structure.c ['xlsx_fuzzer'] []
/src/libxlsxwriter/src/hash_table.c ['xlsx_fuzzer'] ['xlsx_fuzzer']
/src/libxlsxwriter/src/comment.c ['xlsx_fuzzer'] []
/src/libxlsxwriter/src/chart.c ['xlsx_fuzzer'] []
/src/libxlsxwriter/third_party/minizip/ioapi.c ['xlsx_fuzzer'] ['xlsx_fuzzer']
/src/libxlsxwriter/src/relationships.c ['xlsx_fuzzer'] ['xlsx_fuzzer']
/src/libxlsxwriter/src/content_types.c ['xlsx_fuzzer'] ['xlsx_fuzzer']
/src/libxlsxwriter/src/custom.c ['xlsx_fuzzer'] []
/src/libxlsxwriter/src/packager.c ['xlsx_fuzzer'] ['xlsx_fuzzer']
/src/libxlsxwriter/third_party/tmpfileplus/tmpfileplus.c ['xlsx_fuzzer'] ['xlsx_fuzzer']
/src/libxlsxwriter/src/workbook.c ['xlsx_fuzzer'] ['xlsx_fuzzer']
/src/libxlsxwriter/src/format.c ['xlsx_fuzzer'] ['xlsx_fuzzer']
/src/libxlsxwriter/src/core.c ['xlsx_fuzzer'] ['xlsx_fuzzer']
/src/libxlsxwriter/src/rich_value_types.c ['xlsx_fuzzer'] []
/src/libxlsxwriter/third_party/minizip/zip.c ['xlsx_fuzzer'] ['xlsx_fuzzer']
/src/libxlsxwriter/src/chartsheet.c ['xlsx_fuzzer'] []
/usr/local/bin/../include/c++/v1/stdexcept [] []
/src/libxlsxwriter/src/shared_strings.c ['xlsx_fuzzer'] ['xlsx_fuzzer']
/src/libxlsxwriter/src/vml.c ['xlsx_fuzzer'] []
/src/libxlsxwriter/src/worksheet.c ['xlsx_fuzzer'] ['xlsx_fuzzer']
/src/libxlsxwriter/src/metadata.c ['xlsx_fuzzer'] []
/src/libxlsxwriter/third_party/md5/md5.c [] []
/src/libxlsxwriter/src/rich_value.c ['xlsx_fuzzer'] []
/src/libxlsxwriter/src/table.c ['xlsx_fuzzer'] []
/src/libxlsxwriter/src/app.c ['xlsx_fuzzer'] ['xlsx_fuzzer']
/src/libxlsxwriter/src/utility.c ['xlsx_fuzzer'] ['xlsx_fuzzer']
/src/libxlsxwriter/dev/fuzzing/xlsx_fuzzer.cpp ['xlsx_fuzzer'] ['xlsx_fuzzer']
/src/libxlsxwriter/src/styles.c ['xlsx_fuzzer'] ['xlsx_fuzzer']
/src/libxlsxwriter/src/rich_value_rel.c ['xlsx_fuzzer'] []
/src/libxlsxwriter/src/drawing.c ['xlsx_fuzzer'] []

Directories in report

Directory
/usr/local/bin/../include/c++/v1/
/src/libxlsxwriter/third_party/minizip/
/src/libxlsxwriter/third_party/tmpfileplus/
/src/libxlsxwriter/dev/fuzzing/
/src/libxlsxwriter/src/
/src/libxlsxwriter/third_party/md5/