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: ZydisFuzzDecoder

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 519 98.4%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 8 1.51%
All colors 527 100

Fuzz blockers

The followings are the branches where fuzzer fails to bypass.

Unique non-covered Complexity Unique Reachable Complexities Unique Reachable Functions All non-covered Complexity All Reachable Complexity Function Name Function Callsite Blocked Branch
2 2 1 :

['fputs']

2 2 ZydisFuzzerInit call site: 00000 /src/zydis/build/../tools/ZydisFuzzShared.c:532
0 0 None 0 0 ZydisFuzzTarget call site: 00003 /src/zydis/build/../tools/ZydisFuzzDecoder.c:81
0 0 None 0 0 ZydisLibFuzzerRead call site: 00526 /src/zydis/build/../tools/ZydisFuzzShared.c:77

Runtime coverage analysis

Covered functions
10
Functions that are reachable but not covered
89
Reachable functions
96
Percentage of reachable functions covered
7.29%
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
build/../tools/ZydisFuzzShared.c 4
build/../tools/ZydisFuzzDecoder.c 1
src/Decoder.c 58
src/Formatter.c 8
src/DecoderData.c 2
src/SharedData.c 4
src/Register.c 8
src/FormatterBuffer.c 2
src/Utils.c 1
src/Mnemonic.c 2
src/Segment.c 1
src/Zydis.c 1

Fuzzer: ZydisFuzzReEncoding

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 142 17.1%
gold [1:9] 49 5.92%
yellow [10:29] 80 9.67%
greenyellow [30:49] 25 3.02%
lawngreen 50+ 531 64.2%
All colors 827 100

Fuzz blockers

The followings are the branches where fuzzer fails to bypass.

Unique non-covered Complexity Unique Reachable Complexities Unique Reachable Functions All non-covered Complexity All Reachable Complexity Function Name Function Callsite Blocked Branch
22 48 3 :

['fputs', 'ZydisCalcAbsoluteAddress', 'abort']

22 48 ZydisValidateInstructionIdentity call site: 00780 /src/zydis/build/../tools/ZydisFuzzShared.c:265
4 4 2 :

['fputs', 'abort']

4 4 ZydisReEncodeInstruction call site: 00780 /src/zydis/build/../tools/ZydisFuzzShared.c:515
2 2 1 :

['fputs']

2 2 ZydisFuzzerInit call site: 00000 /src/zydis/build/../tools/ZydisFuzzShared.c:532
0 0 None 18 44 ZydisValidateInstructionIdentity call site: 00792 /src/zydis/build/../tools/ZydisFuzzShared.c:336
0 0 None 18 44 ZydisValidateInstructionIdentity call site: 00796 /src/zydis/build/../tools/ZydisFuzzShared.c:357
0 0 None 4 4 ZydisValidateInstructionIdentity call site: 00780 /src/zydis/build/../tools/ZydisFuzzShared.c:277
0 0 None 4 4 ZydisValidateInstructionIdentity call site: 00786 /src/zydis/build/../tools/ZydisFuzzShared.c:317
0 0 None 4 4 ZydisReEncodeInstruction call site: 00498 /src/zydis/build/../tools/ZydisFuzzShared.c:486
0 0 None 4 4 ZydisReEncodeInstruction call site: 00502 /src/zydis/build/../tools/ZydisFuzzShared.c:495
0 0 None 4 4 ZydisReEncodeInstruction call site: 00776 /src/zydis/build/../tools/ZydisFuzzShared.c:505
0 0 None 4 4 ZydisReEncodeInstructionAbsolute call site: 00805 /src/zydis/build/../tools/ZydisFuzzShared.c:447
0 0 None 4 4 ZydisReEncodeInstructionAbsolute call site: 00808 /src/zydis/build/../tools/ZydisFuzzShared.c:463

Runtime coverage analysis

Covered functions
143
Functions that are reachable but not covered
6
Reachable functions
145
Percentage of reachable functions covered
95.86%
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
build/../tools/ZydisFuzzShared.c 7
build/../tools/ZydisFuzzReEncoding.c 1
src/Decoder.c 58
src/DecoderData.c 2
src/SharedData.c 4
src/Register.c 5
src/Encoder.c 59
src/EncoderData.c 1
src/Generated/GetCcInfo.inc 1
src/Utils.c 1
src/Generated/GetRelInfo.inc 1

