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: hoedown_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 35 10.3%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 304 89.6%
All colors 339 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 201 parse_block call site: 00201 parse_blockcode
3 105 parse_atxheader call site: 00105 parse_htmlblock
3 111 hoedown_find_html5_block_tag call site: 00111 hoedown_find_block_tag
2 2 hoedown_buffer_new call site: 00002 fprintf
2 8 hoedown_realloc call site: 00008 fprintf
2 46 hoedown_calloc call site: 00046 fprintf
2 101 parse_atxheader call site: 00101 hoedown_buffer_put
2 115 parse_htmlblock call site: 00115 hoedown_buffer_put
2 197 parse_blockquote call site: 00197 prefix_quote
1 52 add_footnote_ref call site: 00052 free_footnote_ref
1 98 parse_attributes call site: 00098 hoedown_buffer_reset
1 138 parse_codefence call site: 00138 _isspace

Runtime coverage analysis

Covered functions
157
Functions that are reachable but not covered
15
Reachable functions
90
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.
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
/src/hoextdown/test/hoedown_fuzzer.c 1
buffer.c 10
html.c 1
hash.c 1
document.c 58
stack.c 4
html5_blocks.c 3
html_blocks.c 3

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
char_image /src/hoextdown/src/document.c 5 ['N/A', 'N/A', 'N/A', 'size_t', 'size_t'] 6 0 71 11 5 30 0 237 156
rndr_header /src/hoextdown/src/html.c 5 ['N/A', 'N/A', 'N/A', 'int', 'N/A'] 7 0 193 30 12 31 0 177 137
char_emphasis /src/hoextdown/src/document.c 5 ['N/A', 'N/A', 'N/A', 'size_t', 'size_t'] 7 0 339 60 26 22 0 164 71
char_langle_tag /src/hoextdown/src/document.c 5 ['N/A', 'N/A', 'N/A', 'size_t', 'size_t'] 5 0 145 18 7 20 0 118 53
char_autolink_url /src/hoextdown/src/document.c 5 ['N/A', 'N/A', 'N/A', 'size_t', 'size_t'] 5 0 105 15 6 21 0 93 51

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

Functions statically reachable by fuzzers
59.0%
113 / 193
Cyclomatic complexity statically reachable by fuzzers
75.0%
1498 / 2000

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