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_dsig_verify_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 3802 100.%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 0 0.0%
All colors 3802 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
3801 0 EP call site: 00000 xmlReadMemory

Runtime coverage analysis

Covered functions
0
Functions that are reachable but not covered
868
Reachable functions
868
Percentage of reachable functions covered
0.0%
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/apps/oss-fuzz/xmlsec_dsig_verify_target.c 4
libxml2/threads.c 10
libxml2/dict.c 21
libxml2/error.c 17
libxml2/xmlmemory.c 1
libxml2/globals.c 20
libxml2/encoding.c 15
libxml2/xpath.c 20
libxml2/xmlIO.c 17
libxml2/catalog.c 37
libxml2/xmlschemastypes.c 1
libxml2/relaxng.c 1
xmlsecxmlsec.c 3
xmlsecerrors.c 7
xmlsecio.c 15
xmlseclist.c 12
libxml2/xmlstring.c 19
libxml2/uri.c 35
xmlseckeysdata.c 14
xmlseckeyinfo.c 11
xmlsectransforms.c 37
xmlsecbase64.c 14
xmlsecenveloped.c 1
xmlsecc14n.c 7
xmlsecxpath.c 12
xmlsecrelationship.c 1
xmlsecxslt.c 2
libxslt/libxslt/security.c 3
libxslt/libxslt/extensions.c 1
libxslt/libxslt/xsltutils.c 2
libxml2/tree.c 71
libxml2/parserInternals.c 41
xmlsecopenssl/app.c 5
xmlsecopenssl/crypto.c 8
xmlsecdl.c 1
xmlseckeysmngr.c 8
xmlsecopenssl/keysstore.c 1
xmlsecopenssl/x509vfy.c 3
xmlsecopenssl/x509.c 1
libxml2/parser.c 142
libxml2/SAX2.c 6
libxml2/buf.c 19
libxml2/hash.c 28
libxml2/HTMLparser.c 2
libxml2/./include/private/memory.h 1
libxml2/chvalid.c 1
libxml2/./include/private/parser.h 2
libxml2/entities.c 10
libxml2/valid.c 42
libxml2/list.c 3
libxml2/xmlregexp.c 4
xmlsecxmltree.c 9
xmlsecxmldsig.c 18
xmlseckeys.c 11
xmlsecbuffer.c 9
xmlsecnodeset.c 3
xmlsecxmlenc.c 4
xmlsecparser.c 1
xmlsecmembuf.c 3

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 1125 45.3%
gold [1:9] 58 2.33%
yellow [10:29] 24 0.96%
greenyellow [30:49] 20 0.80%
lawngreen 50+ 1254 50.5%
All colors 2481 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
199 1840 xmlBuildURISafe call site: 01840 xmlCatalogXMLResolve
62 1777 xmlSplitQName4 call site: 01777 xmlParseXMLCatalogNodeList
50 755 xmlHashLookup call site: 00755 xmlParseXMLCatalogFile
42 682 xmlURIUnescapeString call site: 00682 xmlCatalogLocalResolve
36 1616 xmlCopyNamespace call site: 01616 xmlCopyDtd
32 2224 xmlExpandPEsInEntityValue call site: 02224 xmlLoadEntityContent
22 1454 nodePush call site: 01454 xmlParseTextDecl
21 2045 xmlSkipBlankCharsPE call site: 02045 xmlSkipBlankCharsPE
20 1309 xmlCtxtParseContentInternal call site: 01309 xmlNewElem
19 1711 xmlNodeGetContent call site: 01711 xmlBufGetNodeContent
18 1182 xmlParseAttValue call site: 01182 xmlSkipBlankChars
17 1426 xmlFreeNode call site: 01426 xmlNodeParseAttValue

Runtime coverage analysis

