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

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 5.30%
gold [1:9] 1 0.40%
yellow [10:29] 2 0.81%
greenyellow [30:49] 2 0.81%
lawngreen 50+ 227 92.6%
All colors 245 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
2 122 SafeProcessCommands call site: 00122 SafeDecodeSymbol
2 125 SafeProcessCommands call site: 00125 SafeDecodeSymbol
1 3 woff2::ComputeWOFF2FinalSize(unsigned char const*, unsigned long) call site: 00003
1 5 woff2::ComputeWOFF2FinalSize(unsigned char const*, unsigned long) call site: 00005 ntohl
1 7 LLVMFuzzerTestOneInput call site: 00007
1 16 woff2::(anonymous namespace)::ReadWOFF2Header(unsigned char const*, unsigned long, woff2::(anonymous namespace)::WOFF2Header*) call site: 00016 ntohs
1 97 BrotliDecoderDecompressStream call site: 00097 SafeDecodeSymbol
1 104 DecodeContextMap call site: 00104 BrotliMaxDistanceSymbol
1 128 SafeProcessCommands call site: 00128 SafeDecodeSymbol
1 134 BrotliDecoderDecompressStream call site: 00134 SaveErrorCode
1 243 LLVMFuzzerTestOneInput call site: 00243

Runtime coverage analysis

Covered functions
147
Functions that are reachable but not covered
15
Reachable functions
147
Percentage of reachable functions covered
89.8%
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
/src/woff2/src/convert_woff2ttf_fuzzer_new_entry.cc 1
/src/woff2/src/woff2_dec.cc 27
/src/woff2/src/./buffer.h 10
/src/woff2/src/woff2_out.cc 1
/src/woff2/./include/woff2/output.h 3
/src/woff2/src/variable_length.cc 2
/src/woff2/src/woff2_common.cc 2
/src/woff2/src/./round.h 2
/src/woff2/src/./store_bytes.h 3
/src/woff2/brotli/c/dec/decode.c 31
/src/woff2/brotli/c/dec/state.c 5
/src/woff2/brotli/c/dec/bit_reader.c 2
/src/woff2/brotli/c/common/dictionary.c 1
/src/woff2/brotli/c/common/transform.c 3
/src/woff2/brotli/c/dec/huffman.c 3

Fuzzer: convert_woff2ttf_fuzzer

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 5.37%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 3 1.23%
lawngreen 50+ 226 93.3%
All colors 242 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
2 119 SafeProcessCommands call site: 00119 SafeDecodeSymbol
2 122 SafeProcessCommands call site: 00122 SafeDecodeSymbol
1 1 LLVMFuzzerTestOneInput call site: 00001
1 9 woff2::(anonymous namespace)::ReadWOFF2Header(unsigned char const*, unsigned long, woff2::(anonymous namespace)::WOFF2Header*) call site: 00009 ntohl
1 12 woff2::(anonymous namespace)::ReadWOFF2Header(unsigned char const*, unsigned long, woff2::(anonymous namespace)::WOFF2Header*) call site: 00012 ntohs
1 14 woff2::(anonymous namespace)::ReadWOFF2Header(unsigned char const*, unsigned long, woff2::(anonymous namespace)::WOFF2Header*) call site: 00014
1 94 BrotliDecoderDecompressStream call site: 00094 SafeDecodeSymbol
1 101 DecodeContextMap call site: 00101 BrotliMaxDistanceSymbol
1 125 SafeProcessCommands call site: 00125 SafeDecodeSymbol
1 131 BrotliDecoderDecompressStream call site: 00131 SaveErrorCode
1 240 LLVMFuzzerTestOneInput call site: 00240

Runtime coverage analysis

Covered functions
147
Functions that are reachable but not covered
15
Reachable functions
147
Percentage of reachable functions covered
89.8%
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
/src/woff2/src/convert_woff2ttf_fuzzer.cc 1
/src/woff2/src/woff2_out.cc 2
/src/woff2/./include/woff2/output.h 3
/src/woff2/src/woff2_dec.cc 26
/src/woff2/src/./buffer.h 10
/src/woff2/src/variable_length.cc 2
/src/woff2/src/woff2_common.cc 2
/src/woff2/src/./round.h 2
/src/woff2/src/./store_bytes.h 3
/src/woff2/brotli/c/dec/decode.c 31
/src/woff2/brotli/c/dec/state.c 5
/src/woff2/brotli/c/dec/bit_reader.c 2
/src/woff2/brotli/c/common/dictionary.c 1
/src/woff2/brotli/c/common/transform.c 3
/src/woff2/brotli/c/dec/huffman.c 3

Fuzz engine guidance

This sections provides heuristics that can be used as input to a fuzz engine when running a given fuzz target. The current focus is on providing input that is usable by libFuzzer.

/src/woff2/src/convert_woff2ttf_fuzzer_new_entry.cc

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['SafeProcessCommands', 'woff2::ComputeWOFF2FinalSize(unsigned char const*, unsigned long)', 'woff2::ComputeWOFF2FinalSize(unsigned char const*, unsigned long)', 'LLVMFuzzerTestOneInput', 'woff2::(anonymous namespace)::ReadWOFF2Header(unsigned char const*, unsigned long, woff2::(anonymous namespace)::WOFF2Header*)', 'BrotliDecoderDecompressStream', 'DecodeContextMap']

