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

Fuzzer details

Fuzzer: fuzz_decode

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 13 38.2%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 21 61.7%
All colors 34 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
10 22 pyasn1.codec.streaming.asSeekableStream call site: 00022 pyasn1.codec.streaming.CachingStreamWrapper.__init__
2 12 pyasn1.codec.streaming.isEndOfStream call site: 00012 substrate.read
1 0 EP call site: 00000 pyasn1.codec.ber.decoder.StreamingDecoder.__iter__

Runtime coverage analysis

Covered functions
202
Functions that are reachable but not covered
12
Reachable functions
17
Percentage of reachable functions covered
29.41%
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_decode 4
pyasn1.codec.ber.decoder 5
pyasn1.codec.streaming 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
pyasn1.codec.ber.encoder.AbstractItemEncoder.encode pyasn1.codec.ber.encoder 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 6 0 4 13 8 65 0 239 233
pyasn1.codec.ber.decoder.BitStringPayloadDecoder.valueDecoder pyasn1.codec.ber.decoder 9 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 11 0 8 12 8 62 0 217 162
pyasn1.codec.ber.decoder.SingleItemDecoder.__call__ pyasn1.codec.ber.decoder 9 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 5 0 31 54 25 54 0 203 99
pyasn1.codec.ber.decoder.ConstructedPayloadDecoderBase.indefLenValueDecoder pyasn1.codec.ber.decoder 9 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 4 0 22 39 19 40 0 145 66
pyasn1.type.namedtype.NamedTypes.__computeAmbiguousTypes pyasn1.type.namedtype 1 ['N/A'] 5 0 0 2 4 21 6 71 50

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

Functions statically reachable by fuzzers
13.0%
78 / 598
Cyclomatic complexity statically reachable by fuzzers
18.0%
361 / 2046

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

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
[] []
pyasn1 [] []
pyasn1.type.namedval [] []
pyasn1.codec.cer.encoder [] []
pyasn1.codec.streaming ['fuzz_decode'] []
pyasn1.type.opentype [] []
pyasn1.codec.cer [] []
pyasn1.type.tag [] []
[] []
pyasn1.codec.der.encoder [] []
pyasn1.type.base [] []
platform [] []
pyasn1.type [] []
pyasn1.compat.octets [] []
pyasn1.type.tagmap [] []
pyasn1.compat [] []
io [] []
pyasn1.codec.ber.encoder [] []
...fuzz_decode ['fuzz_decode'] []
pyasn1.codec.ber.eoo [] []
pyasn1.type.univ [] []
math [] []
pyasn1.error [] []
pyasn1.codec.native [] []
pyasn1.codec.ber [] []
binascii [] []
pyasn1.type.error [] []
pyasn1.codec.ber.decoder ['fuzz_decode'] []
sys [] []
collections [] []
pyasn1.compat.integer [] []
atheris [] []
pyasn1.type.char [] []
logging [] []
pyasn1.codec.cer.decoder [] []
pyasn1.codec.der.decoder [] []
pyasn1.codec.der [] []
pyasn1.codec [] []
pyasn1.type.constraint [] []
datetime [] []
pyasn1.codec.native.decoder [] []
pyasn1.type.useful [] []
pyasn1.codec.native.encoder [] []
pyasn1.type.namedtype [] []
pyasn1.debug [] []

Directories in report

Directory