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] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 57 96.6%
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 426 69.2%
gold [1:9] 20 3.25%
yellow [10:29] 16 2.60%
greenyellow [30:49] 1 0.16%
lawngreen 50+ 152 24.7%
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
216 216 3 :

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

218 218 print_message call site: 00047 /src/haproxy/src/errors.c:390
0 0 None 2897 14771 readcfgfile call site: 00135 /src/haproxy/src/cfgparse.c:1810
0 0 None 2897 14771 readcfgfile call site: 00177 /src/haproxy/src/cfgparse.c:1936
0 0 None 2897 14771 readcfgfile call site: 00603 /src/haproxy/src/cfgparse.c:2469
0 0 None 2897 14771 readcfgfile call site: 00603 /src/haproxy/src/cfgparse.c:2482
0 0 None 490 1116 cfg_parse_cond_term call site: 00442 /src/haproxy/src/cfgcond.c:102
0 0 None 218 335 print_message call site: 00020 /src/haproxy/src/errors.c:381
0 0 None 18 18 cfg_apply_default_path call site: 00116 /src/haproxy/src/cfgparse.c:1615
0 0 None 12 12 generate_usermsgs_ctx_str call site: 00026 /src/haproxy/src/errors.c:326
0 0 None 8 600 readcfgfile call site: 00608 /src/haproxy/src/cfgparse.c:2506
0 0 None 8 8 generate_usermsgs_ctx_str call site: 00030 /src/haproxy/src/errors.c:332
0 0 None 6 302 readcfgfile call site: 00610 /src/haproxy/src/cfgparse.c:2514

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 *'] 21 0 263 41 12 1088 2 9060 8655
init /src/haproxy/./src/haproxy.c 2 ['int ', 'char **'] 15 0 2148 366 94 1184 1 9476 3654
cfg_parse_listen /src/haproxy/src/cfgparse-listen.c 4 ['char *', 'int ', 'char **', 'int '] 7 0 14194 1898 707 670 0 5934 2156
http_stats_io_handler /src/haproxy/src/stats.c 1 ['struct.appctx *'] 9 0 504 80 29 438 0 2798 939
cfg_parse_resolvers /src/haproxy/src/resolvers.c 4 ['char *', 'int ', 'char **', 'int '] 16 0 1200 158 57 627 0 4026 591
peer_io_handler /src/haproxy/src/peers.c 1 ['struct.appctx.4761 *'] 9 0 1164 206 56 292 0 1627 529
proxy_parse_http_error /src/haproxy/src/http_htx.c 7 ['char **', 'int ', 'struct.proxy.1221 *', 'struct.proxy.1221 *', 'char *', 'int ', 'char **'] 9 0 338 31 12 194 0 1397 467

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

Functions statically reachable by fuzzers
51.0%
1825 / 3564
Cyclomatic complexity statically reachable by fuzzers
54.0%
18225 / 33447

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

Directories in report

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