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: uri_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 2 1.42%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 138 98.5%
All colors 140 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
1 3 fastgltf::internal::parseURI(std::__1::basic_string_view >) call site: 00003
1 10 fastgltf::internal::get(std::__1::basic_string_view >, fastgltf::internal::URIRange) call site: 00010 __cxa_begin_catch

Runtime coverage analysis

Covered functions
30
Functions that are reachable but not covered
12
Reachable functions
71
Percentage of reachable functions covered
83.1%
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/fastgltf/tests/fuzz/uri_fuzzer.cpp 2
/src/fastgltf/src/uri.cpp 8
/src/fastgltf/include/fastgltf/uri.hpp 22
/src/fastgltf/include/fastgltf/util.hpp 1

Fuzzer: gltf_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 987 18.3%
gold [1:9] 83 1.54%
yellow [10:29] 38 0.70%
greenyellow [30:49] 19 0.35%
lawngreen 50+ 4257 79.0%
All colors 5384 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
74 737 fastgltf::Parser::parsePhysicsJoints(simdjson::dom::array const&, fastgltf::Asset&) call site: 00737 _ZN8fastgltf14basic_optionalIfNS_15flagged_storageIfEEEC2IfQaasr3stdE18is_constructible_vIT_OTL0__E12is_none_of_vIu14__remove_cvrefIS6_ENSt3__110in_place_tENS0_IS5_T0_EEEEEOS5_
52 661 fastgltf::Parser::parseExtensions(simdjson::dom::object const&, fastgltf::Asset&) call site: 00661
41 5177 fastgltf::scoped_array {char [17]{(char)112, (char)104, (char)121, (char)115, (char)105, (char)99, (char)115, (char)77, (char)97, (char)116, (char)101, (char)114, (char)105, (char)97, (char)108, (char)115}}>::scoped_array(simdjson::fallback::builder::string_builder&) call site: 05177 _ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm15EEEtlA15_cLc115ELc116ELc97ELc116ELc105ELc99ELc70ELc114ELc105ELc99ELc116ELc105ELc111ELc110EEEEfEEvT0_
38 5295 fastgltf::scoped_array {char [7]{(char)100, (char)114, (char)105, (char)118, (char)101, (char)115}}>::scoped_array(simdjson::fallback::builder::string_builder&) call site: 05295 _ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm9EEEtlA9_cLc109ELc97ELc120ELc70ELc111ELc114ELc99ELc101EEEEfEEvT0_
29 838 simdjson::simdjson_result ::get_uint64() const call site: 00838
29 5219 fastgltf::scoped_array {char [17]{(char)99, (char)111, (char)108, (char)108, (char)105, (char)115, (char)105, (char)111, (char)110, (char)70, (char)105, (char)108, (char)116, (char)101, (char)114, (char)115}}>::scoped_array(simdjson::fallback::builder::string_builder&) call site: 05219 _ZN8simdjson8fallback7builder14string_builder6appendITkNSt3__16ranges5rangeENS4_6vectorINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENSA_ISC_EEEEQaaaantsr3std14is_convertibleIT_NS4_17basic_string_viewIcS9_EEEE5valuentsr8conceptsE13optional_typeISF_Ent28require_custom_serializationISF_EEEvRKSF_
22 118 _ZN8fastgltf6hasBitINS_8CategoryES1_Qaaooaasr3stdE9is_enum_vIT_Esr3stdE8integralIu17__underlying_typeIS2_EEsr3stdE8integralIS2_ErQS2_T0__XanfL0p_fL0p0_RNSt3__17same_asIS4_EEEEEbS2_S4_ call site: 00118 _ZN8fastgltf6hasBitINS_8CategoryES1_Qaaooaasr3stdE9is_enum_vIT_Esr3stdE8integralIu17__underlying_typeIS2_EEsr3stdE8integralIS2_ErQS2_T0__XanfL0p_fL0p0_RNSt3__17same_asIS4_EEEEEbS2_S4_
22 634 fastgltf::Parser::parsePhysicsMaterials(simdjson::dom::array const&, fastgltf::Asset&) call site: 00634
21 1252 fastgltf::Parser::parseBuffers(simdjson::dom::array&, fastgltf::Asset&) call site: 01252 _ZN8fastgltf13static_vectorISt4byteNSt3__19allocatorIS1_EEEC2ENS_15for_overwrite_tEmRKS4_Qsr3stdE36is_trivially_default_constructible_vIT_E
21 5254 fastgltf::scoped_array {char [7]{(char)108, (char)105, (char)109, (char)105, (char)116, (char)115}}>::scoped_array(simdjson::fallback::builder::string_builder&) call site: 05254 _ZN8simdjson8fallback7builder14string_builder6appendITkNSt3__16ranges5rangeEN8fastgltf14inplace_vectorIhLm3EEEQaaaantsr3std14is_convertibleIT_NS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEE5valuentsr8conceptsE13optional_typeIS9_Ent28require_custom_serializationIS9_EEEvRKS9_
20 815 fastgltf::Parser::parsePhysicsJoints(simdjson::dom::array const&, fastgltf::Asset&) call site: 00815
18 5276 fastgltf::basic_optional >::operator bool() const call site: 05276 _ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm4EEEtlA4_cLc109ELc105ELc110EEEEfEEvT0_

