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: FuzzIxml

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 67 15.8%
gold [1:9] 3 0.70%
yellow [10:29] 0 0.0%
greenyellow [30:49] 4 0.94%
lawngreen 50+ 350 82.5%
All colors 424 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
22 398 ixmlPrintDomTreeRecursive call site: 00398 ixmlPrintDomTreeRecursive
7 375 ixmlPrintDomTreeRecursive call site: 00375 copy_with_escape
5 346 ixmlPrintDomTree call site: 00346 copy_with_escape
4 275 ixmlNode_isParent call site: 00275 ixmlNode_removeChild
2 16 Parser_readFileOrBuffer call site: 00016 fclose
2 248 ixmlDocument_createElementEx call site: 00248 ixmlElement_free
2 297 ixmlDocument_createCDATASectionEx call site: 00297 ixmlCDATASection_free
2 309 ixmlDocument_createAttributeEx call site: 00309 ixmlAttr_free
2 358 copy_with_escape call site: 00358 ixml_membuf_append_str
1 21 Parser_readFileOrBuffer call site: 00021 safe_strdup
1 23 safe_strdup call site: 00023 strdup
1 25 safe_strdup call site: 00025 Parser_free

Runtime coverage analysis

Covered functions
99
Functions that are reachable but not covered
26
Reachable functions
125
Percentage of reachable functions covered
79.2%
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
fuzzer/FuzzIxml.c 2
ixml/src/ixml.c 7
ixml/src/ixmlparser.c 52
ixml/src/ixmlmembuf.c 8
ixml/src/node.c 18
ixml/src/document.c 7
ixml/src/ixmldebug.c 1
ixml/src/element.c 6
ixml/src/attr.c 2

Fuzzer: FuzzHttp

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 245 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 245 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
244 0 EP call site: 00000 parser_append

Runtime coverage analysis

Covered functions
0
Functions that are reachable but not covered
108
Reachable functions
108
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
fuzzer/FuzzHttp.c 1
upnp/src/genlib/net/http/httpparser.c 39
upnp/src/threadutil/LinkedList.c 10
upnp/src/threadutil/FreeList.c 4
upnp/src/genlib/util/membuffer.c 12
upnp/src/genlib/net/uri/uri.c 9
upnp/src/api/upnpdebug.c 3
upnp/src/genlib/util/strintmap.c 1

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
UpnpInit2 /src/pupnp/upnp/src/api/upnpapi.c 2 ['N/A', 'short'] 18 0 103 20 9 672 0 3558 2282
UpnpSendActionExAsync /src/pupnp/upnp/src/api/upnpapi.c 8 ['int', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 15 0 262 35 14 406 0 2153 253
UpnpRegisterRootDevice2 /src/pupnp/upnp/src/api/upnpapi.c 7 ['int', 'N/A', 'size_t', 'int', 'N/A', 'N/A', 'N/A'] 16 0 261 25 11 319 0 1956 233
UpnpNotify /src/pupnp/upnp/src/api/upnpapi.c 6 ['int', 'N/A', 'N/A', 'N/A', 'N/A', 'int'] 16 0 122 20 7 224 0 1161 110
ixmlDocument_importNode /src/pupnp/ixml/src/document.c 4 ['N/A', 'N/A', 'int', 'N/A'] 9 0 77 13 6 38 0 170 87
UpnpOpenHttpGetProxy /src/pupnp/upnp/src/api/upnpapi.c 7 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'int'] 11 0 87 12 5 149 0 813 74
UpnpSearchAsync /src/pupnp/upnp/src/api/upnpapi.c 4 ['int', 'int', 'N/A', 'N/A'] 7 0 95 16 5 56 0 234 54
ixmlElement_setAttributeNS /src/pupnp/ixml/src/element.c 4 ['N/A', 'N/A', 'N/A', 'N/A'] 5 0 267 44 19 26 0 144 47
UpnpActionRequest_dup /src/pupnp/upnp/src/api/UpnpActionRequest.c 1 ['N/A'] 4 0 35 6 3 30 0 79 47
UpnpStateVarRequest_dup /src/pupnp/upnp/src/api/UpnpStateVarRequest.c 1 ['N/A'] 4 0 35 6 3 26 0 71 37

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

