Fuzz introspector
For issues and ideas: https://github.com/ossf/fuzz-introspector/issues

Fuzzer details

Fuzzer: fuzz_hpack_decode

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 2 3.38%
gold [1:9] 0 0.0%
yellow [10:29] 1 1.69%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 56 94.9%
All colors 59 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
0 0 None 0 16 hpack_dht_insert call site: 00053 /src/haproxy/include/../src/hpack-tbl.c:293
0 0 None 0 16 hpack_dht_insert call site: 00057 /src/haproxy/include/../src/hpack-tbl.c:306
0 0 None 0 4 hpack_dht_defrag call site: 00054 /src/haproxy/include/../src/hpack-tbl.c:169
0 0 None 0 2 hpack_idx_to_value call site: 00008 /src/haproxy/include/haproxy/hpack-tbl.h:128
0 0 None 0 2 hpack_idx_to_name call site: 00018 /src/haproxy/include/haproxy/hpack-tbl.h:113
0 0 None 0 0 hpack_get_dte call site: 00008 /src/haproxy/include/haproxy/hpack-tbl.h:67

Runtime coverage analysis

Covered functions
26
Functions that are reachable but not covered
2
Reachable functions
28
Percentage of reachable functions covered
92.86%
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
fuzz_hpack_decode.c 1
include/haproxy/hpack-tbl.h 11
include/../src/hpack-dec.c 4
include/haproxy/chunk.h 2
include/import/ist.h 2
include/../src/hpack-huff.c 1
include/haproxy/net_helper.h 2
include/../src/hpack-tbl.c 3

Fuzzer: fuzz_cfg_parser

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 428 69.5%
gold [1:9] 34 5.52%
yellow [10:29] 3 0.48%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 150 24.3%
All colors 615 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
213 213 3 :

['ring_write', 'strlen', 'startup_logs_init']

215 215 print_message call site: 00047 /src/haproxy/src/errors.c:387
0 0 None 2893 14619 readcfgfile call site: 00135 /src/haproxy/src/cfgparse.c:1802
0 0 None 2893 14619 readcfgfile call site: 00177 /src/haproxy/src/cfgparse.c:1928
0 0 None 2893 14619 readcfgfile call site: 00571 /src/haproxy/src/cfgparse.c:2310
0 0 None 2893 14619 readcfgfile call site: 00603 /src/haproxy/src/cfgparse.c:2461
0 0 None 2893 14619 readcfgfile call site: 00603 /src/haproxy/src/cfgparse.c:2474
0 0 None 486 1108 cfg_parse_cond_term call site: 00442 /src/haproxy/src/cfgcond.c:101
0 0 None 215 330 print_message call site: 00020 /src/haproxy/src/errors.c:378
0 0 None 18 18 cfg_apply_default_path call site: 00116 /src/haproxy/src/cfgparse.c:1607
0 0 None 12 12 generate_usermsgs_ctx_str call site: 00026 /src/haproxy/src/errors.c:323
0 0 None 8 592 readcfgfile call site: 00608 /src/haproxy/src/cfgparse.c:2498
0 0 None 8 8 generate_usermsgs_ctx_str call site: 00030 /src/haproxy/src/errors.c:329

Runtime coverage analysis

Covered functions
59
Functions that are reachable but not covered
121
Reachable functions
176
Percentage of reachable functions covered
31.25%
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
fuzz_cfg_parser.c 1
src/cfgparse.c 4
src/errors.c 13
src/tools.c 28
include/haproxy/tools.h 4
include/haproxy/buf.h 22
include/haproxy/obj_type.h 2
src/ring.c 3
src/debug.c 1
include/haproxy/bug.h 1
include/haproxy/task.h 1
src/task.c 1
src/clock.c 1
src/eb32tree.c 1
include/import/ebtree.h 1
src/ebtree.c 1
include/import/xxhash.h 8
src/resolvers.c 1
include/haproxy/protocol.h 1
src/cfgcond.c 12
src/arg.c 4
include/haproxy/chunk.h 3
include/haproxy/regex.h 1
include/haproxy/intops.h 1
./src/haproxy.c 2

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
run_thread_poll_loop /src/haproxy/./src/haproxy.c 1 ['char *'] 20 0 263 41 12 1072 2 8804 8403
init /src/haproxy/./src/haproxy.c 2 ['int ', 'char **'] 16 0 2142 366 94 1165 1 9232 3579
cfg_parse_listen /src/haproxy/src/cfgparse-listen.c 4 ['char *', 'int ', 'char **', 'int '] 8 0 14404 1963 722 657 0 5857 2163
http_stats_io_handler /src/haproxy/src/stats.c 1 ['struct.appctx *'] 7 0 426 64 23 423 0 2715 922
cfg_parse_resolvers /src/haproxy/src/resolvers.c 4 ['char *', 'int ', 'char **', 'int '] 13 0 1193 158 57 597 0 3793 579
peer_io_handler /src/haproxy/src/peers.c 1 ['struct.appctx.4713 *'] 10 0 1058 193 51 291 0 1590 518
proxy_parse_http_error /src/haproxy/src/http_htx.c 7 ['char **', 'int ', 'struct.proxy.1209 *', 'struct.proxy.1209 *', 'char *', 'int ', 'char **'] 8 0 338 31 12 194 0 1377 462

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

