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: xmlsec_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 1094 44.3%
gold [1:9] 60 2.43%
yellow [10:29] 30 1.21%
greenyellow [30:49] 16 0.64%
lawngreen 50+ 1267 51.3%
All colors 2467 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
1604 1604 1 :

['xmlValidateOneElement']

1604 1608 xmlSAX2EndElementNs call site: 00000 /src/libxml2/SAX2.c:2404
1561 1561 1 :

['xmlParseStartTag']

2282 4124 xmlParseElementStart call site: 00800 /src/libxml2/parser.c:9740
1132 2221 8 :

['xmlNormalizeURIPath', 'xmlFreeURI', 'xmlCreateURI', 'xmlResolvePath', 'xmlStrstr', 'strlen', 'xmlSaveUri', 'xmlParseURISafe']

1132 2230 xmlBuildURISafe call site: 01837 /src/libxml2/uri.c:1984
1020 1020 1 :

['xmlParseEndTag1']

1035 1035 xmlParseElementEnd call site: 01238 /src/libxml2/parser.c:9839
911 2155 4 :

['xmlStrEqual', 'xmlDetectEncoding', 'xmlFatalErrMsg', 'xmlParseTextDecl']

911 10903 xmlCtxtParseContentInternal call site: 01437 /src/libxml2/parser.c:11692
766 803 2 :

['xmlNewNs', 'xmlNsWarnMsg']

2178 8428 xmlSAX2StartElementNs call site: 00000 /src/libxml2/SAX2.c:2287
734 734 1 :

['xmlSwitchInputEncodingName']

734 734 xmlCtxtNewInputFromMemory call site: 00173 /src/libxml2/parserInternals.c:1875
734 734 1 :

['xmlSwitchInputEncodingName']

734 734 xmlCtxtNewInputFromString call site: 00669 /src/libxml2/parserInternals.c:1936
691 1205 2 :

['xmlFreeProp', 'xmlNodeParseContent']

891 1405 xmlNewDocProp call site: 01531 /src/libxml2/tree.c:1642
691 691 1 :

['xmlNodeParseContent']

891 891 xmlNewElem call site: 01287 /src/libxml2/tree.c:1849
557 557 1 :

['htmlNewDocNoDtD']

873 873 xmlSAX2StartDocument call site: 00000 /src/libxml2/SAX2.c:798
516 516 1 :

['xmlSBufReportError']

516 516 xmlSBufFinish call site: 00988 /src/libxml2/parser.c:812

Runtime coverage analysis

Covered functions
455
Functions that are reachable but not covered
196
Reachable functions
596
Percentage of reachable functions covered
67.11%
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
xmlsec/tests/oss-fuzz/xmlsec_target.c 2
libxml2/error.c 17
libxml2/globals.c 20
libxml2/threads.c 9
libxml2/dict.c 21
libxml2/xmlmemory.c 1
libxml2/encoding.c 15
libxml2/xpath.c 2
libxml2/xmlIO.c 15
libxml2/catalog.c 33
xmlsecbuffer.c 9
xmlsecerrors.c 1
libxml2/xmlstring.c 17
xmlsecparser.c 3
libxml2/parser.c 143
libxml2/parserInternals.c 40
libxml2/SAX2.c 6
libxml2/buf.c 19
libxml2/hash.c 26
libxml2/tree.c 66
libxml2/./include/private/memory.h 1
libxml2/HTMLparser.c 3
libxml2/chvalid.c 1
libxml2/uri.c 35
libxml2/entities.c 10
libxml2/valid.c 40
libxml2/list.c 3
libxml2/xmlregexp.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
xmlSchemaValidateStream /src/libxml2/xmlschemas.c 5 ['N/A', 'N/A', 'int', 'N/A', 'N/A'] 54 0 150 24 10 1184 0 16101 9014
xmlSecXsltPushBin /src/xmlsec/src/xslt.c 5 ['N/A', 'N/A', 'size_t', 'int', 'N/A'] 33 0 836 202 85 1173 0 14628 7282
xsltLoadStylesheetPI /src/libxslt/libxslt/xslt.c 1 ['N/A'] 31 0 410 68 26 854 0 10173 2346
xmlTextReaderRelaxNGValidate /src/libxml2/xmlreader.c 2 ['N/A', 'N/A'] 49 0 20 3 2 971 0 12543 1679
xmlSecEncCtxDecrypt /src/xmlsec/src/xmlenc.c 2 ['N/A', 'N/A'] 30 0 160 33 15 748 0 9073 1613
xmlTextReaderNextTree /src/libxml2/xmlreader.c 1 ['N/A'] 61 0 192 24 11 972 3 12597 1253
xmlSecTransformC14NPopBin /src/xmlsec/src/c14n.c 5 ['N/A', 'N/A', 'size_t', 'N/A', 'N/A'] 19 0 836 216 96 293 0 3014 612

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

