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

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 86 19.1%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 362 80.8%
All colors 448 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
9 429 check_children call site: 00429 die
7 306 ixmlPrintDomTreeRecursive call site: 00306 copy_with_escape
7 329 ixmlPrintDomTreeRecursive call site: 00329 IxmlPrintf
5 152 ixmlNode_cloneCDATASect call site: 00152 ixmlNode_newDoc
3 424 LLVMFuzzerTestOneInput call site: 00424 die
3 440 LLVMFuzzerTestOneInput call site: 00440 die
2 12 ixmlDocument_createElementEx call site: 00012 ixmlElement_free
2 30 ixmlDocument_createAttributeEx call site: 00030 ixmlAttr_free
2 54 ixmlDocument_createCDATASectionEx call site: 00054 ixmlCDATASection_free
2 284 copy_with_escape call site: 00284 ixml_membuf_append_str
2 353 ixmlPrintDomTree call site: 00353 IxmlPrintf
2 380 ixmlDomTreetoString call site: 00380 IxmlPrintf

Runtime coverage analysis

Covered functions
107
Functions that are reachable but not covered
17
Reachable functions
124
Percentage of reachable functions covered
86.29%
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/FuzzIxmlOps.c 11
ixml/src/document.c 9
ixml/src/node.c 38
ixml/src/ixmlparser.c 7
ixml/src/element.c 22
ixml/src/attr.c 2
ixml/src/ixml.c 8
ixml/src/ixmlmembuf.c 5
ixml/src/ixmldebug.c 1
ixml/src/nodeList.c 3
ixml/src/namedNodeMap.c 7

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 68 16.0%
gold [1:9] 3 0.70%
yellow [10:29] 1 0.23%
greenyellow [30:49] 5 1.17%
lawngreen 50+ 348 81.8%
All colors 425 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 399 ixmlPrintDomTreeRecursive call site: 00399 ixmlPrintDomTreeRecursive
7 376 ixmlPrintDomTreeRecursive call site: 00376 copy_with_escape
5 273 ixmlNode_allowChildren call site: 00273 ixmlNode_removeChild
5 347 ixmlPrintDomTree call site: 00347 copy_with_escape
2 16 Parser_readFileOrBuffer call site: 00016 fclose
2 248 ixmlDocument_createElementEx call site: 00248 ixmlElement_free
2 298 ixmlDocument_createCDATASectionEx call site: 00298 ixmlCDATASection_free
2 310 ixmlDocument_createAttributeEx call site: 00310 ixmlAttr_free
2 359 copy_with_escape call site: 00359 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
27
Reachable functions
126
Percentage of reachable functions covered
78.57%
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 53
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: FuzzIxmlDom

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 77 15.5%
gold [1:9] 3 0.60%
yellow [10:29] 2 0.40%
greenyellow [30:49] 5 1.01%
lawngreen 50+ 408 82.4%
All colors 495 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
8 7 Parser_LoadDocument call site: 00007 fopen
7 403 ixmlNode_getElementsByTagNameNS call site: 00403 ixmlNodeList_addToNodeList
5 267 ixmlNode_allowChildren call site: 00267 ixmlNode_removeChild
5 479 ixmlNode_cloneCDATASect call site: 00479 ixmlNode_newDoc
3 376 ixmlNode_getElementsByTagName call site: 00376 ixmlNodeList_addToNodeList
3 422 query_document call site: 00422 ixmlNode_cloneAttrDirect
3 487 ixmlNode_cloneNodeTreeRecursive call site: 00487 ixmlNode_cloneNodeTreeRecursive
2 242 ixmlDocument_createElementEx call site: 00242 ixmlElement_free
2 292 ixmlDocument_createCDATASectionEx call site: 00292 ixmlCDATASection_free
2 304 ixmlDocument_createAttributeEx call site: 00304 ixmlAttr_free
2 340 ixmlNode_getAttributes call site: 00340 ixmlNamedNodeMap_init
1 17 safe_strdup call site: 00017 strdup

Runtime coverage analysis