Runtime coverage analysis

Covered functions
2286
Functions that are reachable but not covered
477
Reachable functions
3553
Percentage of reachable functions covered
86.57%
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/fastgltf/tests/fuzz/gltf_fuzzer.cpp 1
/src/fastgltf/include/fastgltf/parser.hpp 6
/src/fastgltf/src/io.cpp 3
/src/fastgltf/include/fastgltf/error.hpp 46
/src/fastgltf/src/parser.cpp 55
/src/fastgltf/include/fastgltf/glb.hpp 1
/src/fastgltf/include/fastgltf/util.hpp 15
/work/build/simdjson/simdjson.h 689
/work/build/simdjson/simdjson.cpp 27
/src/fastgltf/include/fastgltf/types.hpp 80
/src/fastgltf/include/fastgltf/containers/optional.hpp 302
/src/fastgltf/include/fastgltf/crc32.hpp 1
/src/fastgltf/include/fastgltf/math.hpp 59
/src/fastgltf/include/fastgltf/containers/inplace_vector.hpp 6
/src/fastgltf/include/fastgltf/containers/box.hpp 197
/usr/local/bin/../include/c++/v1/optional 17
/usr/local/bin/../include/c++/v1/__exception/exception.h 1
/src/fastgltf/include/fastgltf/containers/exception_guard.hpp 24
/src/fastgltf/src/uri.cpp 8
/src/fastgltf/include/fastgltf/uri.hpp 9
/src/fastgltf/include/fastgltf/base64.hpp 2
/src/fastgltf/src/base64.cpp 1
/work/build/simdutf/simdutf.cpp 4
/work/build/simdutf/simdutf.h 4
/src/fastgltf/include/fastgltf/containers/static_vector.hpp 12
/src/fastgltf/include/fastgltf/containers/allocator_utils.hpp 5
/src/fastgltf/include/fastgltf/containers/small_vector.hpp 20
/usr/local/bin/../include/c++/v1/stdexcept 1
/src/fastgltf/src/validate.cpp 6
/src/fastgltf/src/exporter.cpp 283
/src/fastgltf/include/fastgltf/exporter.hpp 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
simdjson::westmere::dom_parser_implementation::parse(unsignedcharconst*,unsignedlong,simdjson::dom::document&) /work/build/simdjson/simdjson.cpp 4 ['N/A', 'N/A', 'size_t', 'N/A'] 24 0 44 6 3 693 0 1566 1556
simdjson::haswell::dom_parser_implementation::parse(unsignedcharconst*,unsignedlong,simdjson::dom::document&) /work/build/simdjson/simdjson.cpp 4 ['N/A', 'N/A', 'size_t', 'N/A'] 24 0 44 6 3 687 0 1564 983
simdjson::icelake::dom_parser_implementation::parse(unsignedcharconst*,unsignedlong,simdjson::dom::document&) /work/build/simdjson/simdjson.cpp 4 ['N/A', 'N/A', 'size_t', 'N/A'] 24 0 44 6 3 607 0 1473 892
simdjson::fallback::dom_parser_implementation::parse(unsignedcharconst*,unsignedlong,simdjson::dom::document&) /work/build/simdjson/simdjson.cpp 4 ['N/A', 'N/A', 'size_t', 'N/A'] 24 0 44 6 3 461 0 1344 765
simdutf::haswell::implementation::base64_to_binary(charconst*,unsignedlong,char*,simdutf::base64_options,simdutf::last_chunk_handling_options)const /work/build/simdutf/simdutf.cpp 6 ['N/A', 'N/A', 'size_t', 'N/A', 'size_t', 'size_t'] 8 0 181 21 21 113 0 474 450
simdutf::westmere::implementation::base64_to_binary(char16_tconst*,unsignedlong,char*,simdutf::base64_options,simdutf::last_chunk_handling_options)const /work/build/simdutf/simdutf.cpp 6 ['N/A', 'N/A', 'size_t', 'N/A', 'size_t', 'size_t'] 8 0 181 21 21 111 0 471 428
simdutf::icelake::implementation::base64_to_binary(charconst*,unsignedlong,char*,simdutf::base64_options,simdutf::last_chunk_handling_options)const /work/build/simdutf/simdutf.cpp 6 ['N/A', 'N/A', 'size_t', 'N/A', 'size_t', 'size_t'] 8 0 181 21 21 77 0 442 378

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