Functions statically reachable by fuzzers
51.3%
1800/3506
Cyclomatic complexity statically reachable by fuzzers
55.4%
17856 / 32192

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 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/haproxy/src/tcp_rules.c [] []
/src/haproxy/src/freq_ctr.c [] []
/src/haproxy/src/acl.c [] []
/src/haproxy/src/proxy.c [] []
/src/haproxy/src/mqtt.c [] []
/src/haproxy/src/hash.c [] []
/src/haproxy/include/haproxy/pool.h [] []
/src/haproxy/include/haproxy/time.h [] []
/src/haproxy/src/mworker-prog.c [] []
/src/haproxy/include/import/eb32tree.h [] []
/src/haproxy/src/tcpcheck.c [] []
/src/haproxy/src/event_hdl.c [] []
/src/haproxy/src/stconn.c [] []
/src/haproxy/include/haproxy/htx.h [] []
/src/haproxy/src/cfgparse.c ['fuzz_cfg_parser'] ['fuzz_cfg_parser']
/src/haproxy/src/init.c [] []
/src/haproxy/src/log.c [] []
/src/haproxy/include/haproxy/spoe.h [] []
/src/haproxy/include/haproxy/tools.h ['fuzz_cfg_parser'] ['fuzz_cfg_parser']
/src/haproxy/include/haproxy/protobuf.h [] []
/src/haproxy/src/pattern.c [] []
/src/haproxy/include/haproxy/thread.h [] []
/src/haproxy/src/resolvers.c ['fuzz_cfg_parser'] []
/src/haproxy/src/channel.c [] []
/src/haproxy/src/queue.c [] []
/src/haproxy/src/applet.c [] []
/src/haproxy/src/ebsttree.c [] []
/src/haproxy/src/debug.c ['fuzz_cfg_parser'] []
/src/haproxy/include/haproxy/cli.h [] []
/src/haproxy/src/arg.c ['fuzz_cfg_parser'] ['fuzz_cfg_parser']
/src/haproxy/include/haproxy/bug.h ['fuzz_cfg_parser'] []
/src/haproxy/src/dynbuf.c [] []
/src/haproxy/src/ring.c ['fuzz_cfg_parser'] []
/src/haproxy/src/dgram.c [] []
/src/haproxy/src/errors.c ['fuzz_cfg_parser'] ['fuzz_cfg_parser']
/src/haproxy/src/payload.c [] []
/src/haproxy/src/fix.c [] []
/src/haproxy/include/haproxy/shctx.h [] []
/src/haproxy/include/haproxy/dynbuf.h [] []
/src/haproxy/src/lb_fas.c [] []
/src/haproxy/src/ebmbtree.c [] []
/src/haproxy/include/import/eb32sctree.h [] []
/src/haproxy/src/clock.c ['fuzz_cfg_parser'] []
/src/haproxy/src/mailers.c [] []
/src/haproxy/include/import/slz-tables.h [] []
/src/haproxy/src/eb32tree.c ['fuzz_cfg_parser'] []
/src/haproxy/src/cfgparse-listen.c [] []
/src/haproxy/include/haproxy/hpack-tbl.h ['fuzz_hpack_decode'] ['fuzz_hpack_decode']
/src/haproxy/include/haproxy/log.h [] []
/src/haproxy/src/time.c [] []
/src/haproxy/src/h1_htx.c [] []
/src/haproxy/src/trace.c [] []
/src/haproxy/src/lb_fwlc.c [] []
/src/haproxy/include/haproxy/channel.h [] []
/src/haproxy/include/haproxy/sc_strm.h [] []
/src/haproxy/include/haproxy/trace.h [] []
/src/haproxy/src/slz.c [] []
/src/haproxy/include/haproxy/fd.h [] []
/src/haproxy/src/dns.c [] []
/src/haproxy/src/thread.c [] []
/src/haproxy/src/ebtree.c ['fuzz_cfg_parser'] []
/src/haproxy/include/import/xxhash.h ['fuzz_cfg_parser'] []
/src/haproxy/src/sink.c [] []
/src/haproxy/include/../src/hpack-tbl.c ['fuzz_hpack_decode'] []
/src/haproxy/include/haproxy/h1_htx.h [] []
/src/haproxy/include/haproxy/pool-os.h [] []
/src/haproxy/include/haproxy/ticks.h [] []
/src/haproxy/src/pipe.c [] []
/src/haproxy/src/htx.c [] []
/src/haproxy/include/haproxy/protocol.h ['fuzz_cfg_parser'] []
/src/haproxy/include/import/ist.h ['fuzz_hpack_decode'] ['fuzz_hpack_decode']
/src/haproxy/src/sample.c [] []
/src/haproxy/src/http.c [] []
/src/haproxy/src/vars.c [] []
/src/haproxy/src/auth.c [] []
/src/haproxy/src/dict.c [] []
/src/haproxy/include/haproxy/mqtt.h [] []
/src/haproxy/src/lru.c [] []
/src/haproxy/include/haproxy/h1.h [] []
/src/haproxy/src/uri_auth.c [] []
/src/haproxy/include/haproxy/http_ana.h [] []
/src/haproxy/src/connection.c [] []
/src/haproxy/include/haproxy/hlua.h [] []
/src/haproxy/src/flt_http_comp.c [] []
/src/haproxy/src/action.c [] []
/src/haproxy/src/cfgdiag.c [] []
/src/haproxy/include/import/ebpttree.h [] []
/src/haproxy/src/listener.c [] []
/src/haproxy/src/tools.c ['fuzz_cfg_parser'] ['fuzz_cfg_parser']
/src/haproxy/src/check.c [] []
/src/haproxy/include/haproxy/connection.h [] []
/src/haproxy/src/sock_inet.c [] []
/src/haproxy/include/import/ebtree.h ['fuzz_cfg_parser'] []
/src/haproxy/include/haproxy/server.h [] []
/src/haproxy/include/import/ebmbtree.h [] []
/src/haproxy/include/haproxy/queue.h [] []
/src/haproxy/src/http_fetch.c [] []
/src/haproxy/include/haproxy/stick_table.h [] []
/src/haproxy/include/haproxy/filters.h [] []
/src/haproxy/include/haproxy/fix.h [] []
/src/haproxy/include/haproxy/clock.h [] []
/src/haproxy/src/sock.c [] []
/src/haproxy/src/sha1.c [] []
/src/haproxy/src/stream.c [] []
/src/haproxy/include/haproxy/tinfo.h [] []
/src/haproxy/include/haproxy/sample.h [] []
/src/haproxy/src/mjson.c [] []
/src/haproxy/include/haproxy/http-hdr.h [] []
/src/haproxy/src/signal.c [] []
/src/haproxy/src/fd.c [] []
/src/haproxy/include/haproxy/freq_ctr.h [] []
/src/haproxy/src/compression.c [] []
/src/haproxy/include/haproxy/sink.h [] []
/src/haproxy/include/haproxy/regex.h ['fuzz_cfg_parser'] []
/src/haproxy/include/haproxy/intops.h ['fuzz_cfg_parser'] []
/src/haproxy/src/ebimtree.c [] []
/src/haproxy/src/session.c [] []
/src/haproxy/include/import/slz.h [] []
/src/haproxy/fuzz_cfg_parser.c ['fuzz_cfg_parser'] ['fuzz_cfg_parser']
/src/haproxy/include/haproxy/applet.h [] []
/src/haproxy/src/http_rules.c [] []
/src/haproxy/include/haproxy/peers.h [] []
/src/haproxy/include/haproxy/http.h [] []
/src/haproxy/include/haproxy/stats.h [] []
/src/haproxy/src/server_state.c [] []
/src/haproxy/include/haproxy/list.h [] []
/src/haproxy/./src/haproxy.c ['fuzz_cfg_parser'] []
/src/haproxy/include/haproxy/task.h ['fuzz_cfg_parser'] []
/src/haproxy/include/haproxy/event_hdl.h [] []
/src/haproxy/src/cli.c [] []
/src/haproxy/include/haproxy/check.h [] []
/src/haproxy/include/haproxy/vars.h [] []
/src/haproxy/include/haproxy/action.h [] []
/src/haproxy/src/pool.c [] []
/src/haproxy/include/haproxy/tcpcheck.h [] []
/src/haproxy/include/haproxy/port_range.h [] []
/src/haproxy/src/cfgcond.c ['fuzz_cfg_parser'] ['fuzz_cfg_parser']
/src/haproxy/src/fcgi-app.c [] []
/src/haproxy/include/haproxy/acl.h [] []
/src/haproxy/src/http_ext.c [] []
/src/haproxy/src/lb_chash.c [] []
/src/haproxy/include/haproxy/signal.h [] []
/src/haproxy/src/base64.c [] []
/src/haproxy/include/haproxy/stconn.h [] []
/src/haproxy/src/activity.c [] []
/src/haproxy/src/protocol.c [] []
/src/haproxy/include/haproxy/net_helper.h ['fuzz_hpack_decode'] ['fuzz_hpack_decode']
/src/haproxy/src/http_htx.c [] []
/src/haproxy/src/regex.c [] []
/src/haproxy/src/chunk.c [] []
/src/haproxy/include/haproxy/backend.h [] []
/src/haproxy/src/filters.c [] []
/src/haproxy/include/haproxy/buf.h ['fuzz_cfg_parser'] ['fuzz_cfg_parser']
/src/haproxy/include/../src/hpack-huff.c ['fuzz_hpack_decode'] []
/src/haproxy/include/haproxy/stream.h [] []
/src/haproxy/src/http_ana.c [] []
/src/haproxy/include/haproxy/session.h [] []
/src/haproxy/include/haproxy/istbuf.h [] []
/src/haproxy/include/../src/hpack-dec.c ['fuzz_hpack_decode'] []
/src/haproxy/src/cfgparse-global.c [] []
/src/haproxy/src/server.c [] []
/src/haproxy/src/shctx.c [] []
/src/haproxy/include/haproxy/pattern.h [] []
/src/haproxy/src/peers.c [] []
/src/haproxy/src/h1.c [] []
/src/haproxy/include/haproxy/proxy.h [] []
/src/haproxy/src/stick_table.c [] []
/src/haproxy/src/lb_fwrr.c [] []
/src/haproxy/src/stats.c [] []
/src/haproxy/src/cache.c [] []
/src/haproxy/src/extcheck.c [] []
/src/haproxy/include/haproxy/obj_type.h ['fuzz_cfg_parser'] ['fuzz_cfg_parser']
/src/haproxy/fuzz_hpack_decode.c ['fuzz_hpack_decode'] ['fuzz_hpack_decode']
/src/haproxy/src/backend.c [] []
/src/haproxy/src/proto_sockpair.c [] []
/src/haproxy/include/haproxy/chunk.h ['fuzz_hpack_decode', 'fuzz_cfg_parser'] ['fuzz_hpack_decode']
/src/haproxy/src/frontend.c [] []
/src/haproxy/src/lb_map.c [] []
/src/haproxy/src/task.c ['fuzz_cfg_parser'] []
/src/haproxy/src/mworker.c [] []
/src/haproxy/src/ebistree.c [] []
/src/haproxy/src/eb64tree.c [] []
/src/haproxy/include/import/eb64tree.h [] []
/src/haproxy/include/haproxy/namespace.h [] []
/src/haproxy/src/flt_spoe.c [] []

