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: 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 320 32.5%
gold [1:9] 224 22.7%
yellow [10:29] 216 21.9%
greenyellow [30:49] 12 1.22%
lawngreen 50+ 211 21.4%
All colors 983 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
63 815 rapidjson::internal::DiyFp::ToDouble() const call site: 00815 __assert_fail
40 74 rapidjson::GenericValue , rapidjson::MemoryPoolAllocator >* rapidjson::internal::Stack ::PushUnsafe , rapidjson::MemoryPoolAllocator > >(unsigned long) call site: 00074 __assert_fail
30 588 rapidjson::PrettyWriter , rapidjson::CrtAllocator>, rapidjson::UTF8 , rapidjson::UTF8 , rapidjson::CrtAllocator, 0u>::EndObject(unsigned int) call site: 00588 __assert_fail
27 682 rapidjson::PrettyWriter , rapidjson::CrtAllocator>, rapidjson::UTF8 , rapidjson::UTF8 , rapidjson::CrtAllocator, 0u>::Int(int) call site: 00682 __assert_fail
12 140 void rapidjson::GenericReader , rapidjson::UTF8 , rapidjson::CrtAllocator>::ParseStringToStream<0u, rapidjson::UTF8 , rapidjson::UTF8 , rapidjson::GenericStringStream >, rapidjson::GenericReader , rapidjson::UTF8 , rapidjson::CrtAllocator>::StackStream >(rapidjson::GenericStringStream >&, rapidjson::GenericReader , rapidjson::UTF8 , rapidjson::CrtAllocator>::StackStream &) call site: 00140 __assert_fail
12 292 void rapidjson::GenericReader , rapidjson::UTF8 , rapidjson::CrtAllocator>::ParseArray<0u, rapidjson::GenericStringStream >, rapidjson::GenericDocument , rapidjson::MemoryPoolAllocator , rapidjson::CrtAllocator> >(rapidjson::GenericStringStream >&, rapidjson::GenericDocument , rapidjson::MemoryPoolAllocator , rapidjson::CrtAllocator>&) call site: 00292 __assert_fail
10 386 rapidjson::GenericDocument , rapidjson::MemoryPoolAllocator , rapidjson::CrtAllocator>::Double(double) call site: 00386
9 506 rapidjson::Writer , rapidjson::CrtAllocator>, rapidjson::UTF8 , rapidjson::UTF8 , rapidjson::CrtAllocator, 0u>::Flush() call site: 00506
8 945 void rapidjson::GenericReader , rapidjson::UTF8 , rapidjson::CrtAllocator>::SkipWhitespaceAndComments<32u, rapidjson::GenericStringStream > >(rapidjson::GenericStringStream >&) call site: 00945 __assert_fail
7 211 rapidjson::GenericValue , rapidjson::MemoryPoolAllocator >::SetStringRaw(rapidjson::GenericStringRef , rapidjson::MemoryPoolAllocator &) call site: 00211 __clang_call_terminate
7 559 rapidjson::Writer , rapidjson::CrtAllocator>, rapidjson::UTF8 , rapidjson::UTF8 , rapidjson::CrtAllocator, 0u>::WriteString(char const*, unsigned int) call site: 00559
5 53 void rapidjson::GenericReader , rapidjson::UTF8 , rapidjson::CrtAllocator>::ParseValue<0u, rapidjson::GenericStringStream >, rapidjson::GenericDocument , rapidjson::MemoryPoolAllocator , rapidjson::CrtAllocator> >(rapidjson::GenericStringStream >&, rapidjson::GenericDocument , rapidjson::MemoryPoolAllocator , rapidjson::CrtAllocator>&) call site: 00053 __assert_fail

Runtime coverage analysis

