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 571 58.0%
gold [1:9] 133 13.5%
yellow [10:29] 162 16.4%
greenyellow [30:49] 30 3.05%
lawngreen 50+ 87 8.85%
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
90 792 double rapidjson::internal::StrtodFullPrecision (double, int, char const*, unsigned long, unsigned long, int) call site: 00792 __cxa_guard_acquire
53 74 rapidjson::GenericValue , rapidjson::MemoryPoolAllocator >* rapidjson::internal::Stack ::PushUnsafe , rapidjson::MemoryPoolAllocator > >(unsigned long) call site: 00074 __assert_fail
48 131 char* rapidjson::internal::Stack ::Push (unsigned long) call site: 00131 __assert_fail
39 670 rapidjson::PrettyWriter , rapidjson::CrtAllocator>, rapidjson::UTF8 , rapidjson::UTF8 , rapidjson::CrtAllocator, 0u>::Double(double) call site: 00670 __assert_fail
34 244 rapidjson::GenericValue , rapidjson::MemoryPoolAllocator >* rapidjson::internal::Stack ::Top , rapidjson::MemoryPoolAllocator > >() call site: 00244 __assert_fail
32 403 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: 00403 __assert_fail
31 636 rapidjson::internal::dtoa(double, char*, int) call site: 00636 __assert_fail
19 211 rapidjson::GenericValue , rapidjson::MemoryPoolAllocator >::SetStringRaw(rapidjson::GenericStringRef , rapidjson::MemoryPoolAllocator &) call site: 00211 __clang_call_terminate
19 521 rapidjson::Writer , rapidjson::CrtAllocator>, rapidjson::UTF8 , rapidjson::UTF8 , rapidjson::CrtAllocator, 0u>::Level* rapidjson::internal::Stack ::Push , rapidjson::CrtAllocator>, rapidjson::UTF8 , rapidjson::UTF8 , rapidjson::CrtAllocator, 0u>::Level>(unsigned long) call site: 00521 __assert_fail
17 571 rapidjson::PrettyWriter , rapidjson::CrtAllocator>, rapidjson::UTF8 , rapidjson::UTF8 , rapidjson::CrtAllocator, 0u>::String(char const*, unsigned int, bool) call site: 00571 __assert_fail
17 944 void rapidjson::GenericReader , rapidjson::UTF8 , rapidjson::CrtAllocator>::SkipWhitespaceAndComments<32u, rapidjson::GenericStringStream > >(rapidjson::GenericStringStream >&) call site: 00944 __assert_fail
16 386 rapidjson::GenericDocument , rapidjson::MemoryPoolAllocator , rapidjson::CrtAllocator>::Double(double) call site: 00386 __assert_fail

Runtime coverage analysis

Covered functions
195
Functions that are reachable but not covered
254
Reachable functions
676
Percentage of reachable functions covered
62.43%
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=['double rapidjson::internal::StrtodFullPrecision(double, int, char const*, unsigned long, unsigned long, int)', 'rapidjson::GenericValue, rapidjson::MemoryPoolAllocator >* rapidjson::internal::Stack::PushUnsafe, rapidjson::MemoryPoolAllocator > >(unsigned long)', 'char* rapidjson::internal::Stack::Push(unsigned long)', 'rapidjson::PrettyWriter, rapidjson::CrtAllocator>, rapidjson::UTF8, rapidjson::UTF8, rapidjson::CrtAllocator, 0u>::Double(double)', 'rapidjson::GenericValue, rapidjson::MemoryPoolAllocator >* rapidjson::internal::Stack::Top, rapidjson::MemoryPoolAllocator > >()', '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::internal::dtoa(double, char*, int)', 'rapidjson::GenericValue, rapidjson::MemoryPoolAllocator >::SetStringRaw(rapidjson::GenericStringRef, rapidjson::MemoryPoolAllocator&)', 'rapidjson::Writer, rapidjson::CrtAllocator>, rapidjson::UTF8, rapidjson::UTF8, rapidjson::CrtAllocator, 0u>::Level* rapidjson::internal::Stack::Push, rapidjson::CrtAllocator>, rapidjson::UTF8, rapidjson::UTF8, rapidjson::CrtAllocator, 0u>::Level>(unsigned long)', 'rapidjson::PrettyWriter, rapidjson::CrtAllocator>, rapidjson::UTF8, rapidjson::UTF8, rapidjson::CrtAllocator, 0u>::String(char const*, unsigned int, bool)']

Runtime coverage analysis

This section shows analysis of runtime coverage data.

For futher technical details on how this section is generated, please see the Glossary .

Complex functions with low coverage

Func name Function total lines Lines covered at runtime percentage covered Reached by fuzzers
boolrapidjson::GenericValue ,rapidjson::MemoryPoolAllocator >::Accept ,rapidjson::CrtAllocator>,rapidjson::UTF8 ,rapidjson::UTF8 ,rapidjson::CrtAllocator,0u>>(rapidjson::PrettyWriter ,rapidjson::CrtAllocator>,rapidjson::UTF8 ,rapidjson::UTF8 ,rapidjson::CrtAllocator,0u>&)const 34 14 41.17% ['fuzzer']
voidrapidjson::GenericReader ,rapidjson::UTF8 ,rapidjson::CrtAllocator>::ParseArray<0u,rapidjson::GenericStringStream >,rapidjson::GenericDocument ,rapidjson::MemoryPoolAllocator ,rapidjson::CrtAllocator>>(rapidjson::GenericStringStream >&,rapidjson::GenericDocument ,rapidjson::MemoryPoolAllocator ,rapidjson::CrtAllocator>&) 39 12 30.76% ['fuzzer']
voidrapidjson::GenericReader ,rapidjson::UTF8 ,rapidjson::CrtAllocator>::ParseArray<16u,rapidjson::GenericStringStream >,rapidjson::GenericDocument ,rapidjson::MemoryPoolAllocator ,rapidjson::CrtAllocator>>(rapidjson::GenericStringStream >&,rapidjson::GenericDocument ,rapidjson::MemoryPoolAllocator ,rapidjson::CrtAllocator>&) 39 12 30.76% ['fuzzer']
voidrapidjson::GenericReader ,rapidjson::UTF8 ,rapidjson::CrtAllocator>::ParseArray<32u,rapidjson::GenericStringStream >,rapidjson::GenericDocument ,rapidjson::MemoryPoolAllocator ,rapidjson::CrtAllocator>>(rapidjson::GenericStringStream >&,rapidjson::GenericDocument ,rapidjson::MemoryPoolAllocator ,rapidjson::CrtAllocator>&) 39 12 30.76% ['fuzzer']
rapidjson::Writer ,rapidjson::CrtAllocator>,rapidjson::UTF8 ,rapidjson::UTF8 ,rapidjson::CrtAllocator,0u>::WriteString(charconst*,unsignedint) 68 27 39.70% ['fuzzer']

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

Directories in report

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