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

Fuzzer details

Fuzzer: fuzz_mapper

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 18 27.6%
gold [1:9] 6 9.23%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 41 63.0%
All colors 65 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
0 4 1 :

['oatpp::data::mapping::type::Void::Void(oatpp::data::mapping::type::Type const*)']

0 4 oatpp::parser::json::mapping::Deserializer::deserializeObject(oatpp::parser::json::mapping::Deserializer*,oatpp::parser::Caret&,oatpp::data::mapping::type::Typeconst*) call site: 00000 /src/oatpp/src/oatpp/parser/json/mapping/Deserializer.cpp:407
0 0 None 109 649 oatpp::parser::json::mapping::Deserializer::deserializeObject(oatpp::parser::json::mapping::Deserializer*,oatpp::parser::Caret&,oatpp::data::mapping::type::Typeconst*) call site: 00000 /src/oatpp/src/oatpp/parser/json/mapping/Deserializer.cpp:441
0 0 None 19 78 oatpp::parser::json::mapping::Deserializer::deserialize(oatpp::parser::Caret&,oatpp::data::mapping::type::Typeconst*) call site: 00000 /src/oatpp/src/oatpp/parser/json/mapping/Deserializer.cpp:495
0 0 None 8 48 oatpp::data::mapping::type::__class::Object ::initProperties() call site: 00000 /src/oatpp/build/../src/oatpp/core/data/mapping/type/Object.hpp:276
0 0 None 0 50 oatpp::parser::json::Utils::calcUnescapedStringSize(charconst*,long,long&,long&) call site: 00000 /src/oatpp/src/oatpp/parser/json/Utils.cpp:108

Runtime coverage analysis