Covered functions
251
Functions that are reachable but not covered
152
Reachable functions
676
Percentage of reachable functions covered
77.51%
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/fuzzer.cpp 5
/src/rapidjson/include/rapidjson/document.h 87
/src/rapidjson/include/rapidjson/internal/stack.h 30
/src/rapidjson/include/rapidjson/error/error.h 5
/src/rapidjson/include/rapidjson/allocators.h 13
/src/rapidjson/include/rapidjson/stream.h 4
/src/rapidjson/include/rapidjson/reader.h 77
/src/rapidjson/include/rapidjson/encodings.h 3
/src/rapidjson/include/rapidjson/internal/strtod.h 8
/src/rapidjson/include/rapidjson/internal/pow10.h 1
/src/rapidjson/include/rapidjson/stringbuffer.h 12
/src/rapidjson/include/rapidjson/prettywriter.h 17
/src/rapidjson/include/rapidjson/writer.h 18
/src/rapidjson/include/rapidjson/internal/ieee754.h 13
/src/rapidjson/include/rapidjson/internal/dtoa.h 7
/src/rapidjson/include/rapidjson/internal/diyfp.h 12
/src/rapidjson/include/rapidjson/internal/clzll.h 1
/src/rapidjson/include/rapidjson/internal/itoa.h 5
/src/rapidjson/include/rapidjson/internal/biginteger.h 17

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/fuzzer.cpp

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=['rapidjson::internal::DiyFp::ToDouble() const', 'rapidjson::GenericValue, rapidjson::MemoryPoolAllocator >* rapidjson::internal::Stack::PushUnsafe, rapidjson::MemoryPoolAllocator > >(unsigned long)', 'rapidjson::PrettyWriter, rapidjson::CrtAllocator>, rapidjson::UTF8, rapidjson::UTF8, rapidjson::CrtAllocator, 0u>::EndObject(unsigned int)', 'rapidjson::PrettyWriter, rapidjson::CrtAllocator>, rapidjson::UTF8, rapidjson::UTF8, rapidjson::CrtAllocator, 0u>::Int(int)', 'void rapidjson::GenericReader, rapidjson::UTF8, rapidjson::CrtAllocator>::ParseStringToStream<0u, rapidjson::UTF8, rapidjson::UTF8, rapidjson::GenericStringStream >, rapidjson::GenericReader, rapidjson::UTF8, rapidjson::CrtAllocator>::StackStream >(rapidjson::GenericStringStream >&, rapidjson::GenericReader, rapidjson::UTF8, rapidjson::CrtAllocator>::StackStream&)', 'void rapidjson::GenericReader, rapidjson::UTF8, rapidjson::CrtAllocator>::ParseArray<0u, rapidjson::GenericStringStream >, rapidjson::GenericDocument, rapidjson::MemoryPoolAllocator, rapidjson::CrtAllocator> >(rapidjson::GenericStringStream >&, rapidjson::GenericDocument, rapidjson::MemoryPoolAllocator, rapidjson::CrtAllocator>&)', 'rapidjson::GenericDocument, rapidjson::MemoryPoolAllocator, rapidjson::CrtAllocator>::Double(double)', 'rapidjson::Writer, rapidjson::CrtAllocator>, rapidjson::UTF8, rapidjson::UTF8, rapidjson::CrtAllocator, 0u>::Flush()', 'void rapidjson::GenericReader, rapidjson::UTF8, rapidjson::CrtAllocator>::SkipWhitespaceAndComments<32u, rapidjson::GenericStringStream > >(rapidjson::GenericStringStream >&)', 'rapidjson::GenericValue, rapidjson::MemoryPoolAllocator >::SetStringRaw(rapidjson::GenericStringRef, rapidjson::MemoryPoolAllocator&)']

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/rapidjson/include/rapidjson/prettywriter.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/internal/biginteger.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/internal/dtoa.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/stringbuffer.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/internal/ieee754.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/encodings.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/allocators.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/error/error.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/internal/itoa.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/document.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/internal/stack.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/internal/strtod.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/writer.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/internal/pow10.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/internal/clzll.h ['fuzzer'] ['fuzzer']
/usr/local/bin/../include/c++/v1/stdexcept [] []
/src/fuzzer.cpp ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/stream.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/reader.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/internal/diyfp.h ['fuzzer'] ['fuzzer']

Directories in report

Directory
/usr/local/bin/../include/c++/v1/
/src/rapidjson/include/rapidjson/
/src/rapidjson/include/rapidjson/error/
/src/
/src/rapidjson/include/rapidjson/internal/