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 500 72.0%
gold [1:9] 43 6.19%
yellow [10:29] 2 0.28%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 149 21.4%
All colors 694 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
241 241 2 :

['strlen', 'ring_write']

243 373 print_message call site: 00056 /src/haproxy/src/errors.c:272
2 2 1 :

['strcmp']

2 379 parse_cfg call site: 00691 /src/haproxy/src/cfgparse.c:2699
0 0 None 3080 18007 parse_cfg call site: 00190 /src/haproxy/src/cfgparse.c:1947
0 0 None 3080 18007 parse_cfg call site: 00233 /src/haproxy/src/cfgparse.c:2069
0 0 None 3080 18007 parse_cfg call site: 00236 /src/haproxy/src/cfgparse.c:2102
0 0 None 3080 18007 parse_cfg call site: 00683 /src/haproxy/src/cfgparse.c:2638
0 0 None 3080 18007 parse_cfg call site: 00687 /src/haproxy/src/cfgparse.c:2665
0 0 None 3080 18007 parse_cfg call site: 00687 /src/haproxy/src/cfgparse.c:2667
0 0 None 734 734 warn_exec_path call site: 00003 /src/haproxy/src/errors.c:310
0 0 None 571 1257 cfg_parse_cond_term call site: 00524 /src/haproxy/src/cfgcond.c:102
0 0 None 243 503 print_message call site: 00017 /src/haproxy/src/errors.c:263
0 0 None 4 4 cfg_apply_default_path call site: 00168 /src/haproxy/src/cfgparse.c:1655

Runtime coverage analysis

Covered functions
61
Functions that are reachable but not covered
128
Reachable functions
185
Percentage of reachable functions covered
30.81%
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 32
include/haproxy/tools.h 4
include/haproxy/buf.h 20
include/haproxy/obj_type.h 2
src/ring.c 1
include/haproxy/vecpair.h 13
include/import/mt_list.h 6
include/haproxy/task.h 1
src/debug.c 3
include/haproxy/bug.h 1
src/chunk.c 1
src/task.c 1
src/clock.c 1
src/eb32tree.c 1
include/import/ebtree.h 4
src/ebtree.c 1
src/buf.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
read_cfg_in_discovery_mode /src/haproxy/./src/haproxy.c 2 ['int', 'N/A'] 37 0 306 66 16 1710 1 15492 14067
cfg_parse_listen /src/haproxy/src/cfgparse-listen.c 4 ['N/A', 'int', 'N/A', 'int'] 32 0 14217 1921 716 749 0 7467 2574
process_email_alert /src/haproxy/src/mailers.c 3 ['N/A', 'N/A', 'int'] 34 0 166 17 5 758 0 6466 1580
http_stats_io_handler /src/haproxy/src/stats-html.c 1 ['N/A'] 28 0 668 97 35 590 0 4244 1037
spop_io_cb /src/haproxy/src/mux_spop.c 3 ['N/A', 'N/A', 'int'] 24 0 339 58 16 421 0 3211 833
peer_io_handler /src/haproxy/src/peers.c 1 ['N/A'] 15 0 1255 223 63 331 0 1875 619
proxy_parse_http_error /src/haproxy/src/http_htx.c 7 ['N/A', 'int', 'N/A', 'N/A', 'N/A', 'int', 'N/A'] 16 0 331 31 12 223 0 1571 496

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

Functions statically reachable by fuzzers
48.0%
2071 / 4334
Cyclomatic complexity statically reachable by fuzzers
39.0%
22567 / 57356

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

Directories in report

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