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_open

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 734 73.2%
gold [1:9] 180 17.9%
yellow [10:29] 6 0.59%
greenyellow [30:49] 1 0.09%
lawngreen 50+ 81 8.08%
All colors 1002 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
161 781 processuri call site: 00781 NCpathabsolute
160 483 rclocatepos call site: 00483 NC_getactives3profile
74 404 ncuriparse call site: 00404 NC_s3urlrebuild
36 331 ncuriparse call site: 00331 ensurequerylist
30 181 NC_aws_load_credentials call site: 00181 awsparse
29 70 unparsepath call site: 00070 NCgetkindname
28 371 ncbytescat call site: 00371 ensurefraglist
24 755 processuri call site: 00755 ncurifragmentparams
21 275 rcsearch call site: 00275 rccompile
18 726 NC_udf_load_plugins call site: 00726 load_udf_plugin
16 237 NC_aws_load_credentials call site: 00237 freeprofile
13 212 nclistget call site: 00212 nclistset

Runtime coverage analysis

Covered functions
182
Functions that are reachable but not covered
122
Reachable functions
226
Percentage of reachable functions covered
46.02%
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/fuzz_open.c 1
libdispatch/dfile.c 6
liblib/nc_initialize.c 3
libdispatch/ddispatch.c 2
libdispatch/dglobal.c 4
libdispatch/nclist.c 13
libdispatch/dpathmgr.c 11
libdispatch/nclog.c 8
libdispatch/drc.c 17
libdispatch/ds3util.c 14
libdispatch/ncbytes.c 10
libdispatch/dutil.c 8
libdispatch/ncuri.c 25
libdispatch/dauth.c 1
libdispatch/doffsets.c 1
libsrc/nc3dispatch.c 2
libsrc4/nc4dispatch.c 2
libdispatch/dplugins.c 3
libnczarr/zdispatch.c 2
libnczarr/zinternal.c 2
libnczarr/zprov.c 3
libnczarr/zarr.c 1
libdispatch/daux.c 3
libdispatch/dudfplugins.c 4
libsrc4/nc4internal.c 2
libdispatch/dinfermodel.c 31
libdispatch/derror.c 1
libdispatch/nc.c 4
libdispatch/nclistmgr.c 4

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
NCZ_open /src/netcdf-c/libnczarr/zopen.c 7 ['N/A', 'int', 'int', 'N/A', 'N/A', 'N/A', 'int'] 20 0 123 24 9 387 0 3375 2434
NC3_put_vara /src/netcdf-c/build/libsrc/putget.c 6 ['int', 'int', 'N/A', 'N/A', 'N/A', 'int'] 11 0 501 75 29 355 0 2005 1743
NC3_get_vara /src/netcdf-c/build/libsrc/putget.c 6 ['int', 'int', 'N/A', 'N/A', 'N/A', 'int'] 6 0 485 73 28 304 0 1567 1404
NCZ_get_vara /src/netcdf-c/libnczarr/zvar.c 6 ['int', 'int', 'N/A', 'N/A', 'N/A', 'int'] 21 0 30 3 2 281 0 2375 721
NC3_def_var_fill /src/netcdf-c/libsrc/var.c 4 ['int', 'int', 'int', 'N/A'] 11 0 185 30 13 266 0 1527 641
NC3_open /src/netcdf-c/libsrc/nc3internal.c 7 ['N/A', 'int', 'int', 'N/A', 'N/A', 'N/A', 'int'] 10 0 193 32 11 140 0 775 495
NC3_get_att /src/netcdf-c/build/libsrc/attr.c 5 ['int', 'int', 'N/A', 'N/A', 'int'] 9 0 322 42 11 221 0 1090 293

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