Covered functions
124
Functions that are reachable but not covered
32
Reachable functions
110
Percentage of reachable functions covered
70.91%
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.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
/src/oatpp/build/../fuzzers/oatpp/parser/json/mapping/ObjectMapper.cpp 3
/src/oatpp/build/../src/oatpp/core/data/mapping/type/Primitive.hpp 2
/src/oatpp/build/../src/oatpp/core/data/mapping/type/Type.hpp 6
/src/oatpp/src/oatpp/core/data/mapping/type/Primitive.cpp 2
/src/oatpp/src/oatpp/core/data/mapping/type/Type.cpp 3
/src/oatpp/src/oatpp/core/data/mapping/type/./Type.hpp 4
/src/oatpp/src/oatpp/parser/json/mapping/ObjectMapper.cpp 1
/src/oatpp/src/oatpp/core/base/Countable.cpp 2
/src/oatpp/src/oatpp/core/base/Environment.cpp 2
/src/oatpp/src/oatpp/parser/json/mapping/ObjectMapper.hpp 1
/src/oatpp/src/oatpp/core/data/mapping/ObjectMapper.hpp 1
/src/oatpp/src/oatpp/core/data/mapping/ObjectMapper.cpp 1
/src/oatpp/build/../src/oatpp/core/data/mapping/ObjectMapper.hpp 1
/src/oatpp/build/../src/oatpp/core/data/mapping/type/Object.hpp 6
/src/oatpp/src/oatpp/core/parser/Caret.cpp 4
/src/oatpp/src/oatpp/core/parser/ParsingError.cpp 1
/src/oatpp/src/oatpp/core/data/mapping/type/Primitive.hpp 1
/src/oatpp/build/../src/oatpp/parser/json/mapping/ObjectMapper.hpp 1

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
oatpp::parser::json::mapping::Deserializer::deserializeObject(oatpp::parser::json::mapping::Deserializer*,oatpp::parser::Caret&,oatpp::data::mapping::type::Typeconst*) /src/oatpp/src/oatpp/parser/json/mapping/Deserializer.cpp 4 ['class.oatpp::data::mapping::type::Void *', 'class.oatpp::parser::json::mapping::Deserializer *', 'class.oatpp::parser::Caret *', 'class.oatpp::data::mapping::type::Type *'] 4 0 581 121 98 142 0 417 368
oatpp::parser::json::mapping::Serializer::serializeObject(oatpp::parser::json::mapping::Serializer*,oatpp::data::stream::ConsistentOutputStream*,oatpp::data::mapping::type::Voidconst&) /src/oatpp/src/oatpp/parser/json/mapping/Serializer.cpp 3 ['class.oatpp::parser::json::mapping::Serializer *', 'class.std::bad_array_new_length *', 'class.oatpp::data::mapping::type::Void *'] 5 0 342 60 55 121 0 304 228
oatpp::parser::json::mapping::Deserializer::deserializeAny(oatpp::parser::json::mapping::Deserializer*,oatpp::parser::Caret&,oatpp::data::mapping::type::Typeconst*) /src/oatpp/src/oatpp/parser/json/mapping/Deserializer.cpp 4 ['class.oatpp::data::mapping::type::Void *', 'class.oatpp::parser::json::mapping::Deserializer *', 'class.oatpp::parser::Caret *', 'class.oatpp::data::mapping::type::Type *'] 3 0 103 18 19 88 0 205 119
oatpp::parser::json::mapping::Deserializer::deserializeMap(oatpp::parser::json::mapping::Deserializer*,oatpp::parser::Caret&,oatpp::data::mapping::type::Typeconst*) /src/oatpp/src/oatpp/parser/json/mapping/Deserializer.cpp 4 ['class.oatpp::data::mapping::type::Void *', 'class.oatpp::parser::json::mapping::Deserializer *', 'class.oatpp::parser::Caret *', 'class.oatpp::data::mapping::type::Type *'] 4 0 310 76 60 111 0 316 97
oatpp::parser::json::Beautifier::write(voidconst*,long,oatpp::async::Action&) /src/oatpp/src/oatpp/parser/json/Beautifier.cpp 4 ['class.oatpp::parser::json::Beautifier *', 'char *', 'size_t ', 'class.oatpp::async::Action *'] 4 0 304 64 61 42 0 123 83
oatpp::data::stream::BufferOutputStream::flushToStreamAsync(std::__1::shared_ptr const&,std::__1::shared_ptr const&)::WriteDataCoroutine::act() /src/oatpp/src/oatpp/core/data/stream/BufferStream.cpp 2 ['class.oatpp::async::Action *', 'class.WriteDataCoroutine *'] 3 0 55 8 9 43 0 96 70
oatpp::data::mapping::type::__class::Object ::PolymorphicDispatcher::getProperties()const /src/oatpp/build/../src/oatpp/core/data/mapping/type/Object.hpp 1 ['class.oatpp::data::mapping::type::__class::Object ::PolymorphicDispatcher *'] 3 0 13 3 2 67 0 105 47
oatpp::data::stream::ReadCallback::readExactSizeDataAsyncInline(oatpp::data::buffer::InlineReadData&,oatpp::async::Action&&) /src/oatpp/src/oatpp/core/data/stream/Stream.cpp 4 ['class.oatpp::async::Action *', 'class.std::exception *', 'struct.oatpp::data::buffer::InlineWriteData *', 'class.oatpp::async::Action *'] 2 0 180 44 36 39 0 85 46
oatpp::data::mapping::type::String::equalsCI_ASCII(std::__1::basic_string ,std::__1::allocator >const&) /src/oatpp/src/oatpp/core/data/mapping/type/Primitive.cpp 2 ['class.oatpp::data::mapping::type::String *', 'class.std::__1::basic_string *'] 3 0 51 8 7 35 0 72 44
oatpp::data::mapping::type::__class::StandardMap ,std::__1::allocator >>,oatpp::data::mapping::type::String,oatpp::data::mapping::type::Any,oatpp::data::mapping::type::__class::PairList >::PolymorphicDispatcher::addItem(oatpp::data::mapping::type::Voidconst&,oatpp::data::mapping::type::Voidconst&,oatpp::data::mapping::type::Voidconst&)const /src/oatpp/src/oatpp/core/data/mapping/type/./Map.hpp 4 ['class.oatpp::data::mapping::type::__class::Object ::PolymorphicDispatcher *', 'class.oatpp::data::mapping::type::Void *', 'class.oatpp::data::mapping::type::Void *', 'class.oatpp::data::mapping::type::Void *'] 2 0 60 8 7 37 0 112 43

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

