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: fuzz_gltf

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 1476 48.5%
gold [1:9] 51 1.67%
yellow [10:29] 93 3.06%
greenyellow [30:49] 4 0.13%
lawngreen 50+ 1414 46.5%
All colors 3038 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
1242 3269 8 :

['std::__1::basic_string , std::__1::allocator >::~basic_string()', 'tinygltf::ParseExtrasProperty(tinygltf::Value*, nlohmann::basic_json , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&)', 'tinygltf::detail::FindMember(nlohmann::basic_json , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&, char const*, nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>&)', 'tinygltf::ParseExtensionsProperty(std::__1::map , std::__1::allocator >, tinygltf::Value, std::__1::less , std::__1::allocator > >, std::__1::allocator , std::__1::allocator > const, tinygltf::Value> > >*, std::__1::basic_string , std::__1::allocator >*, nlohmann::basic_json , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&)', 'tinygltf::detail::GetValue(nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>&)', 'std::__1::basic_string , std::__1::allocator >::operator=[abi:ne180100](std::__1::basic_string , std::__1::allocator >&&)', 'tinygltf::detail::JsonToString(nlohmann::basic_json , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&, int)', 'nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>::iter_impl()']

1250 4462 tinygltf::ParseAnimationChannel(tinygltf::AnimationChannel*,std::__1::basic_string ,std::__1::allocator >*,nlohmann::basic_json ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::adl_serializer,std::__1::vector >>const&,bool) call site: 00000 /src/tinygltf/tests/fuzzer/build/../../../tiny_gltf.h:5508
1242 1936 6 :

['std::__1::basic_string , std::__1::allocator >::~basic_string()', 'tinygltf::detail::FindMember(nlohmann::basic_json , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&, char const*, nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>&)', 'tinygltf::detail::GetValue(nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>&)', 'std::__1::basic_string , std::__1::allocator >::operator=[abi:ne180100](std::__1::basic_string , std::__1::allocator >&&)', 'tinygltf::detail::JsonToString(nlohmann::basic_json , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&, int)', 'nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>::iter_impl()']

1244 1938 booltinygltf::ParseExtrasAndExtensions (tinygltf::Asset*,std::__1::basic_string ,std::__1::allocator >*,nlohmann::basic_json ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::adl_serializer,std::__1::vector >>const&,bool) call site: 00000 /src/tinygltf/tests/fuzzer/build/../../../tiny_gltf.h:4262
1242 1936 6 :

['std::__1::basic_string , std::__1::allocator >::~basic_string()', 'tinygltf::detail::FindMember(nlohmann::basic_json , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&, char const*, nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>&)', 'tinygltf::detail::GetValue(nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>&)', 'std::__1::basic_string , std::__1::allocator >::operator=[abi:ne180100](std::__1::basic_string , std::__1::allocator >&&)', 'tinygltf::detail::JsonToString(nlohmann::basic_json , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&, int)', 'nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>::iter_impl()']

1244 1938 booltinygltf::ParseExtrasAndExtensions (tinygltf::AudioSource*,std::__1::basic_string ,std::__1::allocator >*,nlohmann::basic_json ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::adl_serializer,std::__1::vector >>const&,bool) call site: 00000 /src/tinygltf/tests/fuzzer/build/../../../tiny_gltf.h:4262
1242 1936 6 :

['std::__1::basic_string , std::__1::allocator >::~basic_string()', 'tinygltf::detail::FindMember(nlohmann::basic_json , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&, char const*, nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>&)', 'tinygltf::detail::GetValue(nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>&)', 'std::__1::basic_string , std::__1::allocator >::operator=[abi:ne180100](std::__1::basic_string , std::__1::allocator >&&)', 'tinygltf::detail::JsonToString(nlohmann::basic_json , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&, int)', 'nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>::iter_impl()']

1244 1938 booltinygltf::ParseExtrasAndExtensions (tinygltf::Primitive*,std::__1::basic_string ,std::__1::allocator >*,nlohmann::basic_json ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::adl_serializer,std::__1::vector >>const&,bool) call site: 00000 /src/tinygltf/tests/fuzzer/build/../../../tiny_gltf.h:4262
1242 1936 6 :

