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

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 297 49.0%
gold [1:9] 96 15.8%
yellow [10:29] 85 14.0%
greenyellow [30:49] 3 0.49%
lawngreen 50+ 124 20.4%
All colors 605 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
280 280 3 :

['rapidjson::GenericStringBuffer , rapidjson::CrtAllocator>::Put(char)', 'rapidjson::Writer , rapidjson::CrtAllocator>, rapidjson::UTF8 , rapidjson::UTF8 , rapidjson::CrtAllocator, 0u>::Level* rapidjson::internal::Stack ::Top , rapidjson::CrtAllocator>, rapidjson::UTF8 , rapidjson::UTF8 , rapidjson::CrtAllocator, 0u>::Level>()', 'rapidjson::PrettyWriter , rapidjson::CrtAllocator>, rapidjson::UTF8 , rapidjson::UTF8 , rapidjson::CrtAllocator, 0u>::WriteIndent()']

280 280 rapidjson::PrettyWriter ,rapidjson::CrtAllocator>,rapidjson::UTF8 ,rapidjson::UTF8 ,rapidjson::CrtAllocator,0u>::PrettyPrefix(rapidjson::Type) call site: 00000 /src/rapidjson/include/rapidjson/prettywriter.h:210
32 32 1 :

['rapidjson::GenericDocument , rapidjson::MemoryPoolAllocator , rapidjson::CrtAllocator>::Int64(long)']

32 48 voidrapidjson::GenericReader ,rapidjson::UTF8 ,rapidjson::CrtAllocator>::ParseNumber<0u,rapidjson::GenericStringStream >,rapidjson::GenericDocument ,rapidjson::MemoryPoolAllocator ,rapidjson::CrtAllocator>>(rapidjson::GenericStringStream >&,rapidjson::GenericDocument ,rapidjson::MemoryPoolAllocator ,rapidjson::CrtAllocator>&) call site: 00000 /src/rapidjson/include/rapidjson/reader.h:1733
17 17 1 :

['rapidjson::GenericValue , rapidjson::MemoryPoolAllocator >::GenericValue(char const*, unsigned int)']

17 42 rapidjson::GenericDocument ,rapidjson::MemoryPoolAllocator ,rapidjson::CrtAllocator>::String(charconst*,unsignedint,bool) call site: 00000 /src/rapidjson/include/rapidjson/document.h:2837
0 29 1 :

['rapidjson::GenericDocument , rapidjson::MemoryPoolAllocator , rapidjson::CrtAllocator>::Double(double)']

0 45 voidrapidjson::GenericReader ,rapidjson::UTF8 ,rapidjson::CrtAllocator>::ParseNumber<0u,rapidjson::GenericStringStream >,rapidjson::GenericDocument ,rapidjson::MemoryPoolAllocator ,rapidjson::CrtAllocator>>(rapidjson::GenericStringStream >&,rapidjson::GenericDocument ,rapidjson::MemoryPoolAllocator ,rapidjson::CrtAllocator>&) call site: 00000 /src/rapidjson/include/rapidjson/reader.h:1728
0 13 2 :

['rapidjson::internal::Stack ::Resize(unsigned long)', 'rapidjson::internal::Stack ::GetSize() const']

0 13 rapidjson::internal::Stack ::ShrinkToFit() call site: 00000 /src/rapidjson/include/rapidjson/internal/stack.h:102
0 0 None 32 247 voidrapidjson::GenericReader ,rapidjson::UTF8 ,rapidjson::CrtAllocator>::ParseNumber<0u,rapidjson::GenericStringStream >,rapidjson::GenericDocument ,rapidjson::MemoryPoolAllocator ,rapidjson::CrtAllocator>>(rapidjson::GenericStringStream >&,rapidjson::GenericDocument ,rapidjson::MemoryPoolAllocator ,rapidjson::CrtAllocator>&) call site: 00000 /src/rapidjson/include/rapidjson/reader.h:1648
0 0 None 12 26 voidrapidjson::GenericReader ,rapidjson::UTF8 ,rapidjson::CrtAllocator>::ParseObject<0u,rapidjson::GenericStringStream >,rapidjson::GenericDocument ,rapidjson::MemoryPoolAllocator ,rapidjson::CrtAllocator>>(rapidjson::GenericStringStream >&,rapidjson::GenericDocument ,rapidjson::MemoryPoolAllocator ,rapidjson::CrtAllocator>&) call site: 00000 /src/rapidjson/include/rapidjson/reader.h:750
0 0 None 0 57 voidrapidjson::GenericReader ,rapidjson::UTF8 ,rapidjson::CrtAllocator>::ParseNumber<0u,rapidjson::GenericStringStream >,rapidjson::GenericDocument ,rapidjson::MemoryPoolAllocator ,rapidjson::CrtAllocator>>(rapidjson::GenericStringStream >&,rapidjson::GenericDocument ,rapidjson::MemoryPoolAllocator ,rapidjson::CrtAllocator>&) call site: 00000 /src/rapidjson/include/rapidjson/reader.h:1720
0 0 None 0 26 voidrapidjson::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: 00000 /src/rapidjson/include/rapidjson/reader.h:818
0 0 None 0 18 rapidjson::internal::StrtodNormalPrecision(double,int) call site: 00000 /src/rapidjson/include/rapidjson/internal/strtod.h:38
0 0 None 0 9 rapidjson::MemoryPoolAllocator ::~MemoryPoolAllocator() call site: 00000 /src/rapidjson/include/rapidjson/allocators.h:260
0 0 None 0 9 rapidjson::MemoryPoolAllocator ::Malloc(unsignedlong) call site: 00000 /src/rapidjson/include/rapidjson/allocators.h:323

