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_recompiler

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 173 34.2%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 332 65.7%
All colors 505 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
23 302 cffi.model.ArrayType.build_backend_type call site: 00302 cffi.model.BaseTypeByIdentity.get_cached_btype
22 29 cffi.model.BaseTypeByIdentity.get_cached_btype call site: 00029 cffi.model.EnumType.build_baseinttype
12 59 cffi.cparser._preprocess call site: 00059 cffi.cparser._workaround_for_old_pycparser
12 76 cffi.cparser._preprocess_extern_python call site: 00076 match.end
12 218 cffi.model.StructOrUnion.__init__ call site: 00218 cffi.cparser.Parser._build_enum_type
8 283 cffi.cparser.Parser._get_type_and_quals call site: 00283 cffi.api.FFI._get_cached_btype
6 400 cffi.cparser.Parser._parse_decl call site: 00400 cffi.cparser.Parser._add_integer_constant
5 14 cffi.model.get_typecache call site: 00014 .type
4 163 cffi.cparser.Parser._parse_constant call site: 00163 .int
4 257 cffi.cparser.Parser._get_struct_union_enum_type call site: 00257 cffi.cparser.Parser._get_struct_union_enum_type
4 330 cffi.model.BaseTypeByIdentity.get_cached_btype call site: 00330 cffi.model.global_cache
3 98 cffi.cparser._preprocess call site: 00098 match.start

Runtime coverage analysis

Covered functions
147
Functions that are reachable but not covered
153
Reachable functions
230
Percentage of reachable functions covered
33.48%
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
/ 1
...fuzz_recompiler 7
cffi.api 33
cffi.cparser 125
cffi.model 64
cffi.commontypes 4
cffi.recompiler 30

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
cffi.api.FFI.distutils_extension cffi.api 3 ['N/A', 'N/A', 'N/A'] 9 0 3 5 5 143 0 474 320
cffi.recompiler.Recompiler._generate_cpy_function_decl cffi.recompiler 3 ['N/A', 'N/A', 'N/A'] 4 0 51 14 9 40 0 141 75
cffi.verifier.Verifier.__init__ cffi.verifier 12 ['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 1 5 5 28 1 96 72
cffi.setuptools_ext.add_cffi_module cffi.setuptools_ext 2 ['N/A', 'N/A'] 2 0 10 8 6 26 1 85 55
cffi.vengine_gen.VGenericEngine._loaded_gen_function cffi.vengine_gen 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 24 0 6 5 5 177 0 602 44
cffi.vengine_cpy.VCPythonEngine._generate_cpy_function_decl cffi.vengine_cpy 3 ['N/A', 'N/A', 'N/A'] 5 0 32 7 6 28 0 98 43
cffi.vengine_cpy.VCPythonEngine.load_library cffi.vengine_cpy 2 ['N/A', 'N/A'] 2 0 7 4 5 27 0 86 38

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

Functions statically reachable by fuzzers
28.9%
159 / 539
Cyclomatic complexity statically reachable by fuzzers
34.0%
642 / 1893

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