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 1081 44.1%
gold [1:9] 57 2.32%
yellow [10:29] 28 1.14%
greenyellow [30:49] 19 0.77%
lawngreen 50+ 1262 51.5%
All colors 2447 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
1613 1613 1 :

['xmlValidateOneElement']

1613 1617 xmlSAX2EndElementNs call site: 00000 /src/libxml2/SAX2.c:2428
1562 1562 1 :

['xmlParseStartTag']

2293 4148 xmlParseElementStart call site: 00795 /src/libxml2/parser.c:9734
1132 2221 8 :

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

1132 2230 xmlBuildURISafe call site: 01816 /src/libxml2/uri.c:1984
1023 1023 1 :

['xmlParseEndTag1']

1038 1038 xmlParseElementEnd call site: 01231 /src/libxml2/parser.c:9833
914 2166 4 :

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

914 10903 xmlCtxtParseContentInternal call site: 01421 /src/libxml2/parser.c:11695
776 813 2 :

['xmlNewNs', 'xmlNsWarnMsg']

2206 8414 xmlSAX2StartElementNs call site: 00000 /src/libxml2/SAX2.c:2311
739 739 1 :

['xmlSwitchInputEncodingName']

739 739 xmlCtxtNewInputFromMemory call site: 00174 /src/libxml2/parserInternals.c:1929
739 739 1 :

['xmlSwitchInputEncodingName']

739 739 xmlCtxtNewInputFromString call site: 00665 /src/libxml2/parserInternals.c:1990
678 1181 2 :

['xmlNodeParseAttValue', 'xmlFreeProp']

882 1385 xmlNewDocProp call site: 01514 /src/libxml2/tree.c:1644
678 678 1 :

['xmlNodeParseAttValue']

882 882 xmlNewElem call site: 01279 /src/libxml2/tree.c:1855
546 546 1 :

['htmlNewDocNoDtD']

866 866 xmlSAX2StartDocument call site: 00000 /src/libxml2/SAX2.c:800
521 521 1 :

['xmlSBufReportError']

521 521 xmlSBufFinish call site: 00981 /src/libxml2/parser.c:796

Runtime coverage analysis

Covered functions
461
Functions that are reachable but not covered
193
Reachable functions
599
Percentage of reachable functions covered
67.78%
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 20
libxml2/xmlmemory.c 1
libxml2/encoding.c 15
libxml2/xpath.c 2
libxml2/xmlIO.c 15
libxml2/catalog.c 33
libxml2/xmlschemastypes.c 1
libxml2/relaxng.c 1
xmlsecbuffer.c 9
xmlsecerrors.c 1
libxml2/xmlstring.c 17
xmlsecparser.c 3
libxml2/parser.c 141
libxml2/parserInternals.c 40
libxml2/./include/private/threads.h 3
libxml2/SAX2.c 6
libxml2/buf.c 19
libxml2/hash.c 26
libxml2/tree.c 65
libxml2/./include/private/memory.h 1
libxml2/HTMLparser.c 3
libxml2/chvalid.c 1
libxml2/./include/private/parser.h 2
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 1187 0 16080 9004
xmlSecXsltPushBin /src/xmlsec/src/xslt.c 5 ['N/A', 'N/A', 'size_t', 'int', 'N/A'] 33 0 836 202 85 1177 0 14619 7284
xsltLoadStylesheetPI /src/libxslt/libxslt/xslt.c 1 ['N/A'] 30 0 410 68 26 858 0 10167 2346
xmlTextReaderRelaxNGValidate /src/libxml2/xmlreader.c 2 ['N/A', 'N/A'] 49 0 20 3 2 974 0 12540 1696
xmlSecEncCtxDecrypt /src/xmlsec/src/xmlenc.c 2 ['N/A', 'N/A'] 30 0 160 33 15 751 0 9054 1613
xmlTextReaderNextTree /src/libxml2/xmlreader.c 1 ['N/A'] 61 0 192 24 11 976 3 12590 1253
xmlSecTransformC14NPopBin /src/xmlsec/src/c14n.c 5 ['N/A', 'N/A', 'size_t', 'N/A', 'N/A'] 19 0 836 216 96 294 0 2999 612

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

Functions statically reachable by fuzzers
61.0%
2252 / 3685
Cyclomatic complexity statically reachable by fuzzers
71.0%
30863 / 43212

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

Directories in report

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