Functions statically reachable by fuzzers
61.0%
2248 / 3672
Cyclomatic complexity statically reachable by fuzzers
71.0%
30865 / 43183

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/libxslt/libxslt/attrvt.c [] []
/src/libxml2/globals.c ['xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxslt/libxslt/imports.c [] []
/src/libxml2/HTMLparser.c ['xmlsec_fuzzer'] []
/src/xmlsec/src/list.c [] []
/src/libxml2/chvalid.c ['xmlsec_fuzzer'] []
/src/libxml2/xmlschemas.c [] []
/src/libxml2/./timsort.h [] []
/src/xmlsec/src/keysdata.c [] []
/src/libxml2/c14n.c [] []
/src/libxslt/libxslt/namespaces.c [] []
/src/libxml2/SAX2.c ['xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxml2/xinclude.c [] []
/src/libxml2/xmlmemory.c ['xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/xmlsec/src/enveloped.c [] []
/src/libxslt/libxslt/keys.c [] []
/src/libxml2/pattern.c [] []
/src/xmlsec/src/xslt.c [] []
/src/libxml2/xpath.c ['xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxml2/error.c ['xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxml2/parserInternals.c ['xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxslt/libxslt/xsltlocale.c [] []
/src/xmlsec/src/c14n.c [] []
/src/xmlsec/src/xmlenc.c [] []
/src/libxslt/libxslt/preproc.c [] []
/src/libxslt/libxslt/functions.c [] []
/src/libxml2/parser.c ['xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxml2/xmlschemastypes.c [] []
/src/libxml2/dict.c ['xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/xmlsec/src/transforms.c [] []
/src/libxml2/uri.c ['xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxml2/xpointer.c [] []
/src/libxml2/list.c ['xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/xmlsec/src/xmlsec.c [] []
/src/xmlsec/src/nodeset.c [] []
/src/xmlsec/src/io.c [] []
/src/xmlsec/src/buffer.c ['xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxml2/./include/private/memory.h ['xmlsec_fuzzer'] []
/src/xmlsec/src/keysmngr.c [] []
/src/libxslt/libxslt/extensions.c [] []
/src/libxslt/libxslt/xslt.c [] []
/src/libxslt/libxslt/numbers.c [] []
/src/xmlsec/tests/oss-fuzz/xmlsec_target.c ['xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxslt/libxslt/pattern.c [] []
/src/xmlsec/src/errors.c ['xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxml2/entities.c ['xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxml2/valid.c ['xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxslt/libxslt/templates.c [] []
/src/libxml2/hash.c ['xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxml2/catalog.c ['xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxml2/HTMLtree.c [] []
/src/xmlsec/src/relationship.c [] []
/src/libxml2/xmlregexp.c ['xmlsec_fuzzer'] []
/src/xmlsec/src/base64.c [] []
/src/libxml2/buf.c ['xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxml2/relaxng.c [] []
/src/libxml2/encoding.c ['xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxslt/libxslt/attributes.c [] []
/src/libxslt/libxslt/documents.c [] []
/src/xmlsec/src/parser.c ['xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/xmlsec/src/keyinfo.c [] []
/src/xmlsec/src/keys.c [] []
/src/libxml2/xmlstring.c ['xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxml2/tree.c ['xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxml2/xmlreader.c [] []
/src/libxslt/libxslt/transform.c [] []
/src/libxslt/libxslt/extra.c [] []
/src/libxml2/xmlsave.c [] []
/src/libxslt/libxslt/security.c [] []
/src/xmlsec/src/membuf.c [] []
/src/xmlsec/src/xmltree.c [] []
/src/libxml2/./codegen/unicode.inc [] []
/src/xmlsec/src/xpath.c [] []
/src/libxslt/libxslt/xsltutils.c [] []
/src/libxml2/threads.c ['xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxslt/libxslt/variables.c [] []
/src/libxml2/debugXML.c [] []
/src/libxml2/xmlIO.c ['xmlsec_fuzzer'] ['xmlsec_fuzzer']

Directories in report

Directory
/src/xmlsec/src/
/src/libxml2/./codegen/
/src/libxml2/./include/private/
/src/libxml2/
/src/libxslt/libxslt/
/src/libxml2/./
/src/xmlsec/tests/oss-fuzz/