['std::__1::basic_string , std::__1::allocator >::~basic_string()', 'tinygltf::detail::FindMember(nlohmann::basic_json , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&, char const*, nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>&)', 'tinygltf::detail::GetValue(nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>&)', 'std::__1::basic_string , std::__1::allocator >::operator=[abi:ne180100](std::__1::basic_string , std::__1::allocator >&&)', 'tinygltf::detail::JsonToString(nlohmann::basic_json , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&, int)', 'nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>::iter_impl()']

1244 1938 booltinygltf::ParseExtrasAndExtensions (tinygltf::Mesh*,std::__1::basic_string ,std::__1::allocator >*,nlohmann::basic_json ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::adl_serializer,std::__1::vector >>const&,bool) call site: 00000 /src/tinygltf/tests/fuzzer/build/../../../tiny_gltf.h:4262
1242 1936 6 :

['std::__1::basic_string , std::__1::allocator >::~basic_string()', 'tinygltf::detail::FindMember(nlohmann::basic_json , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&, char const*, nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>&)', 'tinygltf::detail::GetValue(nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>&)', 'std::__1::basic_string , std::__1::allocator >::operator=[abi:ne180100](std::__1::basic_string , std::__1::allocator >&&)', 'tinygltf::detail::JsonToString(nlohmann::basic_json , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&, int)', 'nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>::iter_impl()']

1244 1938 booltinygltf::ParseExtrasAndExtensions (tinygltf::Node*,std::__1::basic_string ,std::__1::allocator >*,nlohmann::basic_json ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::adl_serializer,std::__1::vector >>const&,bool) call site: 00000 /src/tinygltf/tests/fuzzer/build/../../../tiny_gltf.h:4262
1242 1936 6 :

['std::__1::basic_string , std::__1::allocator >::~basic_string()', 'tinygltf::detail::FindMember(nlohmann::basic_json , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&, char const*, nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>&)', 'tinygltf::detail::GetValue(nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>&)', 'std::__1::basic_string , std::__1::allocator >::operator=[abi:ne180100](std::__1::basic_string , std::__1::allocator >&&)', 'tinygltf::detail::JsonToString(nlohmann::basic_json , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&, int)', 'nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>::iter_impl()']

1244 1938 booltinygltf::ParseExtrasAndExtensions (tinygltf::Scene*,std::__1::basic_string ,std::__1::allocator >*,nlohmann::basic_json ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::adl_serializer,std::__1::vector >>const&,bool) call site: 00000 /src/tinygltf/tests/fuzzer/build/../../../tiny_gltf.h:4262
1242 1936 6 :

['std::__1::basic_string , std::__1::allocator >::~basic_string()', 'tinygltf::detail::FindMember(nlohmann::basic_json , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&, char const*, nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>&)', 'tinygltf::detail::GetValue(nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>&)', 'std::__1::basic_string , std::__1::allocator >::operator=[abi:ne180100](std::__1::basic_string , std::__1::allocator >&&)', 'tinygltf::detail::JsonToString(nlohmann::basic_json , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&, int)', 'nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>::iter_impl()']

1244 1938 booltinygltf::ParseExtrasAndExtensions (tinygltf::PbrMetallicRoughness*,std::__1::basic_string ,std::__1::allocator >*,nlohmann::basic_json ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::adl_serializer,std::__1::vector >>const&,bool) call site: 00000 /src/tinygltf/tests/fuzzer/build/../../../tiny_gltf.h:4262
1242 1936 6 :

['std::__1::basic_string , std::__1::allocator >::~basic_string()', 'tinygltf::detail::FindMember(nlohmann::basic_json , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&, char const*, nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>&)', 'tinygltf::detail::GetValue(nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>&)', 'std::__1::basic_string , std::__1::allocator >::operator=[abi:ne180100](std::__1::basic_string , std::__1::allocator >&&)', 'tinygltf::detail::JsonToString(nlohmann::basic_json , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&, int)', 'nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>::iter_impl()']

1244 1938 booltinygltf::ParseExtrasAndExtensions (tinygltf::NormalTextureInfo*,std::__1::basic_string ,std::__1::allocator >*,nlohmann::basic_json ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::adl_serializer,std::__1::vector >>const&,bool) call site: 00000 /src/tinygltf/tests/fuzzer/build/../../../tiny_gltf.h:4262
1242 1936 6 :