Runtime coverage analysis

Covered functions
141
Functions that are reachable but not covered
190
Reachable functions
446
Percentage of reachable functions covered
57.4%
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/rapidjson-fuzzers/fuzzer.cpp 1
/src/rapidjson/include/rapidjson/document.h 54
/src/rapidjson/include/rapidjson/internal/stack.h 25
/src/rapidjson/include/rapidjson/error/error.h 5
/src/rapidjson/include/rapidjson/allocators.h 7
/src/rapidjson/include/rapidjson/stream.h 4
/src/rapidjson/include/rapidjson/reader.h 35
/src/rapidjson/include/rapidjson/encodings.h 3
/src/rapidjson/include/rapidjson/internal/strtod.h 2
/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 17
/src/rapidjson/include/rapidjson/internal/ieee754.h 3
/src/rapidjson/include/rapidjson/internal/dtoa.h 7
/src/rapidjson/include/rapidjson/internal/diyfp.h 8
/src/rapidjson/include/rapidjson/internal/clzll.h 1
/src/rapidjson/include/rapidjson/internal/itoa.h 5

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/rapidjson-fuzzers/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=['bool rapidjson::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', 'rapidjson::GenericValue, rapidjson::MemoryPoolAllocator >* rapidjson::internal::Stack::PushUnsafe, rapidjson::MemoryPoolAllocator > >(unsigned long)', 'rapidjson::GenericReader, rapidjson::UTF8, rapidjson::CrtAllocator>::StackStream::Put(char)', 'rapidjson::Writer, rapidjson::CrtAllocator>, rapidjson::UTF8, rapidjson::UTF8, rapidjson::CrtAllocator, 0u>::Flush()', 'rapidjson::GenericStringBuffer, rapidjson::CrtAllocator>::PutUnsafe(char)', 'rapidjson::PrettyWriter, rapidjson::CrtAllocator>, rapidjson::UTF8, rapidjson::UTF8, rapidjson::CrtAllocator, 0u>::PrettyPrefix(rapidjson::Type)', 'void rapidjson::GenericReader, rapidjson::UTF8, rapidjson::CrtAllocator>::ParseObject<0u, rapidjson::GenericStringStream >, rapidjson::GenericDocument, rapidjson::MemoryPoolAllocator, rapidjson::CrtAllocator> >(rapidjson::GenericStringStream >&, rapidjson::GenericDocument, rapidjson::MemoryPoolAllocator, rapidjson::CrtAllocator>&)', 'rapidjson::Writer, rapidjson::CrtAllocator>, rapidjson::UTF8, rapidjson::UTF8, rapidjson::CrtAllocator, 0u>::WriteString(char const*, unsigned int)', 'rapidjson::Writer, rapidjson::CrtAllocator>, rapidjson::UTF8, rapidjson::UTF8, rapidjson::CrtAllocator, 0u>::WriteString(char const*, unsigned int)', 'void rapidjson::GenericReader, rapidjson::UTF8, rapidjson::CrtAllocator>::ParseNumber<0u, rapidjson::GenericStringStream >, rapidjson::GenericDocument, rapidjson::MemoryPoolAllocator, rapidjson::CrtAllocator> >(rapidjson::GenericStringStream >&, rapidjson::GenericDocument, rapidjson::MemoryPoolAllocator, rapidjson::CrtAllocator>&)']

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 6 17.64% ['fuzzer']
rapidjson::PrettyWriter ,rapidjson::CrtAllocator>,rapidjson::UTF8 ,rapidjson::UTF8 ,rapidjson::CrtAllocator,0u>::PrettyPrefix(rapidjson::Type) 40 8 20.0% ['fuzzer']
voidrapidjson::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 &) 70 34 48.57% ['fuzzer']
voidrapidjson::GenericReader ,rapidjson::UTF8 ,rapidjson::CrtAllocator>::ParseObject<0u,rapidjson::GenericStringStream >,rapidjson::GenericDocument ,rapidjson::MemoryPoolAllocator ,rapidjson::CrtAllocator>>(rapidjson::GenericStringStream >&,rapidjson::GenericDocument ,rapidjson::MemoryPoolAllocator ,rapidjson::CrtAllocator>&) 52 22 42.30% ['fuzzer']
rapidjson::Writer ,rapidjson::CrtAllocator>,rapidjson::UTF8 ,rapidjson::UTF8 ,rapidjson::CrtAllocator,0u>::WriteString(charconst*,unsignedint) 67 26 38.80% ['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-fuzzers/fuzzer.cpp ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/writer.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/encodings.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/stringbuffer.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/internal/strtod.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/internal/dtoa.h ['fuzzer'] []
/src/rapidjson/include/rapidjson/allocators.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/stream.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/internal/itoa.h ['fuzzer'] []
/src/rapidjson/include/rapidjson/internal/diyfp.h ['fuzzer'] []
/src/rapidjson/include/rapidjson/internal/stack.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/error/error.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/internal/clzll.h ['fuzzer'] []
/src/rapidjson/include/rapidjson/prettywriter.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/reader.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/document.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/internal/pow10.h ['fuzzer'] ['fuzzer']
/src/rapidjson/include/rapidjson/internal/ieee754.h ['fuzzer'] []
/usr/local/bin/../include/c++/v1/stdexcept [] []

Directories in report

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