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

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 12 85.7%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 2 14.2%
All colors 14 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
9 4 ...XlsxWriter.dev.fuzzing.xlsx_fuzzer.TestOneInput call site: 00004 fuzz_helpers.EnhancedFuzzedDataProvider.PickValueInList
3 0 EP call site: 00000 fuzz_helpers.EnhancedFuzzedDataProvider

Runtime coverage analysis

Covered functions
291
Functions that are reachable but not covered
11
Reachable functions
12
Percentage of reachable functions covered
8.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.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
/ 1
...XlsxWriter.dev.fuzzing.xlsx_fuzzer 11

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
xlsxwriter.workbook.Workbook.close xlsxwriter.workbook 1 ['N/A'] 6 0 4 2 4 437 1 1419 1410
xlsxwriter.chart.Chart._write_chart xlsxwriter.chart 1 ['N/A'] 10 0 10 4 5 242 1 821 761
xlsxwriter.worksheet.Worksheet._assemble_xml_file xlsxwriter.worksheet 1 ['N/A'] 5 0 32 2 4 163 0 608 489
xlsxwriter.worksheet.convert_range_args.cell_wrapper xlsxwriter.worksheet 3 ['N/A', 'N/A', 'N/A'] 7 0 2 2 4 136 0 533 321
xlsxwriter.drawing.Drawing._write_two_cell_anchor xlsxwriter.drawing 3 ['N/A', 'N/A', 'N/A'] 5 0 11 5 5 94 1 312 223
xlsxwriter.workbook.Workbook.add_chart xlsxwriter.workbook 2 ['N/A', 'N/A'] 5 0 4 11 7 68 0 248 118
xlsxwriter.chart.Chart.add_series xlsxwriter.chart 2 ['N/A', 'N/A'] 6 0 5 12 8 52 0 201 60
xlsxwriter.worksheet.Worksheet._write_rich_string xlsxwriter.worksheet 4 ['N/A', 'N/A', 'N/A', 'N/A'] 5 0 16 13 8 69 2 241 53
xlsxwriter.worksheet.Worksheet._prepare_shape xlsxwriter.worksheet 3 ['N/A', 'N/A', 'N/A'] 3 0 3 9 7 29 0 110 53
xlsxwriter.worksheet.Worksheet.filter_column xlsxwriter.worksheet 3 ['N/A', 'N/A', 'N/A'] 2 0 8 6 5 23 0 82 40

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

Functions statically reachable by fuzzers
77.0%
758 / 990
Cyclomatic complexity statically reachable by fuzzers
77.0%
2794 / 3615

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

Runtime coverage analysis

This section shows analysis of runtime coverage data.

For futher technical details on how this section is generated, please see the Glossary .

Complex functions with low coverage