['std::__1::basic_string , std::__1::allocator >::~basic_string()', 'tinygltf::detail::FindMember(nlohmann::basic_json , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&, char const*, nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>&)', 'tinygltf::detail::GetValue(nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>&)', 'std::__1::basic_string , std::__1::allocator >::operator=[abi:ne180100](std::__1::basic_string , std::__1::allocator >&&)', 'tinygltf::detail::JsonToString(nlohmann::basic_json , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&, int)', 'nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>::iter_impl()']

1244 1938 booltinygltf::ParseExtrasAndExtensions (tinygltf::OcclusionTextureInfo*,std::__1::basic_string ,std::__1::allocator >*,nlohmann::basic_json ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::adl_serializer,std::__1::vector >>const&,bool) call site: 00000 /src/tinygltf/tests/fuzzer/build/../../../tiny_gltf.h:4262
1242 1936 6 :

['std::__1::basic_string , std::__1::allocator >::~basic_string()', 'tinygltf::detail::FindMember(nlohmann::basic_json , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&, char const*, nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>&)', 'tinygltf::detail::GetValue(nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>&)', 'std::__1::basic_string , std::__1::allocator >::operator=[abi:ne180100](std::__1::basic_string , std::__1::allocator >&&)', 'tinygltf::detail::JsonToString(nlohmann::basic_json , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&, int)', 'nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>::iter_impl()']

1244 1938 booltinygltf::ParseExtrasAndExtensions (tinygltf::TextureInfo*,std::__1::basic_string ,std::__1::allocator >*,nlohmann::basic_json ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::adl_serializer,std::__1::vector >>const&,bool) call site: 00000 /src/tinygltf/tests/fuzzer/build/../../../tiny_gltf.h:4262
1242 1936 6 :

['std::__1::basic_string , std::__1::allocator >::~basic_string()', 'tinygltf::detail::FindMember(nlohmann::basic_json , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&, char const*, nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>&)', 'tinygltf::detail::GetValue(nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>&)', 'std::__1::basic_string , std::__1::allocator >::operator=[abi:ne180100](std::__1::basic_string , std::__1::allocator >&&)', 'tinygltf::detail::JsonToString(nlohmann::basic_json , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&, int)', 'nlohmann::detail::iter_impl , std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const>::iter_impl()']

1244 1938 booltinygltf::ParseExtrasAndExtensions (tinygltf::Material*,std::__1::basic_string ,std::__1::allocator >*,nlohmann::basic_json ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::adl_serializer,std::__1::vector >>const&,bool) call site: 00000 /src/tinygltf/tests/fuzzer/build/../../../tiny_gltf.h:4262

Runtime coverage analysis