Covered functions
139
Functions that are reachable but not covered
25
Reachable functions
164
Percentage of reachable functions covered
84.76%
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/FuzzIxmlDom.c 5
ixml/src/ixml.c 1
ixml/src/ixmlparser.c 53
ixml/src/ixmlmembuf.c 8
ixml/src/node.c 43
ixml/src/document.c 9
ixml/src/ixmldebug.c 1
ixml/src/element.c 12
ixml/src/attr.c 2
ixml/src/namedNodeMap.c 7
ixml/src/nodeList.c 5

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 28 11.2%
gold [1:9] 2 0.80%
yellow [10:29] 5 2.00%
greenyellow [30:49] 4 1.60%
lawngreen 50+ 210 84.3%
All colors 249 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
14 122 parser_parse_chunky_entity call site: 00122 UpnpDisplayFileAndLine
2 75 match_non_ws_string call site: 00075 parse_uri
2 114 vfmatch call site: 00114 __assert_fail
2 176 parser_parse_headers call site: 00176 membuffer_destroy
2 186 FreeListAlloc call site: 00186 membuffer_destroy
1 33 membuffer_set_size call site: 00033 realloc
1 109 read_until_crlf call site: 00109 match_char
1 112 match_char call site: 00112 scanner_get_token
1 173 membuffer_assign call site: 00173 membuffer_destroy
1 208 raw_to_int call site: 00208 __assert_fail
1 231 parser_parse_responseline call site: 00231 __assert_fail

Runtime coverage analysis

Covered functions
79
Functions that are reachable but not covered
30
Reachable functions
109
Percentage of reachable functions covered
72.48%
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 41
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

Fuzzer: FuzzServiceTable

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 78 15.3%
gold [1:9] 3 0.58%
yellow [10:29] 1 0.19%
greenyellow [30:49] 5 0.98%
lawngreen 50+ 422 82.9%
All colors 509 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
23 380 freeServiceList call site: 00380 freeSubscriptionList
14 478 getServiceList call site: 00478 UpnpDisplayFileAndLine
8 7 Parser_LoadDocument call site: 00007 fopen
5 267 ixmlNode_allowChildren call site: 00267 ixmlNode_removeChild
2 242 ixmlDocument_createElementEx call site: 00242 ixmlElement_free
2 292 ixmlDocument_createCDATASectionEx call site: 00292 ixmlCDATASection_free
2 304 ixmlDocument_createAttributeEx call site: 00304 ixmlAttr_free
1 17 safe_strdup call site: 00017 strdup
1 19 safe_strdup call site: 00019 Parser_free
1 33 ixmlDocument_createDocumentEx call site: 00033 ixmlDocument_free
1 119 IxmlPrintf call site: 00119 fprintf
1 142 ixml_membuf_set_size call site: 00142 realloc

Runtime coverage analysis

Covered functions
123
Functions that are reachable but not covered
49
Reachable functions
172
Percentage of reachable functions covered
71.51%
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/FuzzServiceTable.c 1
ixml/src/ixml.c 3
ixml/src/ixmlparser.c 53
ixml/src/ixmlmembuf.c 8
ixml/src/node.c 21
ixml/src/document.c 7
ixml/src/ixmldebug.c 1
ixml/src/element.c 7
ixml/src/attr.c 2
upnp/src/genlib/service_table/service_table.c 9
ixml/src/nodeList.c 5
upnp/src/genlib/net/uri/uri.c 13
upnp/src/gena/gena_device.c 2
upnp/src/threadutil/LinkedList.c 5
upnp/src/threadutil/FreeList.c 2
upnp/src/api/upnpdebug.c 3

Fuzzer: FuzzSsdp

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 381 57.8%
gold [1:9] 2 0.30%
yellow [10:29] 19 2.88%
greenyellow [30:49] 12 1.82%
lawngreen 50+ 245 37.1%
All colors 659 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
345 284 HandleUnlock call site: 00284 advertiseAndReplyThread
15 121 vfmatch call site: 00121 UpnpPrintf
2 75 match_non_ws_string call site: 00075 parse_uri
2 114 vfmatch call site: 00114 __assert_fail
2 176 parser_parse_headers call site: 00176 membuffer_destroy
2 186 FreeListAlloc call site: 00186 membuffer_destroy
2 193 parser_parse_chunky_headers call site: 00193 parser_parse_entity_until_close
2 278 ssdp_handle_device_request call site: 00278 GetHandleInfo
1 33 membuffer_set_size call site: 00033 realloc
1 109 read_until_crlf call site: 00109 match_char
1 112 match_char call site: 00112 scanner_get_token
1 145 parser_parse_entity call site: 00145 UpnpPrintf

Runtime coverage analysis