Fuzzer: ZydisFuzzEncoder

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 169 19.7%
gold [1:9] 57 6.67%
yellow [10:29] 80 9.36%
greenyellow [30:49] 32 3.74%
lawngreen 50+ 516 60.4%
All colors 854 100

Fuzz blockers

The followings are the branches where fuzzer fails to bypass.

Unique non-covered Complexity Unique Reachable Complexities Unique Reachable Functions All non-covered Complexity All Reachable Complexity Function Name Function Callsite Blocked Branch
4 4 2 :

['fputs', 'abort']

4 4 ZydisReEncodeInstruction call site: 00807 /src/zydis/build/../tools/ZydisFuzzShared.c:515
2 2 1 :

['fputs']

2 2 ZydisFuzzerInit call site: 00000 /src/zydis/build/../tools/ZydisFuzzShared.c:532
0 0 None 18 44 ZydisValidateInstructionIdentity call site: 00819 /src/zydis/build/../tools/ZydisFuzzShared.c:336
0 0 None 18 44 ZydisValidateInstructionIdentity call site: 00823 /src/zydis/build/../tools/ZydisFuzzShared.c:357
0 0 None 12 25 ZydisCompareRequestToInstruction call site: 00702 /src/zydis/build/../tools/ZydisFuzzEncoder.c:72
0 0 None 12 25 ZydisCompareRequestToInstruction call site: 00708 /src/zydis/build/../tools/ZydisFuzzEncoder.c:100
0 0 None 12 25 ZydisCompareRequestToInstruction call site: 00713 /src/zydis/build/../tools/ZydisFuzzEncoder.c:144
0 0 None 4 4 ZydisValidateInstructionIdentity call site: 00807 /src/zydis/build/../tools/ZydisFuzzShared.c:277
0 0 None 4 4 ZydisValidateInstructionIdentity call site: 00813 /src/zydis/build/../tools/ZydisFuzzShared.c:317
0 0 None 4 4 ZydisReEncodeInstruction call site: 00796 /src/zydis/build/../tools/ZydisFuzzShared.c:486
0 0 None 4 4 ZydisReEncodeInstruction call site: 00800 /src/zydis/build/../tools/ZydisFuzzShared.c:495
0 0 None 4 4 ZydisReEncodeInstruction call site: 00803 /src/zydis/build/../tools/ZydisFuzzShared.c:505

Runtime coverage analysis

Covered functions
144
Functions that are reachable but not covered
6
Reachable functions
146
Percentage of reachable functions covered
95.89%
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
build/../tools/ZydisFuzzShared.c 7
build/../tools/ZydisFuzzEncoder.c 2
src/Encoder.c 59
src/EncoderData.c 1
src/SharedData.c 4
src/Generated/GetCcInfo.inc 1
src/Register.c 5
src/Decoder.c 58
src/DecoderData.c 2
src/Utils.c 1
src/Generated/GetRelInfo.inc 1

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
ZydisFormatterBasePrintDecorator /src/zydis/src/FormatterBase.c 4 ['N/A', 'N/A', 'N/A', 'int'] 2 0 1946 414 162 4 0 247 245
ZydisFormatterBasePrintPrefixes /src/zydis/src/FormatterBase.c 3 ['N/A', 'N/A', 'N/A'] 3 0 1032 226 92 8 0 210 125
ZydisFormatterATTFormatInstruction /src/zydis/src/FormatterATT.c 3 ['N/A', 'N/A', 'N/A'] 3 0 772 159 62 8 0 103 79
ZydisFormatterIntelFormatInstructionMASM /src/zydis/src/FormatterIntel.c 3 ['N/A', 'N/A', 'N/A'] 4 0 41 9 2 9 0 102 61
ZydisFormatterIntelFormatOperandMEM /src/zydis/src/FormatterIntel.c 3 ['N/A', 'N/A', 'N/A'] 3 0 500 106 44 7 0 81 44
ZydisFormatterIntelPrintTypecast /src/zydis/src/FormatterIntel.c 3 ['N/A', 'N/A', 'N/A'] 2 0 326 75 28 4 0 55 43
ZydisFormatterATTFormatOperandMEM /src/zydis/src/FormatterATT.c 3 ['N/A', 'N/A', 'N/A'] 3 0 476 102 42 7 0 79 42
ZydisFormatterATTPrintIMM /src/zydis/src/FormatterATT.c 3 ['N/A', 'N/A', 'N/A'] 4 0 69 17 5 13 0 94 36

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

