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

Fuzzer details

Fuzzer: xml_parser_fuzzer

Call tree

The following is the call tree with color coding for which functions are hit/not hit. This info is based on the coverage achieved of all fuzzers together and not just this specific fuzzer. We use the following coloring scheme where min/max is an interval [min:max) (max non-inclusive) to color the callsite based on how many times the callsite is covered at run time.
Min Max Color
0 1 red
1 10 gold
10 30 yellow
30 50 greenyellow
50 1000000000000 lawngreen

For further technical details on the call tree overview, please see the Glossary .

The distribution of callsites in terms of coloring is
Color Callsite count Percentage
red 25 30.1%
gold 0 0.0%
yellow 0 0.0%
greenyellow 0 0.0%
lawngreen 58 69.8%
All colors 83 100

Full call tree

The following link provides a visualisation of the full call tree overlaid with coverage information: full call tree

For further technical details on how the call tree is generated, please see the Glossary .

Fuzz blockers

The followings nodes represent call sites where fuzz blockers occur.

Amount of callsites blocked Calltree index Parent function Callsite Largest blocked function
15 16 getDebugLevel call site setContext
4 51 poolCopyString call site addBinding
3 47 lookup call site lookup
1 33 poolGrow call site lookup
1 58 XML_Parse call site startParsing
1 81 cmXMLParser::~cmXMLParser() call site __cxa_begin_catch

Runtime coverage analysis

Covered functions
192
Functions that are reachable but not covered
20
Reachable functions
57
Percentage of reachable functions covered
64.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.
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
Tests/Fuzzing/xml_parser_fuzzer.cc 1
Source/cmXMLParser.cxx 6
Utilities/cmexpat/lib/xmlparse.c 32
Utilities/cmexpat/lib/siphash.h 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
XML_ExternalEntityParserCreate /src/CMake/Utilities/cmexpat/lib/xmlparse.c 3 ['struct.XML_ParserStruct *', 'char *', 'char *'] 29 0 248 22 9 153 0 1647 1439
normal_contentTok /src/CMake/Utilities/cmexpat/lib/xmltok_impl.c 4 ['struct.encoding *', 'char *', 'char *', 'char **'] 5 0 434 88 25 10 0 220 220
big2_contentTok /src/CMake/Utilities/cmexpat/lib/xmltok_impl.c 4 ['struct.encoding *', 'char *', 'char *', 'char **'] 6 0 464 93 27 11 0 184 167
little2_contentTok /src/CMake/Utilities/cmexpat/lib/xmltok_impl.c 4 ['struct.encoding *', 'char *', 'char *', 'char **'] 6 0 460 93 27 11 0 184 126
normal_prologTok /src/CMake/Utilities/cmexpat/lib/xmltok_impl.c 4 ['struct.encoding *', 'char *', 'char *', 'char **'] 2 0 809 165 34 7 0 155 89
big2_prologTok /src/CMake/Utilities/cmexpat/lib/xmltok_impl.c 4 ['struct.encoding *', 'char *', 'char *', 'char **'] 3 0 807 162 30 8 0 124 66

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

Functions statically reachable by fuzzers
61.07%
229/375
Cyclomatic complexity statically reachable by fuzzers
76.69%
2478 / 3231

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