Functions statically reachable by fuzzers
26.0%
209 / 816
Cyclomatic complexity statically reachable by fuzzers
37.0%
1313 / 3520

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
[] []
/usr/include/x86_64-linux-gnu/bits/byteswap.h [] []
/src/oatpp/build/../src/oatpp/parser/json/mapping/./Serializer.hpp [] []
/src/oatpp/src/oatpp/core/data/mapping/type/PairList.cpp [] []
/src/oatpp/build/../src/oatpp/parser/json/mapping/./Deserializer.hpp [] []
/src/oatpp/src/oatpp/core/parser/Caret.cpp ['fuzz_mapper'] ['fuzz_mapper']
/src/oatpp/src/oatpp/core/data/mapping/type/Type.cpp ['fuzz_mapper'] ['fuzz_mapper']
/src/oatpp/src/oatpp/core/data/stream/BufferStream.cpp [] []
/src/oatpp/src/oatpp/encoding/Unicode.cpp [] []
/src/oatpp/src/oatpp/core/base/ObjectHandle.hpp [] []
/src/oatpp/src/oatpp/core/data/buffer/Processor.cpp [] []
/src/oatpp/src/oatpp/core/data/mapping/type/./Map.hpp [] []
/src/oatpp/src/oatpp/core/data/share/MemoryLabel.cpp [] []
/src/oatpp/src/oatpp/parser/json/mapping/ObjectMapper.cpp ['fuzz_mapper'] ['fuzz_mapper']
/src/oatpp/src/oatpp/core/data/mapping/type/./Collection.hpp [] []
/src/oatpp/src/oatpp/core/utils/String.cpp [] []
/src/oatpp/src/oatpp/parser/json/mapping/Serializer.hpp [] []
/src/oatpp/build/../fuzzers/oatpp/parser/json/mapping/ObjectMapper.cpp ['fuzz_mapper'] []
/src/oatpp/src/oatpp/parser/json/mapping/ObjectMapper.hpp ['fuzz_mapper'] ['fuzz_mapper']
/src/oatpp/src/oatpp/parser/json/Utils.cpp [] []
/src/oatpp/src/oatpp/parser/json/mapping/Serializer.cpp [] []
/src/oatpp/src/oatpp/core/async/Coroutine.hpp [] []
/src/oatpp/src/oatpp/core/data/buffer/IOBuffer.cpp [] []
/src/oatpp/src/oatpp/parser/json/Beautifier.cpp [] []
/src/oatpp/src/oatpp/core/data/mapping/type/Vector.cpp [] []
/src/oatpp/build/../src/oatpp/core/data/mapping/type/Type.hpp ['fuzz_mapper'] []
/src/oatpp/src/oatpp/core/parser/ParsingError.cpp ['fuzz_mapper'] ['fuzz_mapper']
/src/oatpp/src/oatpp/core/data/mapping/type/./Primitive.hpp [] ['fuzz_mapper']
/src/oatpp/src/oatpp/core/utils/Binary.cpp [] []
/src/oatpp/build/../src/oatpp/core/data/mapping/type/Object.hpp ['fuzz_mapper'] []
/src/oatpp/src/oatpp/core/data/mapping/type/Object.cpp [] []
/src/oatpp/src/oatpp/core/data/share/MemoryLabel.hpp [] []
/src/oatpp/src/oatpp/core/data/buffer/Processor.hpp [] []
/usr/local/bin/../include/c++/v1/stdexcept [] []
/src/oatpp/src/oatpp/core/base/Environment.hpp [] []
/src/oatpp/src/oatpp/core/concurrency/SpinLock.cpp [] []
/src/oatpp/src/oatpp/core/base/Environment.cpp ['fuzz_mapper'] ['fuzz_mapper']
/src/oatpp/src/oatpp/core/data/stream/BufferStream.hpp [] []
/src/oatpp/src/oatpp/core/data/mapping/type/Object.hpp [] []
/src/oatpp/src/oatpp/encoding/Hex.cpp [] []
/src/oatpp/src/oatpp/parser/json/mapping/Deserializer.hpp [] []
/src/oatpp/src/oatpp/core/data/stream/Stream.hpp [] []
/src/oatpp/src/oatpp/core/data/mapping/type/Primitive.hpp ['fuzz_mapper'] ['fuzz_mapper']
/src/oatpp/src/oatpp/core/async/Error.hpp [] []
/src/oatpp/src/oatpp/core/data/stream/Stream.cpp [] []
/src/oatpp/src/oatpp/core/data/mapping/type/List.cpp [] []
/src/oatpp/src/oatpp/core/data/stream/./Stream.hpp [] []
/src/oatpp/src/oatpp/core/data/mapping/type/./Any.hpp [] []
/src/oatpp/src/oatpp/core/base/Countable.cpp ['fuzz_mapper'] ['fuzz_mapper']
/usr/local/bin/../include/c++/v1/math.h [] []
/src/oatpp/src/oatpp/core/data/mapping/type/Enum.cpp [] []
/src/oatpp/src/oatpp/core/IODefinitions.hpp [] []
/src/oatpp/src/oatpp/core/data/mapping/ObjectMapper.hpp ['fuzz_mapper'] ['fuzz_mapper']
/src/oatpp/src/oatpp/core/data/mapping/type/./Object.hpp [] []
/src/oatpp/src/oatpp/core/data/mapping/type/Primitive.cpp ['fuzz_mapper'] ['fuzz_mapper']
/src/oatpp/src/oatpp/core/data/mapping/type/./PairList.hpp [] []
/src/oatpp/src/oatpp/encoding/Hex.hpp [] []
/src/oatpp/src/oatpp/core/data/mapping/type/UnorderedSet.cpp [] []
/src/oatpp/build/../src/oatpp/core/data/mapping/type/Primitive.hpp ['fuzz_mapper'] ['fuzz_mapper']
/src/oatpp/build/../src/oatpp/core/data/mapping/ObjectMapper.hpp ['fuzz_mapper'] ['fuzz_mapper']
/src/oatpp/src/oatpp/core/async/Error.cpp [] []
/src/oatpp/src/oatpp/core/utils/ConversionUtils.cpp [] []
/src/oatpp/src/oatpp/core/data/mapping/type/UnorderedMap.cpp [] []
/src/oatpp/src/oatpp/core/data/mapping/type/Any.cpp [] []
/src/oatpp/src/oatpp/parser/json/mapping/Deserializer.cpp [] []
/src/oatpp/src/oatpp/core/data/share/LazyStringMap.hpp [] []
/src/oatpp/src/oatpp/core/data/mapping/ObjectMapper.cpp ['fuzz_mapper'] ['fuzz_mapper']
/src/oatpp/build/../src/oatpp/core/parser/ParsingError.hpp [] []
/src/oatpp/src/oatpp/core/async/Coroutine.cpp [] []
/src/oatpp/src/oatpp/core/data/mapping/type/./Type.hpp ['fuzz_mapper'] []
/src/oatpp/src/oatpp/parser/json/Beautifier.hpp [] []
/src/oatpp/src/oatpp/core/data/mapping/type/./List.hpp [] []