Functions statically reachable by fuzzers
75.0%
2977 / 3960
Cyclomatic complexity statically reachable by fuzzers
73.0%
14452 / 19930

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/fastgltf/tests/fuzz/uri_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=['fastgltf::internal::parseURI(std::__1::basic_string_view >)', 'fastgltf::internal::get(std::__1::basic_string_view >, fastgltf::internal::URIRange)']

/src/fastgltf/tests/fuzz/gltf_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=['fastgltf::Parser::parsePhysicsJoints(simdjson::dom::array const&, fastgltf::Asset&)', 'fastgltf::Parser::parseExtensions(simdjson::dom::object const&, fastgltf::Asset&)', 'fastgltf::scoped_array{char [17]{(char)112, (char)104, (char)121, (char)115, (char)105, (char)99, (char)115, (char)77, (char)97, (char)116, (char)101, (char)114, (char)105, (char)97, (char)108, (char)115}}>::scoped_array(simdjson::fallback::builder::string_builder&)', 'fastgltf::scoped_array{char [7]{(char)100, (char)114, (char)105, (char)118, (char)101, (char)115}}>::scoped_array(simdjson::fallback::builder::string_builder&)', 'simdjson::simdjson_result::get_uint64() const', 'fastgltf::scoped_array{char [17]{(char)99, (char)111, (char)108, (char)108, (char)105, (char)115, (char)105, (char)111, (char)110, (char)70, (char)105, (char)108, (char)116, (char)101, (char)114, (char)115}}>::scoped_array(simdjson::fallback::builder::string_builder&)', '_ZN8fastgltf6hasBitINS_8CategoryES1_Qaaooaasr3stdE9is_enum_vIT_Esr3stdE8integralIu17__underlying_typeIS2_EEsr3stdE8integralIS2_ErQS2_T0__XanfL0p_fL0p0_RNSt3__17same_asIS4_EEEEEbS2_S4_', 'fastgltf::Parser::parsePhysicsMaterials(simdjson::dom::array const&, fastgltf::Asset&)', 'fastgltf::Parser::parseBuffers(simdjson::dom::array&, fastgltf::Asset&)', 'fastgltf::scoped_array{char [7]{(char)108, (char)105, (char)109, (char)105, (char)116, (char)115}}>::scoped_array(simdjson::fallback::builder::string_builder&)']

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
_ZN8fastgltfL19append_texture_infoITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm15EEEtlA15_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEELNS_8internal15TextureInfoTypeE0EEEvRNS1_8fallback7builder14string_builderEPKNS_11TextureInfoE 35 10 28.57% ['gltf_fuzzer']
_ZN8fastgltfL19append_texture_infoITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm26EEEtlA26_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc71ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEELNS_8internal15TextureInfoTypeE0EEEvRNS1_8fallback7builder14string_builderEPKNS_11TextureInfoE 35 10 28.57% ['gltf_fuzzer']
fastgltf::Parser::parseShapes(simdjson::dom::arrayconst&,fastgltf::Asset&) 161 87 54.03% ['gltf_fuzzer']
fastgltf::Parser::parsePhysicsMaterials(simdjson::dom::arrayconst&,fastgltf::Asset&) 53 11 20.75% ['gltf_fuzzer']
fastgltf::Parser::parsePhysicsJoints(simdjson::dom::arrayconst&,fastgltf::Asset&) 185 18 9.729% ['gltf_fuzzer']
simdjson::internal::detect_supported_architectures() 65 31 47.69% ['gltf_fuzzer']
boolsimdjson_fast_float::clinger_fast_path_impl (unsignedlong,long,bool,double&) 34 17 50.0%
simdjson::haswell::(anonymousnamespace)::stage1::json_structural_indexer::finish(simdjson::haswell::dom_parser_implementation&,unsignedlong,unsignedlong,simdjson::stage1_mode) 107 26 24.29% ['gltf_fuzzer']
simdjson::dom::object::at_pointer(std::__1::basic_string_view >)const 39 21 53.84% ['gltf_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/fastgltf/src/base64.cpp ['gltf_fuzzer'] ['gltf_fuzzer']
/src/fastgltf/src/io.cpp ['gltf_fuzzer'] ['gltf_fuzzer']
/src/fastgltf/include/fastgltf/containers/box.hpp ['gltf_fuzzer'] ['gltf_fuzzer']
/usr/local/bin/../include/c++/v1/__charconv/from_chars_integral.h [] []
/usr/local/bin/../include/c++/v1/__iterator/move_iterator.h [] []
/src/fastgltf/src/exporter.cpp ['gltf_fuzzer'] ['gltf_fuzzer']
/src/fastgltf/include/fastgltf/uri.hpp ['uri_fuzzer', 'gltf_fuzzer'] ['uri_fuzzer', 'gltf_fuzzer']
/src/fastgltf/include/fastgltf/crc32.hpp ['gltf_fuzzer'] ['gltf_fuzzer']
/src/fastgltf/include/fastgltf/glb.hpp ['gltf_fuzzer'] ['gltf_fuzzer']
/src/fastgltf/tests/fuzz/gltf_fuzzer.cpp ['gltf_fuzzer'] ['gltf_fuzzer']
/usr/local/bin/../include/c++/v1/stdexcept ['gltf_fuzzer'] []
/usr/local/bin/../include/c++/v1/__exception/exception.h ['gltf_fuzzer'] []
/src/fastgltf/include/fastgltf/containers/static_vector.hpp ['gltf_fuzzer'] ['gltf_fuzzer']
/src/fastgltf/include/fastgltf/math.hpp ['gltf_fuzzer'] ['gltf_fuzzer']
/src/fastgltf/include/fastgltf/containers/small_vector.hpp ['gltf_fuzzer'] ['gltf_fuzzer']
/work/build/simdjson/simdjson.h ['gltf_fuzzer'] ['gltf_fuzzer']
/src/fastgltf/include/fastgltf/containers/optional.hpp ['gltf_fuzzer'] ['gltf_fuzzer']
/usr/local/bin/../include/c++/v1/string [] []
/src/fastgltf/src/uri.cpp ['uri_fuzzer', 'gltf_fuzzer'] ['uri_fuzzer', 'gltf_fuzzer']
/src/fastgltf/src/validate.cpp ['gltf_fuzzer'] ['gltf_fuzzer']
/work/build/simdutf/simdutf.cpp ['gltf_fuzzer'] ['gltf_fuzzer']
/src/fastgltf/src/parser.cpp ['gltf_fuzzer'] ['gltf_fuzzer']
/usr/local/bin/../include/c++/v1/variant [] []
/src/fastgltf/include/fastgltf/base64.hpp ['gltf_fuzzer'] ['gltf_fuzzer']
/src/fastgltf/include/fastgltf/containers/exception_guard.hpp ['gltf_fuzzer'] ['gltf_fuzzer']
/src/fastgltf/include/fastgltf/types.hpp ['gltf_fuzzer'] ['gltf_fuzzer']
/usr/local/bin/../include/c++/v1/optional ['gltf_fuzzer'] []
/src/fastgltf/include/fastgltf/util.hpp ['uri_fuzzer', 'gltf_fuzzer'] ['uri_fuzzer', 'gltf_fuzzer']
/src/fastgltf/include/fastgltf/parser.hpp ['gltf_fuzzer'] ['gltf_fuzzer']
/src/fastgltf/include/fastgltf/error.hpp ['gltf_fuzzer'] ['gltf_fuzzer']
/work/build/simdutf/simdutf.h ['gltf_fuzzer'] ['gltf_fuzzer']
/src/fastgltf/include/fastgltf/containers/allocator_utils.hpp ['gltf_fuzzer'] ['gltf_fuzzer']
/src/fastgltf/tests/fuzz/uri_fuzzer.cpp ['uri_fuzzer'] ['uri_fuzzer']
/src/fastgltf/include/fastgltf/containers/inplace_vector.hpp ['gltf_fuzzer'] ['gltf_fuzzer']
/src/fastgltf/include/fastgltf/exporter.hpp ['gltf_fuzzer'] ['gltf_fuzzer']
/work/build/simdjson/simdjson.cpp ['gltf_fuzzer'] ['gltf_fuzzer']

Directories in report

Directory
/usr/local/bin/../include/c++/v1/__iterator/
/src/fastgltf/src/
/usr/local/bin/../include/c++/v1/__exception/
/src/fastgltf/include/fastgltf/
/work/build/simdutf/
/src/fastgltf/include/fastgltf/containers/
/usr/local/bin/../include/c++/v1/__charconv/
/work/build/simdjson/
/src/fastgltf/tests/fuzz/
/usr/local/bin/../include/c++/v1/