Covered functions
459
Functions that are reachable but not covered
199
Reachable functions
603
Percentage of reachable functions covered
67.0%
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/apps/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 37
libxml2/xmlschemastypes.c 1
libxml2/relaxng.c 1
xmlsecbuffer.c 9
xmlsecerrors.c 1
libxml2/xmlstring.c 17
xmlsecparser.c 3
libxml2/parser.c 142
libxml2/parserInternals.c 40
libxml2/SAX2.c 6
libxml2/buf.c 19
libxml2/hash.c 27
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'] 60 0 141 24 10 1191 0 16130 8935
xmlSecXsltPushBin /src/xmlsec/src/xslt.c 5 ['N/A', 'N/A', 'size_t', 'int', 'N/A'] 34 0 805 202 85 1181 0 14666 7112
xsltLoadStylesheetPI /src/libxslt/libxslt/xslt.c 1 ['N/A'] 30 0 398 68 26 857 0 10177 2342
xmlTextReaderRelaxNGValidate /src/libxml2/xmlreader.c 2 ['N/A', 'N/A'] 55 0 18 3 2 980 0 12602 1712
xmlTextReaderNextTree /src/libxml2/xmlreader.c 1 ['N/A'] 68 0 191 24 11 981 3 12635 1253
xmlSecOpenSSLKeyDataX509XmlRead /src/xmlsec/src/openssl/x509.c 4 ['N/A', 'N/A', 'N/A', 'N/A'] 14 0 74 18 9 278 0 1675 1108
xmlSecEncCtxDecrypt /src/xmlsec/src/xmlenc.c 2 ['N/A', 'N/A'] 31 0 153 33 15 764 0 9156 832

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

