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

Fuzzer details

Fuzzer: json_parser_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 108 23.2%
gold [1:9] 3 0.64%
yellow [10:29] 8 1.72%
greenyellow [30:49] 2 0.43%
lawngreen 50+ 343 73.9%
All colors 464 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
729 729 8 :

['__cxa_allocate_exception', 'std::type_info::name() const', '__cxa_free_exception', '__cxa_throw', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', 'Poco::BadCastException::BadCastException(std::__1::basic_string , std::__1::allocator > const&, int)', 'std::__1::basic_string , std::__1::allocator > Poco::format , std::__1::allocator >, std::__1::basic_string , std::__1::allocator > >(char const*, std::__1::basic_string , std::__1::allocator >, std::__1::basic_string , std::__1::allocator >)', 'std::__1::basic_string , std::__1::allocator >::basic_string (char const*)']

729 729 Poco::SharedPtr >const&Poco::Dynamic::Var::extract >>()const call site: 00000 /src/poco/Foundation/include/Poco/Dynamic/Var.h:211
729 729 8 :

['__cxa_allocate_exception', 'std::type_info::name() const', '__cxa_free_exception', '__cxa_throw', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', 'Poco::BadCastException::BadCastException(std::__1::basic_string , std::__1::allocator > const&, int)', 'std::__1::basic_string , std::__1::allocator > Poco::format , std::__1::allocator >, std::__1::basic_string , std::__1::allocator > >(char const*, std::__1::basic_string , std::__1::allocator >, std::__1::basic_string , std::__1::allocator >)', 'std::__1::basic_string , std::__1::allocator >::basic_string (char const*)']

729 729 Poco::SharedPtr >const&Poco::Dynamic::Var::extract >>()const call site: 00000 /src/poco/Foundation/include/Poco/Dynamic/Var.h:211
215 215 1 :

['poco_double_conversion::StrtofTrimmed(poco_double_conversion::Vector , int)']

215 215 doublepoco_double_conversion::StringToDoubleConverter::StringToIeee (charconst*,int,bool,int*)const call site: 00000 /src/poco/Foundation/src/string-to-double.cc:739
16 16 1 :

['poco_double_conversion::isDigit(int, int)']

16 16 boolpoco_double_conversion::Advance (charconst**,unsignedshort,int,charconst*&) call site: 00000 /src/poco/Foundation/src/string-to-double.cc:191
14 14 4 :

['__cxa_allocate_exception', '__cxa_free_exception', '__cxa_throw', 'Poco::NullPointerException::NullPointerException(int)']

14 14 Poco::SharedPtr >::deref()const call site: 00000 /src/poco/Foundation/include/Poco/SharedPtr.h:433
14 14 4 :

['__cxa_allocate_exception', '__cxa_free_exception', '__cxa_throw', 'Poco::NullPointerException::NullPointerException(int)']

14 14 Poco::SharedPtr >::deref()const call site: 00000 /src/poco/Foundation/include/Poco/SharedPtr.h:433
14 14 4 :

['__cxa_allocate_exception', '__cxa_free_exception', '__cxa_throw', 'Poco::NullPointerException::NullPointerException(int)']

14 14 Poco::SharedPtr >::deref()const call site: 00000 /src/poco/Foundation/include/Poco/SharedPtr.h:433
8 16 2 :

['bool poco_double_conversion::(anonymous namespace)::ConsumeSubString (char const**, char const*, char const*, bool)', 'poco_double_conversion::Double::NaN()']

8 49 doublepoco_double_conversion::StringToDoubleConverter::StringToIeee (charconst*,int,bool,int*)const call site: 00000 /src/poco/Foundation/src/string-to-double.cc:496
2 2 1 :

['abort']

2 2 poco_double_conversion::Bignum::EnsureCapacity(int) call site: 00000 /src/poco/Foundation/src/bignum.h:115
0 8 1 :

['poco_double_conversion::Double::Infinity()']

8 49 doublepoco_double_conversion::StringToDoubleConverter::StringToIeee (charconst*,int,bool,int*)const call site: 00000 /src/poco/Foundation/src/string-to-double.cc:478
0 2 1 :

['poco_double_conversion::Bignum::Zero()']

0 2 poco_double_conversion::Bignum::MultiplyByUInt32(unsignedint) call site: 00000 /src/poco/Foundation/src/bignum.cc:254
0 2 1 :

['poco_double_conversion::Bignum::Zero()']

0 2 poco_double_conversion::Bignum::MultiplyByUInt64(unsignedlong) call site: 00000 /src/poco/Foundation/src/bignum.cc:283

Runtime coverage analysis

Covered functions
289
Functions that are reachable but not covered
85
Reachable functions
385
Percentage of reachable functions covered
77.92%
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/json_parse_fuzzer.cc 1
/src/poco/JSON/src/ParseHandler.cpp 1
/src/poco/JSON/src/Handler.cpp 2
/src/poco/Foundation/src/Var.cpp 4
/src/poco/Foundation/include/Poco/Any.h 7
/src/poco/Foundation/include/Poco/SharedPtr.h 13
/src/poco/Foundation/src/AtomicCounter.cpp 2
/src/poco/JSON/src/Parser.cpp 2
/src/poco/JSON/src/ParserImpl.cpp 9
/src/poco/Foundation/include/Poco/AtomicCounter.h 2
/src/poco/JSON/include/Poco/JSON/Parser.h 1
/src/poco/JSON/src/JSONException.cpp 1
/src/poco/Foundation/src/Exception.cpp 9
/usr/local/bin/../include/c++/v1/exception 1
/src/poco/JSON/src/pdjson.c 32
/src/poco/Foundation/src/NumberParser.cpp 5
/src/poco/Foundation/src/NumericString.cpp 2
/src/poco/Foundation/include/Poco/String.h 3
/src/poco/Foundation/include/Poco/Ascii.h 4
/src/poco/Foundation/src/ieee.h 12
/src/poco/Foundation/src/string-to-double.h 1
/src/poco/Foundation/src/string-to-double.cc 16
/src/poco/Foundation/src/diy-fp.h 6
/src/poco/Foundation/src/utils.h 7
/src/poco/Foundation/src/strtod.h 1
/src/poco/Foundation/src/strtod.cc 10
/src/poco/Foundation/src/cached-powers.cc 1
/src/poco/Foundation/src/bignum.h 4
/src/poco/Foundation/src/bignum.cc 16
/src/poco/Foundation/include/Poco/FPEnvironment.h 2
/src/poco/Foundation/include/Poco/FPEnvironment_C99.h 2
/usr/local/bin/../include/c++/v1/math.h 4
/src/poco/Foundation/include/Poco/NumericString.h 3
/usr/include/ctype.h 1
/src/poco/JSON/include/Poco/JSON/ParserImpl.h 1
/src/poco/Foundation/include/Poco/Dynamic/Var.h 3

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
Poco::RegularExpression::match(std::__1::basic_string ,std::__1::allocator >const&,std::__1::basic_string ,std::__1::allocator >const&,int) /src/poco/Foundation/src/RegularExpression.cpp 3 ['class.std::__1::basic_string *', 'class.std::__1::basic_string *', 'int'] 8 0 36 5 5 125 0 4744 4700
Poco::Dynamic::Struct ,std::__1::allocator >,tsl::ordered_map ,std::__1::allocator >,Poco::Dynamic::Var,std::__1::hash ,std::__1::allocator >>,std::__1::equal_to ,std::__1::allocator >>,std::__1::allocator ,std::__1::allocator >,Poco::Dynamic::Var>>,std::__1::deque ,std::__1::allocator >,Poco::Dynamic::Var>,std::__1::allocator ,std::__1::allocator >,Poco::Dynamic::Var>>>>,tsl::ordered_set ,std::__1::allocator >,std::__1::hash ,std::__1::allocator >>,std::__1::equal_to ,std::__1::allocator >>,std::__1::allocator ,std::__1::allocator >>,std::__1::deque ,std::__1::allocator >,std::__1::allocator ,std::__1::allocator >>>>>Poco::JSON::Object::makeStructImpl ,std::__1::allocator >,tsl::ordered_map ,std::__1::allocator >,Poco::Dynamic::Var,std::__1::hash ,std::__1::allocator >>,std::__1::equal_to ,std::__1::allocator >>,std::__1::allocator ,std::__1::allocator >,Poco::Dynamic::Var>>,std::__1::deque ,std::__1::allocator >,Poco::Dynamic::Var>,std::__1::allocator ,std::__1::allocator >,Poco::Dynamic::Var>>>>,tsl::ordered_set ,std::__1::allocator >,std::__1::hash ,std::__1::allocator >>,std::__1::equal_to ,std::__1::allocator >>,std::__1::allocator ,std::__1::allocator >>,std::__1::deque ,std::__1::allocator >,std::__1::allocator ,std::__1::allocator >>>>>>(Poco::SharedPtr >const&) /src/poco/JSON/include/Poco/JSON/Object.h 2 ['class.Poco::Dynamic::Struct.39 *', 'class.Poco::SharedPtr.22 *'] 16 0 447 91 68 505 2 1424 1317
Poco::floatToStr(std::__1::basic_string ,std::__1::allocator >&,float,int,int,char,char) /src/poco/Foundation/src/NumericString.cpp 6 ['class.std::__1::basic_string *', 'float', 'int', 'int', 'char', 'char'] 11 0 105 23 9 241 0 542 393
Poco::JSON::Array::stringify(std::__1::basic_ostream >&,unsignedint,int)const /src/poco/JSON/src/Array.cpp 4 ['class.Poco::JSON::Array *', 'class.std::__1::basic_ostream *', 'int', 'int'] 14 0 195 38 14 368 7 1136 300
Poco::Dynamic::VarHolderImpl ,std::__1::allocator >>::convert(Poco::LocalDateTime&)const /src/poco/Foundation/include/Poco/Dynamic/VarHolder.h 2 ['class.Poco::Any::Holder.90 *', 'class.Poco::LocalDateTime *'] 8 0 97 20 15 137 0 342 249
Poco::Dynamic::Var::parseObject(std::__1::basic_string ,std::__1::allocator >const&,unsignedlong&) /src/poco/Foundation/src/Var.cpp 3 ['class.Poco::Dynamic::Var *', 'class.std::__1::basic_string *', 'size_t *'] 18 0 217 43 39 352 4 1014 219
floatpoco_double_conversion::StringToDoubleConverter::StringTo (unsignedshortconst*,int,int*)const /src/poco/Foundation/src/string-to-double.cc 4 ['class.poco_double_conversion::StringToDoubleConverter *', 'short *', 'int', 'int *'] 9 0 16 3 2 165 0 537 197

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

Functions statically reachable by fuzzers
23.0%
690 / 2984
Cyclomatic complexity statically reachable by fuzzers
44.0%
8370 / 19069

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 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/poco/Foundation/src/pcre2_study.c [] []
/src/poco/JSON/src/Stringifier.cpp [] []
/src/poco/Foundation/src/Format.cpp [] []
/src/poco/Foundation/src/pcre2_script_run.c [] []
/src/poco/Foundation/src/UnicodeConverter.cpp [] []
/src/poco/Foundation/src/double-to-string.cc [] []
/src/poco/Foundation/src/pcre2_auto_possess.c [] []
/src/poco/Foundation/src/RWLock.cpp [] []
/src/poco/JSON/src/ParserImpl.cpp ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/Foundation/src/pcre2_compile.c [] []
/src/poco/Foundation/src/Windows1250Encoding.cpp [] []
/src/poco/Foundation/include/Poco/UnicodeConverter.h [] []
/src/poco/Foundation/src/fixed-dtoa.cc [] []
/src/poco/Foundation/src/strtod.cc ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/JSON/src/Parser.cpp ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/Foundation/include/Poco/Format.h [] []
/src/poco/JSON/src/Handler.cpp ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/Foundation/src/UUID.cpp [] []
/src/poco/Foundation/include/Poco/ByteOrder.h [] []
/src/poco/Foundation/src/NumberFormatter.cpp [] []
/src/poco/JSON/src/pdjson.c ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/Foundation/src/TextConverter.cpp [] []
/src/poco/Foundation/include/Poco/ordered_map.h [] []
/src/poco/Foundation/include/Poco/Unicode.h [] []
/src/poco/Foundation/include/Poco/LocalDateTime.h [] []
/src/poco/Foundation/src/UTF8String.cpp [] []
/src/poco/Foundation/src/double-to-string.h [] []
/usr/local/bin/../include/c++/v1/math.h ['json_parser_fuzzer'] []
/src/poco/Foundation/include/Poco/ordered_hash.h [] []
/src/poco/Foundation/include/Poco/TextEncoding.h [] []
/src/poco/Foundation/src/Timezone.cpp [] []
/src/poco/Foundation/include/Poco/Dynamic/VarHolder.h [] []
/src/poco/Foundation/src/pcre2_match_data.c [] []
/src/poco/Foundation/include/Poco/Debugger.h [] []
/src/poco/Foundation/src/UTF8Encoding.cpp [] []
/src/poco/Foundation/include/Poco/TextIterator.h [] []
/src/poco/Foundation/src/RegularExpression.cpp [] []
/src/poco/Foundation/src/Latin9Encoding.cpp [] []
/src/poco/Foundation/src/DateTime.cpp [] []
/src/poco/Foundation/include/Poco/RWLock.h [] []
/src/poco/Foundation/src/JSONString.cpp [] []
/src/poco/Foundation/src/fast-dtoa.cc [] []
/src/poco/JSON/src/Object.cpp [] []
/src/poco/Foundation/src/bignum.cc ['json_parser_fuzzer'] ['json_parser_fuzzer']
/usr/local/bin/../include/c++/v1/exception ['json_parser_fuzzer'] []
/src/poco/Foundation/src/TextEncoding.cpp [] []
/src/poco/Foundation/src/Var.cpp ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/JSON/src/ParseHandler.cpp ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/Foundation/src/diy-fp.h ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/Foundation/src/AtomicCounter.cpp ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/Foundation/src/cached-powers.cc ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/Foundation/src/Unicode.cpp [] []
/src/poco/Foundation/src/pcre2_xclass.c [] []
/src/poco/Foundation/src/Timestamp.cpp [] []
/src/poco/Foundation/src/DateTimeFormat.cpp [] []
/src/poco/Foundation/include/Poco/Ascii.h ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/Foundation/src/UTF32Encoding.cpp [] []
/src/poco/Foundation/src/pcre2_match.c [] []
/src/poco/JSON/src/JSONException.cpp ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/Foundation/include/Poco/Timestamp.h [] []
/src/poco/Foundation/include/Poco/Timespan.h [] []
/src/poco/Foundation/src/Windows1251Encoding.cpp [] []
/src/poco/Foundation/src/ASCIIEncoding.cpp [] []
/src/poco/Foundation/src/TextIterator.cpp [] []
/src/poco/Foundation/include/Poco/FPEnvironment.h ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/Foundation/src/string-to-double.h ['json_parser_fuzzer'] ['json_parser_fuzzer']
/usr/local/bin/../include/c++/v1/stdexcept [] []
/src/poco/Foundation/src/NumberParser.cpp ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/Foundation/include/Poco/NumericString.h ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/Foundation/include/Poco/UTFString.h [] []
/src/poco/Foundation/include/Poco/Buffer.h [] []
/src/poco/Foundation/src/Debugger.cpp [] []
/src/poco/Foundation/src/pcre2_error.c [] []
/src/poco/Foundation/include/Poco/Types.h [] []
/src/poco/Foundation/src/Bugcheck.cpp [] []
/src/poco/Foundation/src/pcre2_extuni.c [] []
/src/poco/Foundation/include/Poco/Dynamic/Struct.h [] []
/src/json_parse_fuzzer.cc ['json_parser_fuzzer'] ['json_parser_fuzzer']
/usr/local/bin/../include/c++/v1/initializer_list [] []
/src/poco/Foundation/include/Poco/RWLock_POSIX.h [] []
/src/poco/Foundation/src/Latin2Encoding.cpp [] []
/src/poco/Foundation/src/VarHolder.cpp [] []
/src/poco/Foundation/src/Timespan.cpp [] []
/src/poco/JSON/include/Poco/JSON/ParserImpl.h ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/JSON/include/Poco/JSON/Object.h [] []
/src/poco/Foundation/src/RWLock_POSIX.cpp [] []
/usr/include/ctype.h ['json_parser_fuzzer'] []
/src/poco/Foundation/src/utils.h ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/Foundation/src/pcre2_find_bracket.c [] []
/src/poco/Foundation/src/pcre2_context.c [] []
/src/poco/Foundation/include/Poco/FPEnvironment_C99.h ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/Foundation/include/Poco/Any.h ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/Foundation/src/Timezone_UNIX.cpp [] []
/src/poco/Foundation/include/Poco/AtomicCounter.h ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/Foundation/include/Poco/NumberFormatter.h [] []
/src/poco/Foundation/src/StreamCopier.cpp [] []
/src/poco/Foundation/src/string-to-double.cc ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/Foundation/src/Exception.cpp ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/Foundation/src/ieee.h ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/Foundation/src/pcre2_newline.c [] []
/src/poco/Foundation/src/pcre2_ord2utf.c [] []
/src/poco/Foundation/include/Poco/DateTime.h [] []
/src/poco/Foundation/include/Poco/Dynamic/Var.h ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/Foundation/src/strtod.h ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/Foundation/include/Poco/SharedPtr.h ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/Foundation/src/UTF16Encoding.cpp [] []
/src/poco/Foundation/include/Poco/UTF32Encoding.h [] []
/src/poco/JSON/include/Poco/JSON/Array.h [] []
/src/poco/Foundation/src/LocalDateTime.cpp [] []
/src/poco/Foundation/src/DateTimeParser.cpp [] []
/src/poco/Foundation/src/pcre2_pattern_info.c [] []
/src/poco/Foundation/include/Poco/RegularExpression.h [] []
/src/poco/Foundation/src/bignum.h ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/Foundation/src/NumericString.cpp ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/Foundation/src/Windows1252Encoding.cpp [] []
/src/poco/JSON/src/Array.cpp [] []
/src/poco/Foundation/include/Poco/ordered_set.h [] []
/src/poco/Foundation/src/pcre2_string_utils.c [] []
/src/poco/Foundation/src/Latin1Encoding.cpp [] []
/src/poco/Foundation/src/pcre2_substring.c [] []
/src/poco/Foundation/src/pcre2_valid_utf.c [] []
/src/poco/JSON/include/Poco/JSON/Parser.h ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/Foundation/include/Poco/String.h ['json_parser_fuzzer'] ['json_parser_fuzzer']
/src/poco/JSON/include/Poco/JSON/ParseHandler.h [] []
/src/poco/Foundation/src/bignum-dtoa.cc [] []

Directories in report

Directory
/src/poco/Foundation/src/
/src/poco/Foundation/include/Poco/
/src/
/src/poco/JSON/include/Poco/JSON/
/usr/include/
/src/poco/JSON/src/
/usr/local/bin/../include/c++/v1/
/src/poco/Foundation/include/Poco/Dynamic/