/src/woff2/src/convert_woff2ttf_fuzzer.cc

Dictionary

Use this with the libFuzzer -dict=DICT.file flag


Fuzzer function priority

Use one of these functions as input to libfuzzer with flag: -focus_function name

-focus_function=['SafeProcessCommands', 'LLVMFuzzerTestOneInput', 'woff2::(anonymous namespace)::ReadWOFF2Header(unsigned char const*, unsigned long, woff2::(anonymous namespace)::WOFF2Header*)', 'woff2::(anonymous namespace)::ReadWOFF2Header(unsigned char const*, unsigned long, woff2::(anonymous namespace)::WOFF2Header*)', 'woff2::(anonymous namespace)::ReadWOFF2Header(unsigned char const*, unsigned long, woff2::(anonymous namespace)::WOFF2Header*)', 'BrotliDecoderDecompressStream', 'DecodeContextMap']

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/woff2/src/woff2_dec.cc ['convert_woff2ttf_fuzzer_new_entry', 'convert_woff2ttf_fuzzer'] ['convert_woff2ttf_fuzzer_new_entry', 'convert_woff2ttf_fuzzer']
/src/woff2/src/woff2_out.cc ['convert_woff2ttf_fuzzer_new_entry', 'convert_woff2ttf_fuzzer'] ['convert_woff2ttf_fuzzer_new_entry', 'convert_woff2ttf_fuzzer']
/src/woff2/brotli/c/dec/state.c ['convert_woff2ttf_fuzzer_new_entry', 'convert_woff2ttf_fuzzer'] ['convert_woff2ttf_fuzzer_new_entry', 'convert_woff2ttf_fuzzer']
/src/woff2/src/./woff2_common.h [] []
/src/woff2/src/./store_bytes.h ['convert_woff2ttf_fuzzer_new_entry', 'convert_woff2ttf_fuzzer'] []
/src/woff2/src/./buffer.h ['convert_woff2ttf_fuzzer_new_entry', 'convert_woff2ttf_fuzzer'] []
/src/woff2/brotli/c/dec/bit_reader.c ['convert_woff2ttf_fuzzer_new_entry', 'convert_woff2ttf_fuzzer'] ['convert_woff2ttf_fuzzer_new_entry', 'convert_woff2ttf_fuzzer']
/src/woff2/src/woff2_common.cc ['convert_woff2ttf_fuzzer_new_entry', 'convert_woff2ttf_fuzzer'] ['convert_woff2ttf_fuzzer_new_entry', 'convert_woff2ttf_fuzzer']
/src/woff2/brotli/c/dec/decode.c ['convert_woff2ttf_fuzzer_new_entry', 'convert_woff2ttf_fuzzer'] ['convert_woff2ttf_fuzzer_new_entry', 'convert_woff2ttf_fuzzer']
/src/woff2/./include/woff2/output.h ['convert_woff2ttf_fuzzer_new_entry', 'convert_woff2ttf_fuzzer'] []
/src/woff2/brotli/c/dec/huffman.c ['convert_woff2ttf_fuzzer_new_entry', 'convert_woff2ttf_fuzzer'] ['convert_woff2ttf_fuzzer_new_entry', 'convert_woff2ttf_fuzzer']
/src/woff2/src/./round.h ['convert_woff2ttf_fuzzer_new_entry', 'convert_woff2ttf_fuzzer'] []
/src/woff2/src/convert_woff2ttf_fuzzer.cc ['convert_woff2ttf_fuzzer'] ['convert_woff2ttf_fuzzer']
/src/woff2/src/convert_woff2ttf_fuzzer_new_entry.cc ['convert_woff2ttf_fuzzer_new_entry'] ['convert_woff2ttf_fuzzer_new_entry']
/src/woff2/src/variable_length.cc ['convert_woff2ttf_fuzzer_new_entry', 'convert_woff2ttf_fuzzer'] ['convert_woff2ttf_fuzzer_new_entry', 'convert_woff2ttf_fuzzer']
/src/woff2/brotli/c/common/dictionary.c ['convert_woff2ttf_fuzzer_new_entry', 'convert_woff2ttf_fuzzer'] ['convert_woff2ttf_fuzzer_new_entry', 'convert_woff2ttf_fuzzer']
/src/woff2/brotli/c/dec/./../common/platform.h [] []
/usr/local/bin/../include/c++/v1/stdexcept [] []
/src/woff2/brotli/c/common/transform.c ['convert_woff2ttf_fuzzer_new_entry', 'convert_woff2ttf_fuzzer'] ['convert_woff2ttf_fuzzer_new_entry', 'convert_woff2ttf_fuzzer']

Directories in report

Directory
/usr/local/bin/../include/c++/v1/
/src/woff2/brotli/c/dec/
/src/woff2/src/./
/src/woff2/src/
/src/woff2/./include/woff2/
/src/woff2/brotli/c/dec/./../common/
/src/woff2/brotli/c/common/