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

Fuzzer details

Fuzzer: fuzz_http

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 3 23.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 10 76.9%
All colors 13 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 9 ...fuzz_http.TestOneInput call site: 00009 h.open
1 7 ...fuzz_http.TestOneInput call site: 00007 tmp_path.unlink

Runtime coverage analysis

Covered functions
375
Functions that are reachable but not covered
10
Reachable functions
10
Percentage of reachable functions covered
0.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_http 9

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
fsspec.spec.AbstractFileSystem.get fsspec.spec 7 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 17 0 4 4 5 413 2 1366 1366
aiohttp.client.ClientSession._ws_connect aiohttp.client 22 ['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', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 8 0 3 12 8 298 1 1021 949
aiohttp.web_protocol.RequestHandler.start aiohttp.web_protocol 1 ['N/A'] 7 0 16 14 9 101 1 346 236
fsspec.spec.AbstractBufferedFile.readuntil fsspec.spec 3 ['N/A', 'N/A', 'N/A'] 6 0 4 2 4 108 2 361 200
fsspec.implementations.reference.ReferenceFileSystem.get fsspec.implementations.reference 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 16 0 2 3 4 184 0 629 195
aiohttp.web.main aiohttp.web 1 ['N/A'] 5 0 12 3 4 72 1 228 189
fsspec.asyn.AsyncFileSystem._copy fsspec.asyn 8 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 12 0 0 6 5 149 0 503 156

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

Functions statically reachable by fuzzers
15.0%
363 / 2370
Cyclomatic complexity statically reachable by fuzzers
18.0%
1446 / 8121

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

Runtime coverage analysis

This section shows analysis of runtime coverage data.

For futher technical details on how this section is generated, please see the Glossary .

Complex functions with low coverage

Func name Function total lines Lines covered at runtime percentage covered Reached by fuzzers
requests.auth.HTTPDigestAuth.build_digest_header.sha512_utf8 44 0 0.0% []
requests.utils.get_netrc_auth 32 0 0.0% []
re.fullmatch 37 13 35.13% []
collections.abc.MutableMapping.update 238 76 31.93% []
aiohttp.http_websocket.ws_ext_parse 34 9 26.47% []
aiohttp.http_websocket.WebSocketReader._feed_data 56 0 0.0% []
aiohttp.http_websocket.WebSocketReader.parse_frame 82 9 10.97% []
aiohttp.http_websocket.WebSocketWriter._send_frame 39 0 0.0% []
url.split 206 60 29.12% []
requests.sessions.SessionRedirectMixin.resolve_redirects 50 0 0.0% []
requests.sessions.Session.send 36 0 0.0% []
requests.models.RequestEncodingMixin._encode_files 38 0 0.0% []
requests.models.PreparedRequest.prepare_url 39 0 0.0% []
requests.models.PreparedRequest.prepare_body 38 0 0.0% []
requests.adapters.HTTPAdapter.send 45 0 0.0% []
request.config.getoption 103 46 44.66% []
urllib3.util.retry.Retry.from_int 174 61 35.05% []
urllib3.poolmanager.PoolManager.clear 237 87 36.70% []
urllib3.contrib.socks.SOCKSProxyManager 84 9 10.71% []
aiohttp.connector.BaseConnector.connect 58 17 29.31% []
aiohttp.connector.TCPConnector._resolve_host 43 0 0.0% []
aiohttp.connector.TCPConnector._create_proxy_connection 59 2 3.389% []
urllib3.fields.RequestField.make_multipart 93 20 21.50% []
urllib3.filepost.encode_multipart_formdata 37 13 35.13% []
fsspec.spec.AbstractFileSystem.walk 41 0 0.0% []
fsspec.spec.AbstractFileSystem.glob 39 0 0.0% []
fsspec.spec.AbstractBufferedFile.__init__ 32 2 6.25% []
fsspec.caching.BytesCache._fetch 43 0 0.0% []
fsspec.caching.BackgroundBlockCache._fetch 35 0 0.0% []
out.raise_for_status 72 30 41.66% []
fsspec.utils.infer_storage_options 32 0 0.0% []
fsspec.utils._translate 55 0 0.0% []
fsspec.asyn.AsyncFileSystem._walk 37 0 0.0% []
fsspec.asyn.AsyncFileSystem._glob 39 0 0.0% []
fsspec.implementations.http.HTTPFileSystem._glob 37 0 0.0% []
fsspec.core.get_fs_token_paths 36 0 0.0% []
aiohttp.multipart.parse_content_disposition.unescape 53 0 0.0% []
aiohttp.client_proto.ResponseHandler.data_received 37 0 0.0% []
name.strip 67 13 19.40% []
aiohttp.client.ClientSession._request 162 73 45.06% []
aiohttp.client.ClientSession._ws_connect 59 9 15.25% []
aiohttp.worker.GunicornWebWorker._run 37 0 0.0% []
transport.close 161 49 30.43% []
async_timeout.timeout_at 116 58 50.0% []
it.__anext__ 49 11 22.44% []
aiohttp.http_parser.HeadersParser.parse_headers 48 2 4.166% []
aiohttp.http_parser.HttpParser.feed_data.get_content_length 58 0 0.0% []
aiohttp.http_parser.HttpParser.parse_headers 31 0 0.0% []
aiohttp.http_parser.HttpRequestParser.parse_message 33 3 9.090% []
aiohttp.http_parser.HttpPayloadParser.feed_data 86 3 3.488% []
aiohttp.client_reqrep.ClientRequest.send 36 0 0.0% []
attr.evolve 44 23 52.27% []
fo.__enter__ 37 16 43.24% []
methods.append 54 19 35.18% []
response.raise_for_status 563 133 23.62% []
aiohttp.cookiejar.CookieJar.update_cookies 49 9 18.36% []
aiohttp.cookiejar.CookieJar.filter_cookies 35 5 14.28% []
aiohttp.cookiejar.CookieJar._parse_date 51 8 15.68% []
aiohttp.client_ws.ClientWebSocketResponse.close 38 0 0.0% []
aiohttp.client_ws.ClientWebSocketResponse.receive 50 0 0.0% []
md.row_group 313 80 25.55% []
i.match 202 15 7.425% []
gen.__anext__ 37 13 35.13% []

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
[] []
libarchive [] []
fsspec.compression [] []
time [] []
aiohttp.payload [] []
aiohttp.streams [] []
aiohttp.tracing [] []
aiohttp.pytest_plugin [] []
fsspec.callbacks [] []
struct [] []
fsspec.utils [] []
pytest [] []
random [] []
fsspec.implementations.cache_metadata [] []
math [] []
requests.cookies [] []
fsspec.caching [] []
isal [] []
io [] []
_websocket [] []
binascii [] []
aiohttp.client_reqrep [] []
cryptography [] []
fuse [] []
signal [] []
aiohttp.http [] []
fsspec.archive [] []
...fuzz_http ['fuzz_http'] []
netrc [] []
aiohttp.compression_utils [] []
aiohttp.client_ws [] []
fsspec.generic [] []
brotli [] []
aiohttp.web_urldispatcher [] []
fsspec.implementations.dask [] []
aiohttp.web_server [] []
socket [] []
aiosignal [] []
urllib3 [] []
charset_normalizer [] []
sys [] []
aiohttp.client [] []
async_timeout [] []
requests.hooks [] []
aiohttp.web_ws [] []
aiohttp.worker [] []
fsspec.gui [] []
fsspec.asyn [] []
aiohttp.abc [] []
http [] []
requests.certs [] []
fsspec.implementations.smb [] []
email [] []
aiohttp.http_parser [] []
requests.models [] []
zipfile [] []
fsspec.implementations.jupyter [] []
json [] []
base64 [] []
uvloop [] []
concurrent [] []
fsspec.implementations.memory [] []
dummy_threading [] []
fsspec.spec [] []
aiohttp.typedefs [] []
aiohttp.connector [] []
aiohttp.web_runner [] []
multidict [] []
fsspec.implementations.ftp [] []
distributed [] []
hashlib [] []
requests.packages [] []
fsspec._version [] []
aiohttp.web_fileresponse [] []
aiohttp.web_log [] []
pandas [] []
gc [] []
fsspec.implementations.cached [] []
aiohttp.http_writer [] []
aiodns [] []
typing [] []
itertools [] []
aiohttp.payload_streamer [] []
attr [] []
fsspec.implementations.libarchive [] []
_helpers [] []
fsspec.registry [] []
fastparquet [] []
aiohttp.helpers [] []
snappy [] []
requests.__version__ [] []
aiohttp.http_exceptions [] []
fsspec.implementations.data [] []
datetime [] []
codecs [] []
fsspec.implementations.http [] []
panel [] []
ctypes [] []
aiohttp.web_exceptions [] []
winreg [] []
html [] []
fsspec.implementations.local [] []
aiohttp [] []
[] []
requests.help [] []
aiohttp.formdata [] []
platform [] []
uuid [] []
aiohttp.client_proto [] []
calendar [] []
glob [] []
textwrap [] []
requests._internal_utils [] []
fsspec.transaction [] []
pickle [] []
atheris [] []
brotlicffi [] []
mimetypes [] []
gzip [] []
fsspec.exceptions [] []
traceback [] []
requests.sessions [] []
mmap [] []
argparse [] []
requests.adapters [] []
gunicorn [] []
aiohttp.test_utils [] []
collections [] []
aiohttp.web_routedef [] []
tarfile [] []
threading [] []
fsspec.core [] []
warnings [] []
paramiko [] []
contextlib [] []
secrets [] []
resource [] []
pyarrow [] []
fsspec [] []
fsspec.implementations.cache_mapper [] []
fsspec.implementations.reference [] []
pygit2 [] []
fsspec.mapping [] []
fsspec.conftest [] []
keyword [] []
simplejson [] []
logging [] []
fsspec.fuse [] []
fsspec.implementations.tar [] []
aiohttp.locks [] []
fsspec.parquet [] []
urllib [] []
zstandard [] []
aiohttp.cookiejar [] []
aiohttp.multipart [] []
fsspec.config [] []
weakref [] []
certifi [] []
typing_extensions [] []
tempfile [] []
os [] []
ssl [] []
posixpath [] []
requests.exceptions [] []
shutil [] []
zlib [] []
aiohttp.base_protocol [] []
unittest [] []
fsspec.implementations.dbfs [] []
abc [] []
ipaddress [] []
aiohttp.tcp_helpers [] []
numpy [] []
aiohttp.hdrs [] []
copy [] []
inspect [] []
aiohttp.web [] []
aiohttp.web_response [] []
enum [] []
requests.status_codes [] []
importlib [] []
requests.utils [] []
fsspec.implementations.zip [] []
fsspec.implementations [] []
aiohttp.web_request [] []
yarl [] []
fsspec.implementations.arrow [] []
ClientSession [] []
stat [] []
fsspec.implementations.sftp [] []
asyncio [] []
chardet [] []
fsspec.implementations.github [] []
smbclient [] []
types [] []
requests [] []
subprocess [] []
fsspec.implementations.git [] []
configparser [] []
jinja2 [] []
pathlib [] []
fsspec.dircache [] []
ast [] []
ujson [] []
aiohttp.web_middlewares [] []
fsspec.implementations.dirfs [] []
requests.auth [] []
dask [] []
requests.api [] []
idna [] []
aiohttp.http_websocket [] []
fsspec.implementations.webhdfs [] []
aiohttp.web_protocol [] []
requests_kerberos [] []
aiohttp.web_app [] []
aiohttp.resolver [] []
aiohttp.log [] []
_http_parser [] []
requests.structures [] []
aiohttp.client_exceptions [] []
ftplib [] []
requests.compat [] []
re [] []
frozenlist [] []
functools [] []

Directories in report

Directory