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

Fuzzer details

Fuzzer: fuzz_url

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 23 32.8%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 47 67.1%
All colors 70 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
7 19 httpx._urlparse.percent_encode call site: 00019 httpx._urlparse.quote
6 7 httpx._urlparse.urlparse call site: 00007 httpx._urlparse.quote
4 27 httpx._urlparse.urlparse call site: 00027 .len
3 0 EP call site: 00000 httpx._urlparse.urlparse
2 66 httpx._urlparse.urlparse call site: 00066 httpx._urlparse.quote
1 17 httpx._urlparse.is_safe call site: 00017 httpx._urlparse.percent_encode

Runtime coverage analysis

Covered functions
120
Functions that are reachable but not covered
36
Reachable functions
45
Percentage of reachable functions covered
20.0%
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
/ 1
...fuzz_url 3
httpx._urlparse 41

Fuzzer: fuzz_decoders

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 8 24.2%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 25 75.7%
All colors 33 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
2 5 ...fuzz_decoders.TestOneInput call site: 00005 .len
2 8 httpx._decoders.ByteChunker.decode call site: 00008 fdp.ConsumeIntInRange
2 22 ...fuzz_decoders.TestOneInput call site: 00022 .len
2 25 httpx._decoders.TextChunker.decode call site: 00025 fdp.ConsumeIntInRange

Runtime coverage analysis

Covered functions
120
Functions that are reachable but not covered
12
Reachable functions
21
Percentage of reachable functions covered
42.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.
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
/ 1
...fuzz_decoders 12
httpx._decoders 8

Fuzzer: fuzz_api

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 6 75.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 2 25.0%
All colors 8 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
4 3 ...fuzz_api.ServerThread.__init__ call site: 00003 threading.Thread.start
2 0 EP call site: 00000 ...fuzz_api.ServerThread.__init__

Runtime coverage analysis

Covered functions
121
Functions that are reachable but not covered
7
Reachable functions
8
Percentage of reachable functions covered
12.5%
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
/ 1
...fuzz_api 7

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
httpx._client.AsyncClient.send httpx._client 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 5 0 3 2 4 255 9 823 672
httpx._main.main httpx._main 17 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 4 0 7 3 4 139 0 457 226
httpx._auth.DigestAuth.auth_flow httpx._auth 2 ['N/A', 'N/A'] 2 0 1 3 4 30 0 97 79
httpx._client.Client.send httpx._client 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 5 0 3 2 4 232 9 750 67
httpx._main.trace httpx._main 3 ['N/A', 'N/A', 'N/A'] 3 0 10 8 6 26 0 85 67

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

Functions statically reachable by fuzzers
39.0%
162 / 413
Cyclomatic complexity statically reachable by fuzzers
42.0%
574 / 1358

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
[] []
...fuzz_url ['fuzz_url'] []
httpx._multipart [] []
httpx._status_codes [] []
os [] []
curio [] []
json [] []
httpx._transports.mock [] []
datetime [] []
httpx._api [] []
httpx._client [] []
zlib [] []
click [] []
socket [] []
...fuzz_api ['fuzz_api'] []
pathlib [] []
mimetypes [] []
hashlib [] []
httpx._types [] []
brotli [] []
binascii [] []
httpx._compat [] []
asyncio [] []
time [] []
brotlicffi [] []
netrc [] []
httpx._transports.base [] []
itertools [] []
threading [] []
sys [] []
trio [] []
[] []
warnings [] []
httpx._decoders ['fuzz_decoders'] []
httpx [] []
httpx._auth [] []
httpx._transports.wsgi [] []
httpx._main [] []
httpx._content [] []
http [] []
idna [] []
httpx._utils [] []
logging [] []
httpx._transports.asgi [] []
inspect [] []
sniffio [] []
re [] []
httpx._config [] []
httpcore [] []
certifi [] []
ipaddress [] []
httpx._urls [] []
atheris [] []
httpx._urlparse ['fuzz_url'] []
typing [] []
httpx._transports.default [] []
httpx._models [] []
httpx.__version__ [] []
ssl [] []
base64 [] []
...fuzz_decoders ['fuzz_decoders'] []
codecs [] []
httpx._exceptions [] []
httpx._transports [] []
io [] []
urllib [] []

Directories in report

Directory