Covered functions
468
Functions that are reachable but not covered
314
Reachable functions
994
Percentage of reachable functions covered
68.41%
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/tinygltf/tests/fuzzer/build/../fuzz_gltf.cc 2
/src/tinygltf/tests/fuzzer/build/../../../tiny_gltf.h 218
/src/tinygltf/tests/fuzzer/build/../../../json.hpp 281
/usr/local/bin/../include/c++/v1/__exception/exception.h 2

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
tinygltf::LoadImageData(tinygltf::Image*,int,std::__1::basic_string ,std::__1::allocator >*,std::__1::basic_string ,std::__1::allocator >*,int,int,unsignedcharconst*,int,void*) /src/tinygltf/tests/fuzzer/build/../../../tiny_gltf.h 9 ['N/A', 'int', 'N/A', 'N/A', 'int', 'int', 'N/A', 'int', 'N/A'] 15 0 1752 185 14 339 0 3078 3029
tinygltf::TinyGLTF::WriteGltfSceneToFile(tinygltf::Modelconst*,std::__1::basic_string ,std::__1::allocator >const&,bool,bool,bool,bool) /src/tinygltf/tests/fuzzer/build/../../../tiny_gltf.h 7 ['N/A', 'N/A', 'N/A', 'bool', 'bool', 'bool', 'bool'] 19 0 1525 177 163 540 0 2954 1951
tinygltf::WriteImageData(std::__1::basic_string ,std::__1::allocator >const*,std::__1::basic_string ,std::__1::allocator >const*,tinygltf::Imageconst*,bool,tinygltf::FsCallbacksconst*,tinygltf::URICallbacksconst*,std::__1::basic_string ,std::__1::allocator >*,void*) /src/tinygltf/tests/fuzzer/build/../../../tiny_gltf.h 8 ['N/A', 'N/A', 'N/A', 'bool', 'N/A', 'N/A', 'N/A', 'N/A'] 8 0 944 148 26 83 0 642 568
stbi_write_hdr /src/tinygltf/tests/fuzzer/build/../../../stb_image_write.h 5 ['N/A', 'int', 'int', 'int', 'N/A'] 4 0 146 13 6 38 0 145 109
tinygltf::GetFileSizeInBytes(unsignedlong*,std::__1::basic_string ,std::__1::allocator >*,std::__1::basic_string ,std::__1::allocator >const&,void*) /src/tinygltf/tests/fuzzer/build/../../../tiny_gltf.h 4 ['N/A', 'N/A', 'N/A', 'N/A'] 1 0 818 103 93 5 0 103 93
tinygltf::ReadWholeFile(std::__1::vector >*,std::__1::basic_string ,std::__1::allocator >*,std::__1::basic_string ,std::__1::allocator >const&,void*) /src/tinygltf/tests/fuzzer/build/../../../tiny_gltf.h 4 ['N/A', 'N/A', 'N/A', 'N/A'] 1 0 825 105 91 4 0 99 91
tinygltf::TinyGLTF::LoadBinaryFromFile(tinygltf::Model*,std::__1::basic_string ,std::__1::allocator >*,std::__1::basic_string ,std::__1::allocator >*,std::__1::basic_string ,std::__1::allocator >const&,unsignedint) /src/tinygltf/tests/fuzzer/build/../../../tiny_gltf.h 6 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'int'] 21 0 506 52 46 987 0 6797 90
tinygltf::TinyGLTF::WriteGltfSceneToStream(tinygltf::Modelconst*,std::__1::basic_ostream >&,bool,bool) /src/tinygltf/tests/fuzzer/build/../../../tiny_gltf.h 5 ['N/A', 'N/A', 'N/A', 'bool', 'bool'] 19 0 669 81 79 526 0 2838 79
tinygltf::Material::operator==(tinygltf::Materialconst&)const /src/tinygltf/tests/fuzzer/build/../../../tiny_gltf.h 2 ['N/A', 'N/A'] 6 0 190 38 16 58 0 133 71
stbi__idct_block(unsignedchar*,int,short*) /src/tinygltf/tests/fuzzer/build/../../../stb_image.h 3 ['N/A', 'int', 'N/A'] 1 0 1519 178 62 8 0 78 66

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

