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 434 70.1%
gold [1:9] 16 2.58%
yellow [10:29] 18 2.90%
greenyellow [30:49] 1 0.16%
lawngreen 50+ 150 24.2%
All colors 619 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
217 217 3 :

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

219 219 print_message call site: 00047 /src/haproxy/src/errors.c:390
0 0 None 2888 14799 readcfgfile call site: 00135 /src/haproxy/src/cfgparse.c:1785
0 0 None 2888 14799 readcfgfile call site: 00177 /src/haproxy/src/cfgparse.c:1911
0 0 None 2888 14799 readcfgfile call site: 00575 /src/haproxy/src/cfgparse.c:2293
0 0 None 2888 14799 readcfgfile call site: 00607 /src/haproxy/src/cfgparse.c:2444
0 0 None 2888 14799 readcfgfile call site: 00607 /src/haproxy/src/cfgparse.c:2457
0 0 None 491 1118 cfg_parse_cond_term call site: 00446 /src/haproxy/src/cfgcond.c:102
0 0 None 219 337 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:1590
0 0 None 12 12 generate_usermsgs_ctx_str call site: 00026 /src/haproxy/src/errors.c:326
0 0 None 8 602 readcfgfile call site: 00612 /src/haproxy/src/cfgparse.c:2481
0 0 None 8 8 generate_usermsgs_ctx_str call site: 00030 /src/haproxy/src/errors.c:332

Runtime coverage analysis

Covered functions
59
Functions that are reachable but not covered
119
Reachable functions
174
Percentage of reachable functions covered
31.61%
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 7
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
init /src/haproxy/./src/haproxy.c 2 ['int', 'char **'] 25 0 2141 364 94 1195 1 9635 8340
run_thread_poll_loop /src/haproxy/./src/haproxy.c 1 ['char *'] 27 0 263 41 12 1026 2 8404 4152
cfg_parse_listen /src/haproxy/src/cfgparse-listen.c 4 ['char *', 'int', 'char **', 'int'] 27 0 14194 1898 707 680 0 6034 2164
http_stats_io_handler /src/haproxy/src/stats.c 1 ['struct.appctx *'] 23 0 504 80 29 444 0 2855 941
cfg_parse_resolvers /src/haproxy/src/resolvers.c 4 ['char *', 'int', 'char **', 'int'] 29 0 1200 158 57 636 0 4145 591
peer_io_handler /src/haproxy/src/peers.c 1 ['struct.appctx.4849 *'] 14 0 1164 206 56 297 0 1682 533
proxy_parse_http_error /src/haproxy/src/http_htx.c 7 ['char **', 'int', 'struct.proxy.1236 *', 'struct.proxy.1236 *', 'char *', 'int', 'char **'] 12 0 338 31 12 195 0 1413 473

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

Functions statically reachable by fuzzers
51.0%
1841 / 3637
Cyclomatic complexity statically reachable by fuzzers
54.0%
18431 / 34000

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

Directories in report

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