Directories in report

Directory
/src/haproxy/include/haproxy/
/src/haproxy/src/
/src/haproxy/./src/
/src/haproxy/include/../src/
/src/haproxy/include/import/
/src/haproxy/

Function call coverage

This section shows a chosen list of functions / methods calls and their relative coverage information. By static analysis of the target project code, all of these function call and their caller information, including the source file or class and line number that initiate the call are captured. Column 1 is the function name of that selected functions or methods. Column 2 of each row indicate if the target function covered by any fuzzer calltree information. Column 3 lists all fuzzers (or no fuzzers at all) that have coered that particular function call dynamically. Column 4 shows list of parent function for the specific function call, while column 5 shows possible blocker functions that make the fuzzers fail to reach the specific functions. Both column 4 and 5 will only show information if none of the fuzzers cover the target function calls.

Function in each files in report

Target sink Callsite location Reached by fuzzer Function call path Covered by fuzzer Possible branch blockers
execvp Not in fuzzer provided call tree []
Parent functions Callpaths
mworker_reexec
in /src/haproxy/./src/haproxy.c:769
Path 1
Path 2
connect_proc_chk
in /src/haproxy/src/extcheck.c:449
Path 1
Path 2
0
Blocker function Arguments type Return type Constants touched
main2
in /src/haproxy/./src/haproxy.c:3186
['int ', 'char **'] int []
cli_parse_reload
in /src/haproxy/src/mworker.c:677
['char **', 'char *', 'struct.appctx *', 'char *'] int []
cli_parse_add_server
in /src/haproxy/src/server.c:4733
['char **', 'char *', 'struct.appctx.6577 *', 'char *'] int []
start_checks
in /src/haproxy/src/check.c:1484
[] int []