Covered functions
91
Functions that are reachable but not covered
103
Reachable functions
192
Percentage of reachable functions covered
46.35%
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/FuzzSsdp.c 2
upnp/src/genlib/net/http/httpparser.c 43
upnp/src/threadutil/LinkedList.c 10
upnp/src/threadutil/FreeList.c 4
upnp/src/genlib/util/membuffer.c 14
upnp/src/genlib/net/uri/uri.c 10
upnp/src/api/upnpdebug.c 3
upnp/src/genlib/util/strintmap.c 2
upnp/src/ssdp/ssdp_device.c 15
upnp/src/ssdp/ssdp_server.c 4
upnp/src/inc/upnpapi.h 4
upnp/src/api/upnpapi.c 2
upnp/src/threadutil/ThreadPool.c 2
ixml/src/nodeList.c 5
ixml/src/node.c 7
ixml/src/element.c 1
upnp/src/genlib/net/http/httpreadwrite.c 3
upnp/src/genlib/util/list.c 3
upnp/src/api/UpnpExtraHeaders.c 1
upnp/src/genlib/net/http/statcodes.c 3
upnp/src/threadutil/TimerThread.c 4

Fuzzer: FuzzWebServer

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 663 44.2%
gold [1:9] 64 4.26%
yellow [10:29] 40 2.66%
greenyellow [30:49] 12 0.80%
lawngreen 50+ 720 48.0%
All colors 1499 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
153 829 http_SendMessage call site: 00829 handle_invoke_action
89 1081 gena_process_subscription_request call site: 01081 respond_ok
35 689 UpnpString_new call site: 00689 send_var_query_response
35 1216 gena_process_notification_event call site: 01216 error_respond
34 1354 process_request call site: 01354 get_file_info
25 1036 ListDestroy call site: 01036 respond_ok
23 274 get_dev_service call site: 00274 FindServiceControlURLPath
23 664 Parser_parseDocument call site: 00664 handle_query_variable
22 311 matchstr call site: 00311 ixmlParseBufferEx
22 1329 FreeExtraHTTPHeaders call site: 01329 membuffer_append_str
14 142 parser_parse_chunky_entity call site: 00142 UpnpDisplayFileAndLine
14 791 http_MakeMessage call site: 00791 http_MakeMessage

Runtime coverage analysis

Covered functions
249
Functions that are reachable but not covered
193
Reachable functions
437
Percentage of reachable functions covered
55.84%
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/FuzzWebServer.c 2
upnp/src/genlib/net/http/httpparser.c 44
upnp/src/threadutil/LinkedList.c 11
upnp/src/threadutil/FreeList.c 4
upnp/src/genlib/util/membuffer.c 14
upnp/src/genlib/net/sock.c 6
upnp/src/genlib/net/http/httpreadwrite.c 7
upnp/src/genlib/net/uri/uri.c 16
upnp/src/api/upnpdebug.c 3
upnp/src/genlib/util/strintmap.c 2
upnp/src/soap/soap_device.c 11
upnp/src/inc/upnpapi.h 4
upnp/src/api/upnpapi.c 5
upnp/src/genlib/service_table/service_table.c 6
upnp/src/genlib/util/util.c 1
upnp/src/genlib/net/http/parsetools.c 1
ixml/src/ixml.c 8
ixml/src/ixmlparser.c 53
ixml/src/ixmlmembuf.c 8
ixml/src/node.c 20
ixml/src/document.c 7
ixml/src/ixmldebug.c 1
ixml/src/element.c 6
ixml/src/attr.c 2
upnp/src/api/UpnpStateVarRequest.c 11
upnp/src/api/UpnpString.c 6
upnp/src/genlib/util/list.c 6
upnp/src/api/UpnpExtraHeaders.c 6
upnp/src/genlib/net/http/statcodes.c 3
upnp/src/api/UpnpActionRequest.c 14
upnp/src/gena/gena_callback2.c 2
upnp/src/gena/gena_device.c 9
upnp/src/api/UpnpSubscriptionRequest.c 5
upnp/src/uuid/uuid.c 7
upnp/src/uuid/sysdep.c 3
upnp/src/uuid/md5.c 4
upnp/src/gena/gena_ctrlpt.c 1
upnp/src/api/UpnpEvent.c 5
upnp/src/genlib/client_table/client_table.c 1
upnp/src/genlib/client_table/GenlibClientSubscription.c 3
upnp/src/genlib/net/http/webserver.c 22
upnp/src/api/UpnpFileInfo.c 15
upnp/src/inc/sock.h 1