Functions statically reachable by fuzzers
57.9%
2434 / 4217
Cyclomatic complexity statically reachable by fuzzers
64.0%
32567 / 50907

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/libxml2/buf.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxml2/./include/private/memory.h ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] []
/src/xmlsec/src/keys.c ['xmlsec_dsig_verify_fuzzer'] []
/src/xmlsec/src/xmlsec.c ['xmlsec_dsig_verify_fuzzer'] []
/src/libxml2/./timsort.h [] []
/src/xmlsec/src/relationship.c ['xmlsec_dsig_verify_fuzzer'] []
/src/libxml2/relaxng.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxml2/pattern.c [] []
/src/libxml2/encoding.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxml2/dict.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxslt/libxslt/attributes.c [] []
/src/xmlsec/src/base64.c ['xmlsec_dsig_verify_fuzzer'] []
/src/libxslt/libxslt/functions.c [] []
/src/xmlsec/src/openssl/key_agrmnt.c [] []
/src/xmlsec/src/openssl/evp.c [] []
/src/libxslt/libxslt/extra.c [] []
/src/libxslt/libxslt/transform.c [] []
/src/libxslt/libxslt/numbers.c [] []
/src/xmlsec/src/transform_helpers.c [] []
/src/xmlsec/src/openssl/ciphers.c [] []
/src/libxml2/SAX2.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxml2/error.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxml2/xpath.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxml2/HTMLparser.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] []
/src/libxslt/libxslt/templates.c [] []
/src/libxml2/xmlIO.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/xmlsec/src/enveloped.c ['xmlsec_dsig_verify_fuzzer'] []
/src/libxslt/libxslt/xsltlocale.c [] []
/src/xmlsec/src/openssl/app.c ['xmlsec_dsig_verify_fuzzer'] []
/src/libxslt/libxslt/documents.c [] []
/src/libxslt/libxslt/preproc.c [] []
/src/xmlsec/src/openssl/digests.c [] []
/src/xmlsec/src/transforms.c ['xmlsec_dsig_verify_fuzzer'] []
/src/xmlsec/src/kw_helpers.c [] []
/src/xmlsec/src/errors.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/xmlsec/src/openssl/kw_des.c [] []
/src/xmlsec/src/openssl/x509.c ['xmlsec_dsig_verify_fuzzer'] []
/src/xmlsec/src/openssl/keysstore.c ['xmlsec_dsig_verify_fuzzer'] []
/src/xmlsec/src/keysmngr.c ['xmlsec_dsig_verify_fuzzer'] []
/src/xmlsec/src/openssl/kt_rsa.c [] []
/src/libxml2/HTMLtree.c [] []
/src/xmlsec/src/openssl/kdf.c [] []
/src/libxml2/xmlschemas.c [] []
/src/libxml2/./include/private/parser.h ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] []
/src/libxslt/libxslt/namespaces.c [] []
/src/libxml2/xmlschemastypes.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/xmlsec/src/x509_helpers.c [] []
/src/xmlsec/src/io.c ['xmlsec_dsig_verify_fuzzer'] []
/src/libxml2/uri.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/xmlsec/src/openssl/signatures.c [] []
/src/libxslt/libxslt/xsltutils.c ['xmlsec_dsig_verify_fuzzer'] []
/src/libxml2/tree.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxslt/libxslt/pattern.c [] []
/src/xmlsec/src/openssl/hmac.c [] []
/src/xmlsec/src/openssl/crypto.c ['xmlsec_dsig_verify_fuzzer'] []
/src/libxml2/c14n.c [] []
/src/xmlsec/src/openssl/symkeys.c [] []
/src/xmlsec/src/parser.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/xmlsec/src/xslt.c ['xmlsec_dsig_verify_fuzzer'] []
/src/xmlsec/src/openssl/x509vfy.c ['xmlsec_dsig_verify_fuzzer'] []
/src/libxml2/valid.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxml2/xpointer.c [] []
/src/xmlsec/src/xmldsig.c ['xmlsec_dsig_verify_fuzzer'] []
/src/libxml2/threads.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/xmlsec/src/buffer.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxslt/libxslt/extensions.c ['xmlsec_dsig_verify_fuzzer'] []
/src/xmlsec/src/xmltree.c ['xmlsec_dsig_verify_fuzzer'] []
/src/xmlsec/src/c14n.c ['xmlsec_dsig_verify_fuzzer'] []
/src/libxslt/libxslt/security.c ['xmlsec_dsig_verify_fuzzer'] []
/src/xmlsec/src/keysdata_helpers.c [] []
/src/xmlsec/src/openssl/der_encoded_value.c [] []
/src/libxml2/chvalid.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] []
/src/xmlsec/src/openssl/kw_rfc_3394.c [] []
/src/xmlsec/src/xpath.c ['xmlsec_dsig_verify_fuzzer'] []
/src/xmlsec/src/membuf.c ['xmlsec_dsig_verify_fuzzer'] []
/src/xmlsec/apps/oss-fuzz/xmlsec_target.c ['xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/xmlsec/src/dl.c ['xmlsec_dsig_verify_fuzzer'] []
/src/libxml2/xmlmemory.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxml2/parser.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxml2/xmlregexp.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] []
/src/xmlsec/src/nodeset.c ['xmlsec_dsig_verify_fuzzer'] []
/src/libxslt/libxslt/keys.c [] []
/src/libxml2/list.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/xmlsec/src/keysdata.c ['xmlsec_dsig_verify_fuzzer'] []
/src/libxml2/entities.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxml2/hash.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxml2/xmlsave.c [] []
/src/xmlsec/src/keyinfo.c ['xmlsec_dsig_verify_fuzzer'] []
/src/libxslt/libxslt/xslt.c [] []
/src/libxslt/libxslt/variables.c [] []
/src/libxml2/parserInternals.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/xmlsec/apps/oss-fuzz/xmlsec_dsig_verify_target.c ['xmlsec_dsig_verify_fuzzer'] []
/src/libxml2/xmlreader.c [] []
/src/libxml2/debugXML.c [] []
/src/libxml2/xmlstring.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxslt/libxslt/imports.c [] []
/src/xmlsec/src/list.c ['xmlsec_dsig_verify_fuzzer'] []
/src/libxml2/catalog.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/libxml2/./codegen/unicode.inc [] []
/src/libxml2/xinclude.c [] []
/src/libxml2/globals.c ['xmlsec_dsig_verify_fuzzer', 'xmlsec_fuzzer'] ['xmlsec_fuzzer']
/src/xmlsec/src/xmlenc.c ['xmlsec_dsig_verify_fuzzer'] []
/src/libxslt/libxslt/attrvt.c [] []

Directories in report

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