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
369
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'] 6 0 4 3 4 373 1 1229 1229
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'] 3 0 3 12 8 293 1 999 930
aiohttp.web_protocol.RequestHandler.start aiohttp.web_protocol 1 ['N/A'] 4 0 16 14 9 88 1 305 216
fsspec.implementations.reference.ReferenceFileSystem.get fsspec.implementations.reference 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 4 0 2 3 4 141 0 484 192
aiohttp.web.main aiohttp.web 1 ['N/A'] 3 0 12 3 4 65 1 206 173
fsspec.spec.AbstractBufferedFile.readuntil fsspec.spec 3 ['N/A', 'N/A', 'N/A'] 3 0 4 2 4 70 2 233 173
requests.adapters.HTTPAdapter.send requests.adapters 7 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 3 0 3 10 7 90 0 295 154

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

Functions statically reachable by fuzzers
14.0%
323 / 2297
Cyclomatic complexity statically reachable by fuzzers
17.0%
1297 / 7858

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.escape 37 13 35.13% []
collections.abc.MutableMapping.update 212 72 33.96% []
aiohttp.http_websocket.ws_ext_parse 32 1 3.125% []
aiohttp.http_websocket.WebSocketReader._feed_data 55 0 0.0% []
aiohttp.http_websocket.WebSocketReader.parse_frame 84 9 10.71% []
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 232 86 37.06% []
urllib3.contrib.socks.SOCKSProxyManager 87 9 10.34% []
urllib3.fields.RequestField.make_multipart 93 20 21.50% []
urllib3.filepost.encode_multipart_formdata 37 13 35.13% []
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% []
aiohttp.client.ClientSession._request 151 62 41.05% []
aiohttp.client.ClientSession._ws_connect 63 16 25.39% []
aiohttp.cookiejar.CookieJar.update_cookies 51 9 17.64% []
aiohttp.cookiejar.CookieJar._parse_date 51 8 15.68% []
attr.ib 44 23 52.27% []
aiohttp.client_reqrep.ClientRequest.send 36 0 0.0% []
aiohttp.client_proto.ResponseHandler.data_received 37 0 0.0% []
aiohttp.client_ws.ClientWebSocketResponse.close 37 0 0.0% []
aiohttp.client_ws.ClientWebSocketResponse.receive 50 0 0.0% []
transport.close 161 49 30.43% []
async_timeout.timeout_at 118 60 50.84% []
it.__anext__ 49 11 22.44% []
aiohttp.http_parser.HeadersParser.parse_headers 43 0 0.0% []
aiohttp.http_parser.HttpParser.feed_data.get_content_length 60 0 0.0% []
aiohttp.http_parser.HttpRequestParser.parse_message 31 2 6.451% []
aiohttp.http_parser.HttpPayloadParser.feed_data 81 3 3.703% []
fo.info 37 16 43.24% []
methods.append 54 19 35.18% []
response.raise_for_status 562 133 23.66% []
name.startswith 67 13 19.40% []
aiohttp.multipart.parse_content_disposition.unescape 53 0 0.0% []
out.copy 72 30 41.66% []
aiohttp.worker.GunicornWebWorker._run 37 0 0.0% []
fsspec.spec.AbstractFileSystem.walk 37 0 0.0% []
fsspec.spec.AbstractFileSystem.glob 35 0 0.0% []
fsspec.spec.AbstractBufferedFile.__init__ 32 2 6.25% []
fsspec.caching.BytesCache._fetch 41 0 0.0% []
fsspec.caching.BackgroundBlockCache._fetch 34 0 0.0% []
fsspec.utils.infer_storage_options 32 0 0.0% []
fsspec.asyn.AsyncFileSystem._walk 33 0 0.0% []
fsspec.asyn.AsyncFileSystem._glob 35 0 0.0% []
fsspec.implementations.http.HTTPFileSystem._glob 34 0 0.0% []
fsspec.core.get_fs_token_paths 34 0 0.0% []
gen.__anext__ 37 13 35.13% []
i.match 195 14 7.179% []
md.row_group 291 73 25.08% []

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

Directories in report

Directory