Functions statically reachable by fuzzers
68.0%
728 / 1075
Cyclomatic complexity statically reachable by fuzzers
78.0%
4294 / 5498

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/pupnp/upnp/src/gena/gena_ctrlpt.c [] []
/src/pupnp/ixml/src/node.c ['FuzzIxml'] ['FuzzIxml']
/src/pupnp/upnp/src/genlib/net/http/statcodes.c [] []
/src/pupnp/upnp/src/threadutil/LinkedList.c ['FuzzHttp'] []
/src/pupnp/upnp/src/ssdp/SSDPResultData.c [] []
/src/pupnp/upnp/src/api/UpnpSubscriptionRequest.c [] []
/src/pupnp/upnp/src/ssdp/SSDPResultDataCallback.c [] []
/src/pupnp/ixml/src/element.c ['FuzzIxml'] ['FuzzIxml']
/src/pupnp/ixml/src/nodeList.c [] []
/src/pupnp/upnp/src/genlib/util/membuffer.c ['FuzzHttp'] []
/src/pupnp/ixml/src/attr.c ['FuzzIxml'] ['FuzzIxml']
/src/pupnp/upnp/src/api/upnpdebug.c ['FuzzHttp'] []
/src/pupnp/upnp/src/genlib/net/http/webserver.c [] []
/src/pupnp/upnp/src/api/UpnpStateVarComplete.c [] []
/src/pupnp/upnp/src/genlib/util/util.c [] []
/src/pupnp/upnp/src/uuid/md5.c [] []
/src/pupnp/upnp/src/genlib/net/http/parsetools.c [] []
/src/pupnp/upnp/src/api/UpnpFileInfo.c [] []
/src/pupnp/upnp/src/soap/soap_ctrlpt.c [] []
/src/pupnp/upnp/src/uuid/uuid.c [] []
/src/pupnp/upnp/src/genlib/client_table/GenlibClientSubscription.c [] []
/src/pupnp/upnp/src/genlib/util/strintmap.c ['FuzzHttp'] []
/src/pupnp/upnp/src/threadutil/FreeList.c ['FuzzHttp'] []
/src/pupnp/upnp/src/api/UpnpDiscovery.c [] []
/src/pupnp/upnp/src/genlib/net/http/httpreadwrite.c [] []
/src/pupnp/ixml/src/document.c ['FuzzIxml'] ['FuzzIxml']
/src/pupnp/upnp/src/urlconfig/urlconfig.c [] []
/src/pupnp/upnp/src/ssdp/ssdp_server.c [] []
/src/pupnp/fuzzer/FuzzHttp.c ['FuzzHttp'] []
/src/pupnp/upnp/src/api/UpnpStateVarRequest.c [] []
/src/pupnp/upnp/src/inc/upnpapi.h [] []
/src/pupnp/upnp/src/genlib/net/http/httpparser.c ['FuzzHttp'] []
/src/pupnp/ixml/src/ixmlparser.c ['FuzzIxml'] ['FuzzIxml']
/src/pupnp/upnp/src/soap/soap_device.c [] []
/src/pupnp/ixml/src/ixmldebug.c ['FuzzIxml'] ['FuzzIxml']
/src/pupnp/upnp/src/threadutil/ThreadPool.c [] []
/src/pupnp/upnp/src/api/UpnpActionComplete.c [] []
/src/pupnp/upnp/src/api/UpnpExtraHeaders.c [] []
/src/pupnp/upnp/src/uuid/sysdep.c [] []
/src/pupnp/upnp/src/api/UpnpActionRequest.c [] []
/src/pupnp/upnp/src/ssdp/ssdp_device.c [] []
/src/pupnp/upnp/src/threadutil/TimerThread.c [] []
/src/pupnp/upnp/src/genlib/miniserver/miniserver.c [] []
/src/pupnp/upnp/src/ssdp/ssdp_ctrlpt.c [] []
/src/pupnp/upnp/src/genlib/net/uri/uri.c ['FuzzHttp'] []
/src/pupnp/upnp/src/api/upnpapi.c [] []
/src/pupnp/ixml/src/namedNodeMap.c [] []
/src/pupnp/upnp/src/genlib/net/sock.c [] []
/src/pupnp/upnp/src/genlib/service_table/service_table.c [] []
/src/pupnp/upnp/src/api/UpnpString.c [] []
/src/pupnp/upnp/src/gena/gena_callback2.c [] []
/src/pupnp/upnp/src/genlib/client_table/client_table.c [] []
/src/pupnp/fuzzer/FuzzIxml.c ['FuzzIxml'] ['FuzzIxml']
/src/pupnp/ixml/src/ixmlmembuf.c ['FuzzIxml'] ['FuzzIxml']
/src/pupnp/upnp/inc/ithread.h [] []
/src/pupnp/upnp/src/api/UpnpEvent.c [] []
/src/pupnp/upnp/src/api/UpnpEventSubscribe.c [] []
/src/pupnp/ixml/src/ixml.c ['FuzzIxml'] ['FuzzIxml']
/src/pupnp/upnp/src/gena/gena_device.c [] []
/src/pupnp/upnp/src/genlib/util/list.c [] []
/src/pupnp/upnp/src/inc/sock.h [] []

Directories in report

Directory
/src/pupnp/upnp/src/genlib/net/
/src/pupnp/upnp/src/api/
/src/pupnp/upnp/src/soap/
/src/pupnp/upnp/src/genlib/miniserver/
/src/pupnp/upnp/src/gena/
/src/pupnp/upnp/inc/
/src/pupnp/upnp/src/threadutil/
/src/pupnp/upnp/src/ssdp/
/src/pupnp/fuzzer/
/src/pupnp/upnp/src/genlib/client_table/
/src/pupnp/ixml/src/
/src/pupnp/upnp/src/genlib/service_table/
/src/pupnp/upnp/src/genlib/util/
/src/pupnp/upnp/src/inc/
/src/pupnp/upnp/src/urlconfig/
/src/pupnp/upnp/src/genlib/net/uri/
/src/pupnp/upnp/src/genlib/net/http/
/src/pupnp/upnp/src/uuid/