Directories in report

Directory
/src/oatpp/src/oatpp/core/data/stream/
/src/oatpp/src/oatpp/core/data/buffer/
/src/oatpp/build/../src/oatpp/core/parser/
/src/oatpp/src/oatpp/core/utils/
/src/oatpp/src/oatpp/parser/json/mapping/
/usr/include/x86_64-linux-gnu/bits/
/src/oatpp/build/../src/oatpp/core/data/mapping/
/src/oatpp/src/oatpp/encoding/
/src/oatpp/src/oatpp/core/data/share/
/src/oatpp/src/oatpp/core/concurrency/
/src/oatpp/src/oatpp/core/base/
/src/oatpp/build/../src/oatpp/core/data/mapping/type/
/src/oatpp/src/oatpp/core/async/
/src/oatpp/src/oatpp/core/
/src/oatpp/build/../src/oatpp/parser/json/mapping/./
/usr/local/bin/../include/c++/v1/
/src/oatpp/src/oatpp/core/data/mapping/type/
/src/oatpp/src/oatpp/core/data/stream/./
/src/oatpp/src/oatpp/core/data/mapping/
/src/oatpp/src/oatpp/core/parser/
/src/oatpp/build/../fuzzers/oatpp/parser/json/mapping/
/src/oatpp/src/oatpp/parser/json/
/src/oatpp/src/oatpp/core/data/mapping/type/./