Fuzzer: FuzzDevice

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 285 18.9%
gold [1:9] 111 7.38%
yellow [10:29] 50 3.32%
greenyellow [30:49] 24 1.59%
lawngreen 50+ 1034 68.7%
All colors 1504 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
35 1216 gena_process_notification_event call site: 01216 error_respond
34 1354 process_request call site: 01354 get_file_info
14 791 http_MakeMessage call site: 00791 http_MakeMessage
11 145 UpnpPrintf call site: 00145 UpnpDisplayFileAndLine
11 1038 gena_process_subscription_renewal_request call site: 01038 respond_ok
9 243 parser_parse_request_line call site: 00243 parser_parse_responseline
8 339 Parser_LoadDocument call site: 00339 fopen
7 889 ixmlPrintDomTreeRecursive call site: 00889 copy_with_escape
7 1116 gena_validate_delivery_urls call site: 01116 UpnpPrintf
6 711 handle_query_variable call site: 00711 UpnpStateVarRequest_get_ErrStr_cstr
6 810 send_var_query_response call site: 00810 sock_write
6 912 ixmlPrintDomTreeRecursive call site: 00912 copy_with_escape

Runtime coverage analysis

Covered functions
450
Functions that are reachable but not covered
100
Reachable functions
438
Percentage of reachable functions covered
77.17%
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
fuzzer/FuzzDevice.c 3
upnp/src/genlib/net/http/httpparser.c 44
upnp/src/threadutil/LinkedList.c 11
upnp/src/threadutil/FreeList.c 4
upnp/src/genlib/util/membuffer.c 14
upnp/src/genlib/net/sock.c 6
upnp/src/genlib/net/http/httpreadwrite.c 7
upnp/src/genlib/net/uri/uri.c 16
upnp/src/api/upnpdebug.c 3
upnp/src/genlib/util/strintmap.c 2
upnp/src/soap/soap_device.c 11
upnp/src/inc/upnpapi.h 4
upnp/src/api/upnpapi.c 5
upnp/src/genlib/service_table/service_table.c 6
upnp/src/genlib/util/util.c 1
upnp/src/genlib/net/http/parsetools.c 1
ixml/src/ixml.c 8
ixml/src/ixmlparser.c 53
ixml/src/ixmlmembuf.c 8
ixml/src/node.c 20
ixml/src/document.c 7
ixml/src/ixmldebug.c 1
ixml/src/element.c 6
ixml/src/attr.c 2
upnp/src/api/UpnpStateVarRequest.c 11
upnp/src/api/UpnpString.c 6
upnp/src/genlib/util/list.c 6
upnp/src/api/UpnpExtraHeaders.c 6
upnp/src/genlib/net/http/statcodes.c 3
upnp/src/api/UpnpActionRequest.c 14
upnp/src/gena/gena_callback2.c 2
upnp/src/gena/gena_device.c 9
upnp/src/api/UpnpSubscriptionRequest.c 5
upnp/src/uuid/uuid.c 7
upnp/src/uuid/sysdep.c 3
upnp/src/uuid/md5.c 4
upnp/src/gena/gena_ctrlpt.c 1
upnp/src/api/UpnpEvent.c 5
upnp/src/genlib/client_table/client_table.c 1
upnp/src/genlib/client_table/GenlibClientSubscription.c 3
upnp/src/genlib/net/http/webserver.c 22
upnp/src/api/UpnpFileInfo.c 15
upnp/src/inc/sock.h 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 687 0 3669 925
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 272 35 14 415 0 2240 268
UpnpRegisterRootDevice2 /src/pupnp/upnp/src/api/upnpapi.c 7 ['int', 'N/A', 'size_t', 'int', 'N/A', 'N/A', 'N/A'] 16 0 263 25 11 324 0 2021 150
UpnpNotify /src/pupnp/upnp/src/api/upnpapi.c 6 ['int', 'N/A', 'N/A', 'N/A', 'N/A', 'int'] 16 0 122 20 7 228 0 1210 111
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 152 0 841 76
UpnpSearchAsync /src/pupnp/upnp/src/api/upnpapi.c 4 ['int', 'int', 'N/A', 'N/A'] 7 0 95 16 5 62 0 254 55
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
71.0%
791 / 1119
Cyclomatic complexity statically reachable by fuzzers
82.0%
4763 / 5833

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

Fuzz engine guidance

This sections provides heuristics that can be used as input to a fuzz engine when running a given fuzz target. The current focus is on providing input that is usable by libFuzzer.

fuzzer/FuzzIxmlOps.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['check_children', 'ixmlPrintDomTreeRecursive', 'ixmlNode_cloneCDATASect', 'LLVMFuzzerTestOneInput', 'ixmlDocument_createElementEx', 'ixmlDocument_createAttributeEx', 'ixmlDocument_createCDATASectionEx', 'copy_with_escape']

fuzzer/FuzzIxml.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['ixmlPrintDomTreeRecursive', 'ixmlNode_allowChildren', 'ixmlPrintDomTree', 'Parser_readFileOrBuffer', 'ixmlDocument_createElementEx', 'ixmlDocument_createCDATASectionEx', 'ixmlDocument_createAttributeEx', 'copy_with_escape']