Functions statically reachable by fuzzers
83.0%
860 / 1040
Cyclomatic complexity statically reachable by fuzzers
92.0%
12811 / 13865

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 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

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/tinygltf/tests/fuzzer/build/../fuzz_gltf.cc

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=['tinygltf::ParseExtrasProperty(tinygltf::Value*, nlohmann::basic_json, std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&)', 'nlohmann::detail::primitive_iterator_t::set_end()', 'tinygltf::TinyGLTF::LoadFromString(tinygltf::Model*, std::__1::basic_string, std::__1::allocator >*, std::__1::basic_string, std::__1::allocator >*, char const*, unsigned int, std::__1::basic_string, std::__1::allocator > const&, unsigned int)', 'tinygltf::ParseNumberArrayProperty(std::__1::vector >*, std::__1::basic_string, std::__1::allocator >*, nlohmann::basic_json, std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&, std::__1::basic_string, std::__1::allocator > const&, bool, std::__1::basic_string, std::__1::allocator > const&)', 'nlohmann::basic_json, std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > >::json_value::json_value(double)', 'tinygltf::ParseCamera(tinygltf::Camera*, std::__1::basic_string, std::__1::allocator >*, nlohmann::basic_json, std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > > const&, bool)', 'nlohmann::basic_json, std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > >::operator=(nlohmann::basic_json, std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > >)', 'tinygltf::TinyGLTF::LoadFromString(tinygltf::Model*, std::__1::basic_string, std::__1::allocator >*, std::__1::basic_string, std::__1::allocator >*, char const*, unsigned int, std::__1::basic_string, std::__1::allocator > const&, unsigned int)', 'tinygltf::TinyGLTF::LoadFromString(tinygltf::Model*, std::__1::basic_string, std::__1::allocator >*, std::__1::basic_string, std::__1::allocator >*, char const*, unsigned int, std::__1::basic_string, std::__1::allocator > const&, unsigned int)', 'nlohmann::basic_json, std::__1::allocator >, bool, long, unsigned long, double, std::__1::allocator, nlohmann::adl_serializer, std::__1::vector > >::is_string() const']

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
nlohmann::basic_json ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::adl_serializer,std::__1::vector >>::json_value::json_value(nlohmann::detail::value_t) 60 17 28.33% ['fuzz_gltf']
nlohmann::detail::parser ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::adl_serializer,std::__1::vector >>,nlohmann::detail::iterator_input_adapter >::parse(bool,nlohmann::basic_json ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::adl_serializer,std::__1::vector >>&) 40 16 40.0% ['fuzz_gltf']
nlohmann::detail::iter_impl ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::adl_serializer,std::__1::vector >>const>::set_begin() 33 14 42.42% ['fuzz_gltf']
nlohmann::detail::iter_impl ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::adl_serializer,std::__1::vector >>const>::operator*()const 33 16 48.48% ['fuzz_gltf']
stbi__parse_png_file(stbi__png*,int,int) 160 11 6.875% ['fuzz_gltf']
load_jpeg_image(stbi__jpeg*,int*,int*,int*,int) 137 74 54.01% ['fuzz_gltf']
stbi__process_scan_header(stbi__jpeg*) 35 6 17.14% ['fuzz_gltf']
stbi__psd_info(stbi__context*,int*,int*,int*) 33 9 27.27% ['fuzz_gltf']
stbi__hdr_info(stbi__context*,int*,int*,int*) 38 12 31.57% ['fuzz_gltf']
tinygltf::ParseLight(tinygltf::Light*,std::__1::basic_string ,std::__1::allocator >*,nlohmann::basic_json ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::adl_serializer,std::__1::vector >>const&,bool) 36 4 11.11% ['fuzz_gltf']
tinygltf::ParseNumberArrayProperty(std::__1::vector >*,std::__1::basic_string ,std::__1::allocator >*,nlohmann::basic_json ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::adl_serializer,std::__1::vector >>const&,std::__1::basic_string ,std::__1::allocator >const&,bool,std::__1::basic_string ,std::__1::allocator >const&) 47 23 48.93% ['fuzz_gltf']
tinygltf::LoadExternalFile(std::__1::vector >*,std::__1::basic_string ,std::__1::allocator >*,std::__1::basic_string ,std::__1::allocator >*,std::__1::basic_string ,std::__1::allocator >const&,std::__1::basic_string ,std::__1::allocator >const&,bool,unsignedlong,bool,unsignedlong,tinygltf::FsCallbacks*) 78 15 19.23% ['fuzz_gltf']
tinygltf::ParseIntegerArrayProperty(std::__1::vector >*,std::__1::basic_string ,std::__1::allocator >*,nlohmann::basic_json ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::adl_serializer,std::__1::vector >>const&,std::__1::basic_string ,std::__1::allocator >const&,bool,std::__1::basic_string ,std::__1::allocator >const&) 47 23 48.93% ['fuzz_gltf']
tinygltf::TinyGLTF::LoadFromString(tinygltf::Model*,std::__1::basic_string ,std::__1::allocator >*,std::__1::basic_string ,std::__1::allocator >*,charconst*,unsignedint,std::__1::basic_string ,std::__1::allocator >const&,unsignedint)::$_10::operator()(nlohmann::basic_json ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::adl_serializer,std::__1::vector >>const&)const 63 19 30.15% ['fuzz_gltf']
tinygltf::ParseImage(tinygltf::Image*,int,std::__1::basic_string ,std::__1::allocator >*,std::__1::basic_string ,std::__1::allocator >*,nlohmann::basic_json ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::adl_serializer,std::__1::vector >>const&,bool,std::__1::basic_string ,std::__1::allocator >const&,unsignedlong,tinygltf::FsCallbacks*,tinygltf::URICallbacksconst*,std::__1::function ,std::__1::allocator >*,std::__1::basic_string ,std::__1::allocator >*,int,int,unsignedcharconst*,int,void*)>const&,void*) 106 55 51.88% ['fuzz_gltf']
tinygltf::ParseCamera(tinygltf::Camera*,std::__1::basic_string ,std::__1::allocator >*,nlohmann::basic_json ,std::__1::allocator >,bool,long,unsignedlong,double,std::__1::allocator,nlohmann::adl_serializer,std::__1::vector >>const&,bool) 66 14 21.21% ['fuzz_gltf']