Functions statically reachable by fuzzers
56.9%
1305 / 2281
Cyclomatic complexity statically reachable by fuzzers
64.0%
9319 / 14544

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

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/netcdf-c/libnczarr/zodom.c [] []
/src/netcdf-c/libdispatch/ncjson.c [] []
/src/netcdf-c/libsrc4/nc4internal.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/libnczarr/zmap.c [] []
/src/netcdf-c/libdispatch/nchashmap.c [] []
/src/netcdf-c/libdispatch/dcrc64.c [] []
/src/netcdf-c/libnczarr/zvar.c [] []
/src/netcdf-c/libsrc/dim.c [] []
/src/netcdf-c/libnczarr/ztype.c [] []
/src/netcdf-c/libnczarr/zmap_file.c [] []
/src/netcdf-c/libdispatch/daux.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/libdispatch/dvarinq.c [] []
/src/netcdf-c/libdispatch/dpathmgr.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/libdispatch/dnotnc4.c [] []
/src/netcdf-c/libnczarr/zxcache.c [] []
/src/netcdf-c/libdispatch/dfile.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/libdispatch/dutil.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/libdispatch/dplugins.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/libdispatch/ddispatch.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/libdispatch/doffsets.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/libdispatch/utf8proc.c [] []
/src/netcdf-c/libsrc4/nc4dim.c [] []
/src/netcdf-c/libnczarr/zsync.c [] []
/src/netcdf-c/libdispatch/dvarput.c [] []
/src/netcdf-c/libdispatch/dattinq.c [] []
/src/netcdf-c/libsrc/nc3dispatch.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/libdispatch/drc.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/libnczarr/zprov.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/libnczarr/zclose.c [] []
/src/netcdf-c/libdispatch/ncbytes.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/libdispatch/nc.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/libdispatch/dfilter.c [] []
/src/netcdf-c/libnczarr/zutil.c [] []
/src/netcdf-c/libnczarr/zwalk.c [] []
/src/netcdf-c/libnczarr/zinfer.c [] []
/src/netcdf-c/libnczarr/zcvt.c [] []
/src/netcdf-c/libdispatch/dvar.c [] []
/src/netcdf-c/libsrc4/nc4grp.c [] []
/src/netcdf-c/libdispatch/dcompound.c [] []
/src/netcdf-c/libsrc4/nc4attr.c [] []
/src/netcdf-c/libsrc/var.c [] []
/src/netcdf-c/libnczarr/zmetadata.c [] []
/src/netcdf-c/libnczarr/zchunking.c [] []
/src/netcdf-c/libnczarr/zdim.c [] []
/src/netcdf-c/libdispatch/dattget.c [] []
/src/netcdf-c/libdispatch/dutf8.c [] []
/src/netcdf-c/libnczarr/zcreate.c [] []
/src/netcdf-c/libdispatch/dgroup.c [] []
/src/netcdf-c/libnczarr/zdebug.c [] []
/src/netcdf-c/libnczarr/zarr.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/libdispatch/dattput.c [] []
/src/netcdf-c/libdispatch/dtype.c [] []
/src/netcdf-c/libdispatch/nclist.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/fuzz/fuzz_open.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/build/libsrc/ncx.c [] []
/src/netcdf-c/libnczarr/zgrp.c [] []
/src/netcdf-c/libdispatch/ncxcache.c [] []
/src/netcdf-c/libdispatch/dinstance.c [] []
/src/netcdf-c/libsrc/nc3internal.c [] []
/src/netcdf-c/liblib/nc_initialize.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/libdispatch/ncexhash.c [] []
/src/netcdf-c/libdispatch/ncuri.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/libsrc4/ncfunc.c [] []
/src/netcdf-c/libnczarr/zfile.c [] []
/src/netcdf-c/libdispatch/ds3util.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/libnczarr/zmetadata2.c [] []
/src/netcdf-c/libdispatch/dinfermodel.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/libdispatch/dglobal.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/libdispatch/nclistmgr.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/libsrc/memio.c [] []
/src/netcdf-c/libdispatch/ncindex.c [] []
/src/netcdf-c/libdispatch/dauth.c ['fuzz_open'] []
/src/netcdf-c/libdispatch/dinstance_intern.c [] []
/src/netcdf-c/libdispatch/derror.c ['fuzz_open'] []
/src/netcdf-c/libdispatch/nclog.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/libdispatch/dudfplugins.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/libsrc4/nc4dispatch.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/libsrc4/nc4type.c [] []
/src/netcdf-c/libnczarr/zattr.c [] []
/src/netcdf-c/libsrc4/nc4var.c [] []
/src/netcdf-c/build/libsrc/attr.c [] []
/src/netcdf-c/libnczarr/zopen.c [] []
/src/netcdf-c/libsrc/ncio.c [] []
/src/netcdf-c/libnczarr/zinternal.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/build/libsrc/putget.c [] []
/src/netcdf-c/libsrc/posixio.c [] []
/src/netcdf-c/libnczarr/zdispatch.c ['fuzz_open'] ['fuzz_open']
/src/netcdf-c/libdispatch/dvarget.c [] []
/src/netcdf-c/libsrc/v1hpg.c [] []
/src/netcdf-c/libdispatch/ddim.c [] []
/src/netcdf-c/libsrc/mmapio.c [] []
/src/netcdf-c/libdispatch/dstring.c [] []

Directories in report

Directory
/src/netcdf-c/libsrc4/
/src/netcdf-c/liblib/
/src/netcdf-c/build/libsrc/
/src/netcdf-c/libsrc/
/src/netcdf-c/libnczarr/
/src/netcdf-c/fuzz/
/src/netcdf-c/libdispatch/