fuzzer/FuzzIxmlDom.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['Parser_LoadDocument', 'ixmlNode_getElementsByTagNameNS', 'ixmlNode_allowChildren', 'ixmlNode_cloneCDATASect', 'ixmlNode_getElementsByTagName', 'query_document', 'ixmlNode_cloneNodeTreeRecursive', 'ixmlDocument_createElementEx', 'ixmlDocument_createCDATASectionEx', 'ixmlDocument_createAttributeEx']

fuzzer/FuzzHttp.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['parser_parse_chunky_entity', 'match_non_ws_string', 'vfmatch', 'parser_parse_headers', 'FreeListAlloc', 'membuffer_set_size', 'read_until_crlf', 'match_char', 'membuffer_assign', 'raw_to_int']

fuzzer/FuzzServiceTable.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['freeServiceList', 'getServiceList', 'Parser_LoadDocument', 'ixmlNode_allowChildren', 'ixmlDocument_createElementEx', 'ixmlDocument_createCDATASectionEx', 'ixmlDocument_createAttributeEx', 'safe_strdup', 'ixmlDocument_createDocumentEx']

fuzzer/FuzzSsdp.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['HandleUnlock', 'vfmatch', 'match_non_ws_string', 'parser_parse_headers', 'FreeListAlloc', 'parser_parse_chunky_headers', 'ssdp_handle_device_request', 'membuffer_set_size', 'read_until_crlf']

fuzzer/FuzzWebServer.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['http_SendMessage', 'gena_process_subscription_request', 'UpnpString_new', 'gena_process_notification_event', 'process_request', 'ListDestroy', 'get_dev_service', 'Parser_parseDocument', 'matchstr', 'FreeExtraHTTPHeaders']

fuzzer/FuzzDevice.c

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['gena_process_notification_event', 'process_request', 'http_MakeMessage', 'UpnpPrintf', 'gena_process_subscription_renewal_request', 'parser_parse_request_line', 'Parser_LoadDocument', 'ixmlPrintDomTreeRecursive', 'gena_validate_delivery_urls', 'handle_query_variable']

Runtime coverage analysis

This section shows analysis of runtime coverage data.

For futher technical details on how this section is generated, please see the Glossary .

Complex functions with low coverage

Func name Function total lines Lines covered at runtime percentage covered Reached by fuzzers
ixmlDocument_createElementEx 33 17 51.51% ['FuzzDevice', 'FuzzIxml', 'FuzzWebServer', 'FuzzIxmlDom', 'FuzzServiceTable', 'FuzzIxmlOps']
ixmlDocument_createCDATASectionEx 33 17 51.51% ['FuzzDevice', 'FuzzIxml', 'FuzzWebServer', 'FuzzIxmlDom', 'FuzzServiceTable', 'FuzzIxmlOps']
ixmlNode_setNodeProperties 35 13 37.14% ['FuzzDevice', 'FuzzIxml', 'FuzzWebServer', 'FuzzIxmlDom', 'FuzzServiceTable']
ssdp_handle_device_request 98 39 39.79% ['FuzzSsdp']
gena_process_notification_event 102 55 53.92% ['FuzzWebServer', 'FuzzDevice']
gena_process_subscription_renewal_request 91 44 48.35% ['FuzzWebServer', 'FuzzDevice']
UpnpGetIfInfo 164 77 46.95% ['FuzzDevice']
UpnpAddVirtualDir 49 26 53.06% ['FuzzDevice']
GetDescDocumentAndURL 128 44 34.37% ['FuzzDevice']
UpnpInitLog 35 9 25.71% ['FuzzDevice']
gena_validate_delivery_urls 96 46 47.91% ['FuzzWebServer', 'FuzzDevice']
StartMiniServer 90 39 43.33% ['FuzzDevice']
get_miniserver_sockets 103 51 49.51% ['FuzzDevice']
init_socket_stuff 96 46 47.91% ['FuzzDevice']
do_listen 32 11 34.37% ['FuzzDevice']
get_miniserver_stopsock 40 20 50.0% ['FuzzDevice']
get_ssdp_sockets 64 27 42.18% ['FuzzDevice']
create_ssdp_sock_v4 122 58 47.54% ['FuzzDevice']
BumpPriority 32 12 37.5% ['FuzzDevice']
TimerThreadWorker 66 22 33.33% ['FuzzDevice']
config_description_doc 109 43 39.44% ['FuzzDevice']

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

Directories in report

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