Func name Function total lines Lines covered at runtime percentage covered Reached by fuzzers
xlsxwriter.worksheet.Worksheet._write 40 0 0.0% []
xlsxwriter.worksheet.Worksheet._prepare_formula 166 38 22.89% []
xlsxwriter.worksheet.Worksheet._write_url 49 0 0.0% []
xlsxwriter.worksheet.Worksheet._write_rich_string 57 0 0.0% []
xlsxwriter.worksheet.Worksheet.autofit 64 0 0.0% []
xlsxwriter.worksheet.Worksheet.data_validation 87 0 0.0% []
xlsxwriter.worksheet.Worksheet.conditional_format 200 0 0.0% []
xlsxwriter.worksheet.Worksheet.add_table 157 0 0.0% []
xlsxwriter.worksheet.Worksheet.add_sparkline 87 0 0.0% []
xlsxwriter.worksheet.Worksheet.set_header 34 0 0.0% []
xlsxwriter.worksheet.Worksheet.set_footer 34 0 0.0% []
xlsxwriter.worksheet.Worksheet._parse_filter_tokens 33 0 0.0% []
xlsxwriter.worksheet.Worksheet._prepare_image 56 0 0.0% []
xlsxwriter.worksheet.Worksheet._prepare_shape 51 0 0.0% []
xlsxwriter.worksheet.Worksheet._position_object_pixels 43 0 0.0% []
xlsxwriter.worksheet.Worksheet._comment_params 64 0 0.0% []
xlsxwriter.worksheet.Worksheet._button_params 31 0 0.0% []
xlsxwriter.worksheet.Worksheet._write_font 34 0 0.0% []
xlsxwriter.worksheet.Worksheet._set_icon_props 36 0 0.0% []
xlsxwriter.worksheet.Worksheet._write_sheet_view 34 15 44.11% []
xlsxwriter.worksheet.Worksheet._write_col_info 32 0 0.0% []
xlsxwriter.worksheet.Worksheet._write_page_setup 32 3 9.375% []
xlsxwriter.worksheet.Worksheet._write_cell 63 25 39.68% []
xlsxwriter.worksheet.Worksheet._write_sheet_protection 41 3 7.317% []
xlsxwriter.worksheet.Worksheet._write_data_validation 46 0 0.0% []
xlsxwriter.worksheet.Worksheet._write_cf_rule 68 0 0.0% []
xlsxwriter.worksheet.Worksheet._write_freeze_panes 36 0 0.0% []
xlsxwriter.worksheet.Worksheet._write_split_panes 42 0 0.0% []
xlsxwriter.worksheet.Worksheet._write_sparkline_group 43 0 0.0% []
xlsxwriter.worksheet.Worksheet._write_ignored_errors 31 2 6.451% []
xlsxwriter.utility.quote_sheetname 31 0 0.0% []
xlsxwriter.utility.get_image_properties 42 0 0.0% []
xlsxwriter.utility._process_jpg 32 0 0.0% []
xlsxwriter.format.Format.set_align 35 0 0.0% []
xlsxwriter.format.Format._get_align_properties 57 4 7.017% []
xlsxwriter.workbook.Workbook.add_chart 31 0 0.0% []
xlsxwriter.workbook.Workbook._prepare_drawings 91 21 23.07% []
xlsxwriter.workbook.Workbook._add_chart_data 36 7 19.44% []
xlsxwriter.drawing.Drawing._write_two_cell_anchor 39 0 0.0% []
xlsxwriter.drawing.Drawing._write_tx_body 64 0 0.0% []
xlsxwriter.shape.Shape.__init__ 31 0 0.0% []
xlsxwriter.shape.Shape._get_gradient_properties 40 0 0.0% []
xlsxwriter.chart.Chart.__init__ 66 0 0.0% []
xlsxwriter.chart.Chart.add_series 52 0 0.0% []
xlsxwriter.chart.Chart._convert_axis_args 46 0 0.0% []
xlsxwriter.chart.Chart._get_labels_properties 63 0 0.0% []
xlsxwriter.chart.Chart._write_cat_axis 39 0 0.0% []
xlsxwriter.chart.Chart._write_val_axis 35 0 0.0% []
xlsxwriter.chart.Chart._write_cat_val_axis 35 0 0.0% []
xlsxwriter.chart.Chart._write_date_axis 41 0 0.0% []
xlsxwriter.chart.Chart._write_custom_labels 32 0 0.0% []

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
[] []
xlsxwriter.chart_column [] []
xlsxwriter.custom [] []
xlsxwriter.xmlwriter [] []
xlsxwriter.workbook [] []
re [] []
xlsxwriter.styles [] []
xlsxwriter.app [] []
xlsxwriter.packager [] []
xlsxwriter.vml [] []
xlsxwriter.table [] []
os [] []
xlsxwriter.chart_scatter [] []
zipfile [] []
atheris [] []
math [] []
io [] []
xlsxwriter [] []
xlsxwriter.format [] []
xlsxwriter.chartsheet [] []
shutil [] []
collections [] []
fuzz_helpers [] []
xlsxwriter.chart_doughnut [] []
xlsxwriter.contenttypes [] []
xlsxwriter.chart_area [] []
hashlib [] []
xlsxwriter.chart [] []
xlsxwriter.chart_pie [] []
xlsxwriter.rich_value [] []
xlsxwriter.theme [] []
...XlsxWriter.dev.fuzzing.xlsx_fuzzer ['xlsx_fuzzer'] []
xlsxwriter.chart_stock [] []
xlsxwriter.metadata [] []
tempfile [] []
xlsxwriter.chart_bar [] []
xlsxwriter.worksheet [] []
copy [] []
xlsxwriter.utility [] []
xlsxwriter.chart_radar [] []
xlsxwriter.chart_line [] []
xlsxwriter.drawing [] []
xlsxwriter.exceptions [] []
xlsxwriter.relationships [] []
xlsxwriter.core [] []
xlsxwriter.rich_value_rel [] []
warnings [] []
xlsxwriter.comments [] []
time [] []
xlsxwriter.rich_value_types [] []
xlsxwriter.shape [] []
struct [] []
datetime [] []
[] []
xlsxwriter.sharedstrings [] []
operator [] []
functools [] []
xlsxwriter.rich_value_structure [] []

Directories in report

Directory