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

Project functions overview

The following table shows data about each function in the project. The functions included in this table correspond to all functions that exist in the executables of the fuzzers. As such, there may be functions that are from third-party libraries.

For further technical details on the meaning of columns in the below table, please see the Glossary .

Func name Functions filename Args Function call depth Reached by Fuzzers Runtime reached by Fuzzers Combined 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

Fuzzer details

Fuzzer: fuzz_fileio

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 108 82.4%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 23 17.5%
All colors 131 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
105 14 google.cloud.storage.fileio.BlobReader.read call site: 00014 google.cloud.storage.blob.Blob._prep_and_do_download
3 124 google.cloud.storage.fileio.BlobReader.seek call site: 00124 google.cloud.storage.bucket.Bucket.reload

Runtime coverage analysis

Covered functions
461
Functions that are reachable but not covered
65
Reachable functions
73
Percentage of reachable functions covered
10.96%
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_fileio 7
google.cloud.storage.fileio 7
google.cloud.storage.blob 43
google.cloud.storage._opentelemetry_tracing 13
google.cloud.storage._helpers 5
google.cloud._helpers 3
google.cloud.storage._media._download 2
google.cloud.storage.bucket 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
google.oauth2._id_token_async.fetch_id_token google.oauth2._id_token_async 2 ['N/A', 'N/A'] 26 0 3 4 5 234 0 756 726
google.protobuf.text_format._Parser._MergeField google.protobuf.text_format 3 ['N/A', 'N/A', 'N/A'] 13 0 18 23 12 214 10 718 688
google.cloud.storage.blob.Blob._do_upload google.cloud.storage.blob 14 ['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'] 6 0 1 2 4 165 5 540 392
google.api_core.operations_v1.transports.rest_asyncio.AsyncOperationsRestTransport._list_operations google.api_core.operations_v1.transports.rest_asyncio 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 8 0 3 2 4 102 0 354 285
google.resumable_media.requests.download.Download.consume google.resumable_media.requests.download 3 ['N/A', 'N/A', 'N/A'] 7 0 1 2 4 109 0 356 233
mock.mock._patch.__enter__ mock.mock 1 ['N/A'] 5 0 5 39 19 71 1 257 227
google.auth._default._get_explicit_environ_credentials google.auth._default 1 ['N/A'] 7 0 3 2 4 105 1 334 199

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