Functions statically reachable by fuzzers
88.0%
181 / 205
Cyclomatic complexity statically reachable by fuzzers
95.0%
2981 / 3152

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/zydis/src/Decoder.c ['ZydisFuzzDecoder', 'ZydisFuzzReEncoding', 'ZydisFuzzEncoder'] ['ZydisFuzzDecoder', 'ZydisFuzzReEncoding', 'ZydisFuzzEncoder']
/src/zydis/src/FormatterBase.c [] []
/src/zydis/src/Zydis.c ['ZydisFuzzDecoder'] ['ZydisFuzzDecoder']
/src/zydis/src/Segment.c ['ZydisFuzzDecoder'] []
/src/zydis/src/Register.c ['ZydisFuzzDecoder', 'ZydisFuzzReEncoding', 'ZydisFuzzEncoder'] ['ZydisFuzzReEncoding', 'ZydisFuzzEncoder']
/src/zydis/build/../tools/ZydisFuzzEncoder.c ['ZydisFuzzEncoder'] []
/src/zydis/src/String.c [] []
/src/zydis/build/../tools/ZydisFuzzReEncoding.c ['ZydisFuzzReEncoding'] []
/src/zydis/src/FormatterIntel.c [] []
/src/zydis/src/Generated/GetCcInfo.inc ['ZydisFuzzReEncoding', 'ZydisFuzzEncoder'] ['ZydisFuzzReEncoding', 'ZydisFuzzEncoder']
/src/zydis/include/Zydis/Internal/String.h [] []
/src/zydis/src/Utils.c ['ZydisFuzzDecoder', 'ZydisFuzzReEncoding', 'ZydisFuzzEncoder'] ['ZydisFuzzReEncoding', 'ZydisFuzzEncoder']
/src/zydis/include/Zydis/Internal/FormatterBase.h [] []
/src/zydis/src/EncoderData.c ['ZydisFuzzReEncoding', 'ZydisFuzzEncoder'] ['ZydisFuzzReEncoding', 'ZydisFuzzEncoder']
/src/zydis/src/FormatterATT.c [] []
/src/zydis/src/Mnemonic.c ['ZydisFuzzDecoder'] []
/src/zydis/build/../tools/ZydisFuzzDecoder.c ['ZydisFuzzDecoder'] []
/src/zydis/src/Encoder.c ['ZydisFuzzReEncoding', 'ZydisFuzzEncoder'] ['ZydisFuzzReEncoding', 'ZydisFuzzEncoder']
/src/zydis/src/FormatterBuffer.c ['ZydisFuzzDecoder'] []
/src/zydis/dependencies/zycore/include/Zycore/Format.h [] []
/src/zydis/src/DecoderData.c ['ZydisFuzzDecoder', 'ZydisFuzzReEncoding', 'ZydisFuzzEncoder'] ['ZydisFuzzReEncoding', 'ZydisFuzzEncoder']
/src/zydis/src/Generated/GetRelInfo.inc ['ZydisFuzzReEncoding', 'ZydisFuzzEncoder'] ['ZydisFuzzReEncoding', 'ZydisFuzzEncoder']
/src/zydis/src/SharedData.c ['ZydisFuzzDecoder', 'ZydisFuzzReEncoding', 'ZydisFuzzEncoder'] ['ZydisFuzzReEncoding', 'ZydisFuzzEncoder']
/src/zydis/build/../tools/ZydisFuzzShared.c ['ZydisFuzzDecoder', 'ZydisFuzzReEncoding', 'ZydisFuzzEncoder'] []
/src/zydis/src/Formatter.c ['ZydisFuzzDecoder'] ['ZydisFuzzDecoder']

Directories in report

Directory
/src/zydis/include/Zydis/Internal/
/src/zydis/src/
/src/zydis/build/../tools/
/src/zydis/src/Generated/
/src/zydis/dependencies/zycore/include/Zycore/