Functions statically reachable by fuzzers
17.0%
494 / 2936
Cyclomatic complexity statically reachable by fuzzers
18.0%
1768 / 9740

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 Runtime reached by Fuzzers Combined 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
mock.mock._patch.__enter__ 105 0 0.0% []
mock.mock._Call.__eq__ 38 1 2.631% ['fuzz_fileio']
mock.mock.create_autospec 80 0 0.0% []
google.cloud.storage.client.Client.__init__ 56 0 0.0% []
google.cloud.storage.client.Client.create_bucket 34 0 0.0% []
google.cloud.storage.client.Client.generate_signed_post_policy_v4 35 0 0.0% []
google.cloud.storage.blob.Blob.generate_signed_url 34 0 0.0% []
google.cloud.storage.blob.Blob._do_multipart_upload 36 0 0.0% []
google.cloud.storage.blob.Blob._initiate_resumable_upload 33 0 0.0% []
google.cloud.storage.blob.Blob.compose 32 0 0.0% []
google.cloud.storage.blob.Blob.open 32 12 37.5% ['fuzz_fileio']
google.cloud.storage._signing.generate_signed_url_v4 57 0 0.0% []
collections.OrderedDict.values 234 76 32.47% ['fuzz_fileio']
google.rpc.error_details_pb2 51 12 23.52% ['fuzz_fileio']
google.protobuf.descriptor_pool.DescriptorPool._ConvertFileProtoToFileDescriptor 31 0 0.0% []
google.protobuf.descriptor_pool.DescriptorPool._ConvertMessageDescriptor 31 0 0.0% []
google.protobuf.descriptor_pool.DescriptorPool._SetFieldType 47 0 0.0% []
name.rstrip 67 13 19.40% ['fuzz_fileio']
google.protobuf.internal.api_implementation._CanImport 43 21 48.83% ['fuzz_fileio']
google.protobuf.internal.python_message._AddInitMethod.init 67 0 0.0% []
google.protobuf.descriptor.Descriptor.__init__ 31 0 0.0% []
google.protobuf.descriptor.MakeDescriptor 48 0 0.0% []
google.api_core.retry.retry_streaming_async.retry_target_stream 41 2 4.878% ['fuzz_fileio']
google.protobuf.internal.decoder.MessageSetItemDecoder.DecodeItem 38 0 0.0% []
google.protobuf.text_format._Printer._PrintUnknownFields 35 0 0.0% []
google.protobuf.text_format._Printer.PrintFieldValue 31 0 0.0% []
google.protobuf.text_format._Parser._MergeField 74 0 0.0% []
google.protobuf.text_format._Parser._MergeScalarField 37 0 0.0% []
google.protobuf.internal.well_known_types.Timestamp.FromJsonString 39 0 0.0% []
response.content 658 142 21.58% ['fuzz_fileio']
connection.get_api_base_url_for_mtls 63 18 28.57% ['fuzz_fileio']
d.get 189 25 13.22% ['fuzz_fileio']
api.Authenticate 214 16 7.476% ['fuzz_fileio']
cachetools.LRUCache 516 133 25.77% ['fuzz_fileio']
s.to_bytes 114 8 7.017% ['fuzz_fileio']
pyasn1_modules.pem.readPemBlocksFromFile 36 6 16.66% ['fuzz_fileio']
url.find 204 60 29.41% ['fuzz_fileio']
request.pop 108 49 45.37% ['fuzz_fileio']
val.split 91 49 53.84% ['fuzz_fileio']
google.cloud.storage._media.requests.download.Download._write_to_stream 31 0 0.0% []
transport.delete 153 47 30.71% ['fuzz_fileio']
urllib3.util.ssl_.create_urllib3_context 181 82 45.30% ['fuzz_fileio']

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
[] []
google.auth.iam [] []
google.protobuf.internal.testing_refleaks [] []
google.api_core.bidi [] []
google.type.dayofweek_pb2 [] []
contextlib [] []
google.logging.type.http_request_pb2 [] []
mimetypes [] []
google.oauth2._id_token_async [] []
google.protobuf.internal.decoder [] []
...fuzz_fileio ['fuzz_fileio'] []
google.auth.aio.transport.aiohttp [] []
google.auth.aws [] []
google.auth.transport._mtls_helper [] []
google.cloud.storage [] []
atheris [] []
operator [] []
google.api.system_parameter_pb2 [] []
google.cloud.location.locations_pb2 [] []
google.api.policy_pb2 [] []
google.auth.crypt.es256 [] []
google.type.quaternion_pb2 [] []
cryptography [] []
google.oauth2 [] []
google.protobuf.wrappers_pb2 [] []
google.cloud.storage.iam [] []
google.protobuf.internal.containers [] []
google.oauth2._client_async [] []
google.auth.transport.requests [] []
google.resumable_media.requests [] []
urllib3 [] []
google.api.consumer_pb2 [] []
google.api_core.gapic_v1.config [] []
google.api.control_pb2 [] []
google.resumable_media._download [] []
google.api_core.timeout [] []
google.api_core.iam [] []
cffi [] []
google._async_resumable_media [] []
google.api.logging_pb2 [] []
google.oauth2.webauthn_types [] []
google.auth.transport._aiohttp_requests [] []
functools [] []
google.rpc.code_pb2 [] []
google.protobuf.message_factory [] []
google.protobuf.service_reflection [] []
google.auth._default [] []
google.api_core.operations_v1.pagers_async [] []
random [] []
base64 [] []
google.api.auth_pb2 [] []
importlib_metadata [] []
google.api.visibility_pb2 [] []
google.auth.downscoped [] []
google.api_core.gapic_v1.config_async [] []
google.cloud.storage._media [] []
threading [] []
google.cloud.storage.blob ['fuzz_fileio'] []
google.oauth2._reauth_async [] []
google.api_core.datetime_helpers [] []
google._async_resumable_media._upload [] []
google.auth.crypt.base [] []
google.api_core.general_helpers [] []
google.protobuf.descriptor [] []
shutil [] []
google.auth.aio._helpers [] []
google.api.metric_pb2 [] []
google.api_core.rest_streaming_async [] []
google.api_core.retry_async [] []
google.auth._service_account_info [] []
google.cloud.storage.version [] []
google.auth.compute_engine._metadata [] []
google.auth.external_account [] []
google.api.billing_pb2 [] []
google.type.postal_address_pb2 [] []
google.rpc.error_details_pb2 [] []
datetime [] []
google.api.usage_pb2 [] []
google.protobuf.json_format [] []
google.protobuf.empty_pb2 [] []
time [] []
google.api.config_change_pb2 [] []
google.api_core.universe [] []
asyncio [] []
OpenSSL [] []
google.longrunning.operations_pb2_grpc [] []
google.auth.aio [] []
google.api_core.future._helpers [] []
io [] []
google.api_core.operations_v1.operations_async_client [] []
google.rpc.context.attribute_context_pb2 [] []
google.cloud.storage._signing [] []
google.protobuf.compiler.plugin_pb2 [] []
google.api.documentation_pb2 [] []
google.auth.compute_engine [] []
google.protobuf.compiler [] []
google.api_core.retry.retry_unary_async [] []
google.api.field_behavior_pb2 [] []
google.api.log_pb2 [] []
google.api_core.version_header [] []
mock [] []
google.cloud.operation [] []
google_crc32c [] []
google.protobuf.reflection [] []
google.protobuf.duration [] []
google.api.resource_pb2 [] []
cachetools [] []
struct [] []
google.api_core.operations_v1.operations_rest_client_async [] []
google.api_core.client_options [] []
google.cloud.storage._media._download ['fuzz_fileio'] []
google.cloud.storage.transfer_manager [] []
inspect [] []
google.api_core.exceptions [] []
google.auth._jwt_async [] []
google.auth.metrics [] []
importlib [] []
google.api_core.client_logging [] []
google.rpc.status_pb2 [] []
google.type.color_pb2 [] []
google.api_core.operation_async [] []
google.longrunning.operations_grpc_pb2 [] []
google.protobuf.proto_text [] []
google.api_core.operations_v1.operations_client_config [] []
google.protobuf.internal.well_known_types [] []
google.protobuf.descriptor_pb2 [] []
google.auth._helpers [] []
tempfile [] []
calendar [] []
google.api.label_pb2 [] []
google.auth.crypt.rsa [] []
google.auth.aio.transport.sessions [] []
google.type.month_pb2 [] []
google.cloud.storage.hmac_key [] []
google.api.endpoint_pb2 [] []
google.auth.aio.credentials [] []
hashlib [] []
requests [] []
google.auth.transport.urllib3 [] []
queue [] []
urllib [] []
google.api.field_info_pb2 [] []
google.oauth2.reauth [] []
getpass [] []
google.api_core.operations_v1.pagers_base [] []
unittest [] []
google.protobuf.internal.enum_type_wrapper [] []
google.oauth2._credentials_async [] []
google.api_core.future.polling [] []
google.api_core.operations_v1.transports.base [] []
crcmod [] []
google.protobuf.timestamp_pb2 [] []
google.resumable_media._helpers [] []
google.type.localized_text_pb2 [] []
google.cloud.version [] []
google.type.phone_number_pb2 [] []
google.cloud.storage._media.common [] []
posixpath [] []
google.api.quota_pb2 [] []
google.resumable_media.common [] []
google.api_core.operations_v1.abstract_operations_base_client [] []
google._async_resumable_media.requests [] []
weakref [] []
google [] []
google.oauth2.webauthn_handler_factory [] []
google.protobuf [] []
google.auth.external_account_authorized_user [] []
google.protobuf.field_mask_pb2 [] []
google.oauth2.service_account [] []
mock.backports [] []
google.api_core.operations_v1.transports.rest_asyncio [] []
google.cloud._http [] []
google._async_resumable_media.requests.upload [] []
google.cloud.storage._media.requests [] []
google.longrunning.operations_pb2 [] []
google.auth.api_key [] []
xml [] []
google.protobuf.message [] []
google.auth.transport._custom_tls_signer [] []
google.protobuf.text_format [] []
google.api.backend_pb2 [] []
google.protobuf.runtime_version [] []
google.api_core.retry.retry_base [] []
google.oauth2._service_account_async [] []
sys [] []
google.auth.aio.transport [] []
google.api_core.page_iterator [] []
google._upb._message [] []
ctypes [] []
google.resumable_media.requests.upload [] []
google.api_core._rest_streaming_base [] []
google.cloud.storage.retry [] []
google.api_core.operations_v1.pagers [] []
google.logging.type.log_severity_pb2 [] []
warnings [] []
hmac [] []
google.protobuf.any [] []
google.protobuf.internal.field_mask [] []
http [] []
google.cloud.extended_operations_pb2 [] []
google.cloud.storage.bucket ['fuzz_fileio'] []
google.type.datetime_pb2 [] []
google.resumable_media.requests._request_helpers [] []
google.protobuf.pyext [] []
google.protobuf.descriptor_database [] []
google.type.fraction_pb2 [] []
google.cloud.storage._media._helpers [] []
google.auth.crypt._helpers [] []
google.protobuf.internal.extension_dict [] []
google.api_core.retry.retry_unary [] []
google._async_resumable_media._download [] []
collections [] []
google.oauth2.id_token [] []
[] []
copy [] []
google.resumable_media.requests.download [] []
google.protobuf.internal.type_checkers [] []
google.longrunning.operations_proto [] []
google.api_core.path_template [] []
google._async_resumable_media.requests.download [] []
mock.mock [] []
google.api_core [] []
logging [] []
google.oauth2.utils [] []
google.auth.credentials [] []
google.api.monitoring_pb2 [] []
google.protobuf.api_pb2 [] []
google.api_core.gapic_v1.method [] []
google.protobuf.proto_builder [] []
google.api_core.retry.retry_streaming_async [] []
google.auth._default_async [] []
google.protobuf.internal.api_implementation [] []
google.auth._credentials_base [] []
dataclasses [] []
google.protobuf.internal.wire_format [] []
math [] []
google.api_core.page_iterator_async [] []
google.api_core.retry.retry_streaming [] []
google.api.annotations_pb2 [] []
google.cloud.storage._http [] []
google.api_core.future.async_future [] []
google.protobuf.internal.python_message [] []
json [] []
google.resumable_media [] []
google.api_core.operations_v1.transports.rest [] []
google.oauth2.credentials [] []
google.auth._refresh_worker [] []
google.api_core.operations_v1 [] []
google.oauth2._client [] []
google.protobuf.any_pb2 [] []
re [] []
google.api_core.gapic_v1.method_async [] []
google.cloud.exceptions [] []
google.auth.identity_pool [] []
google.type.money_pb2 [] []
google.cloud.storage._opentelemetry_tracing ['fuzz_fileio'] []
google.api_core.rest_helpers [] []
pprint [] []
google.api_core.operations_v1.transports [] []
google.auth.compute_engine.credentials [] []
google.api_core.rest_streaming [] []
grpc_gcp [] []
google.protobuf.timestamp [] []
google.auth.jwt [] []
google.cloud.storage._helpers ['fuzz_fileio'] []
google.auth.impersonated_credentials [] []
google.cloud.client [] []
google.auth.pluggable [] []
google.protobuf.duration_pb2 [] []
google.cloud.storage._media.requests.download [] []
aiohttp [] []
google.auth._credentials_async [] []
pyasn1_modules [] []
google.api.client_pb2 [] []
google.protobuf.proto_json [] []
google.api_core.operations_v1.operations_client [] []
google.protobuf.internal.builder [] []
google.api_core.future.base [] []
google.type.date_pb2 [] []
google.api_core.gapic_v1 [] []
google.api.distribution_pb2 [] []
google.protobuf.pyext.cpp_message [] []
google.api_core.protobuf_helpers [] []
google.protobuf.proto [] []
google.protobuf.type_pb2 [] []
uuid [] []
google.cloud.storage._media.requests._request_helpers [] []
pyasn1 [] []
google.cloud._testing [] []
platform [] []
google.protobuf.source_context_pb2 [] []
google._async_resumable_media._helpers [] []
google.api_core.client_info [] []
os [] []
google.api_core.retry [] []
google.auth._exponential_backoff [] []
google.protobuf.struct_pb2 [] []
google.protobuf.internal [] []
google.api.context_pb2 [] []
google.cloud._helpers ['fuzz_fileio'] []
google.longrunning.operations_grpc [] []
google.cloud.storage.acl [] []
google.cloud.obsolete [] []
google.api_core.version [] []
google.cloud.storage.client [] []
google.auth.crypt._python_rsa [] []
grpc_status [] []
certifi [] []
google.cloud.storage.exceptions [] []
google.protobuf.symbol_database [] []
google.auth.crypt._cryptography_rsa [] []
google.cloud.storage._media._upload [] []
google.cloud.storage.batch [] []
google.type.calendar_period_pb2 [] []
google.auth.exceptions [] []
google.auth.transport [] []
google.api_core.gapic_v1.routing_header [] []
google.auth.transport.mtls [] []
google.api.http_pb2 [] []
google.api_core.gapic_v1.client_info [] []
google.api.routing_pb2 [] []
google.cloud.environment_vars [] []
google.auth.transport.grpc [] []
google.rpc.http_pb2 [] []
google.api_core.future [] []
google.auth.app_engine [] []
google.protobuf.internal.python_edition_defaults [] []
google.cloud.storage.constants [] []
google.rpc.context.audit_context_pb2 [] []
packaging [] []
google.auth [] []
google.protobuf.unknown_fields [] []
pickle [] []
google.type.timeofday_pb2 [] []
google.auth._oauth2client [] []
subprocess [] []
google.cloud.storage.notification [] []
google.oauth2.webauthn_handler [] []
google.api.error_reason_pb2 [] []
google.api_core.extended_operation [] []
google.oauth2.sts [] []
gc [] []
jwt [] []
google.api.httpbody_pb2 [] []
google.gapic.metadata.gapic_metadata_pb2 [] []
google.type.latlng_pb2 [] []
google.auth.crypt [] []
google.api.service_pb2 [] []
google.api.monitored_resource_pb2 [] []
google.oauth2.challenges [] []
google._async_resumable_media.requests._request_helpers [] []
google.type.interval_pb2 [] []
typing [] []
types [] []
google.cloud.storage.fileio ['fuzz_fileio'] []
google.auth.environment_vars [] []
google.protobuf.internal.encoder [] []
google.protobuf.descriptor_pool [] []
google.api_core.operation [] []
google.resumable_media._upload [] []
google.auth.transport._requests_base [] []
google.cloud.storage._media.requests.upload [] []
google.protobuf.testdata [] []
google.longrunning.operations_proto_pb2 [] []
rsa [] []
google.auth._cloud_sdk [] []
google.type.decimal_pb2 [] []
google.oauth2.gdch_credentials [] []
grpc [] []
copyreg [] []
typing_extensions [] []
google.protobuf.util [] []
google.api_core.operations_v1.abstract_operations_client [] []
google.auth.version [] []
google.protobuf.text_encoding [] []
google.auth.transport._http_client [] []
google.api.source_info_pb2 [] []
google.protobuf.internal.message_listener [] []
google.api.launch_stage_pb2 [] []
email [] []
google.api_core.grpc_helpers [] []
binascii [] []
google.type.expr_pb2 [] []
opentelemetry [] []
google.api_core.grpc_helpers_async [] []

Directories in report

Directory