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

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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

Fuzzer: convert_jsonnet_fuzzer_regular

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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

Fuzzer: convert_jsonnet_fuzzer_stream

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 project has no code coverage. Will not display blockers as blockers depend on code coverage.

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
jsonnet::internal::(anonymousnamespace)::Interpreter::builtinParseYaml(jsonnet::internal::LocationRangeconst&,std::__1::vector >const&) /src/jsonnet/core/vm.cpp 3 ['N/A', 'N/A', 'N/A'] 19 0 264 57 46 1485 0 7424 7169
jsonnet_fmt_file /src/jsonnet/core/libjsonnet.cpp 3 ['N/A', 'N/A', 'N/A'] 14 0 181 38 24 889 0 4651 651
c4::yml::Tree::resolve() /src/jsonnet/third_party/rapidyaml/ryml_all.hpp 1 ['N/A'] 14 0 997 223 207 219 0 830 463
c4::yml::Tree::lookup_path_or_modify(c4::yml::Treeconst*,unsignedlong,c4::basic_substring ,unsignedlong) /src/jsonnet/third_party/rapidyaml/ryml_all.hpp 6 ['N/A', 'N/A', 'size_t', 'N/A', 'size_t', 'size_t'] 14 0 13 3 2 206 0 830 302
jsonnet::internal::Desugarer::desugarFields(jsonnet::internal::AST*,std::__1::vector >&,unsignedint)::SubstituteSelfSuper::visitExpr(jsonnet::internal::AST*&) /src/jsonnet/core/desugarer.cpp 2 ['N/A', 'N/A'] 4 0 253 49 42 31 0 196 158
c4::yml::Parser::_location_from_node(c4::yml::Treeconst&,unsignedlong,c4::yml::Location*,unsignedlong)const /src/jsonnet/third_party/rapidyaml/ryml_all.hpp 5 ['N/A', 'N/A', 'size_t', 'N/A', 'size_t'] 9 0 485 111 45 75 3 250 148
c4::yml::Tree::resolve_tags() /src/jsonnet/third_party/rapidyaml/ryml_all.hpp 1 ['N/A'] 12 0 44 11 5 165 0 546 118
c4::yml::Tree::_do_reorder(unsignedlong*,unsignedlong) /src/jsonnet/third_party/rapidyaml/ryml_all.hpp 3 ['N/A', 'N/A', 'size_t'] 9 0 55 12 5 76 2 229 116
c4::yml::NodeRef::set_val_serialized(c4::fmt::base64_wrapper_ ) /src/jsonnet/third_party/rapidyaml/ryml_all.hpp 3 ['N/A', 'N/A', 'size_t'] 11 0 20 3 2 144 0 453 99
c4::base64_decode(c4::basic_substring ,c4::blob_ ) /src/jsonnet/third_party/rapidyaml/ryml_all.hpp 4 ['N/A', 'size_t', 'N/A', 'size_t'] 2 0 949 221 87 19 0 134 97

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

Functions statically reachable by fuzzers
76.0%
1380 / 1823
Cyclomatic complexity statically reachable by fuzzers
86.0%
15978 / 18644

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

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/jsonnet/core/ast.h ['convert_jsonnet_fuzzer_multi', 'convert_jsonnet_fuzzer_regular', 'convert_jsonnet_fuzzer_stream'] []
/src/jsonnet/core/json.h [] []
/src/jsonnet/core/formatter.h ['convert_jsonnet_fuzzer_multi', 'convert_jsonnet_fuzzer_regular', 'convert_jsonnet_fuzzer_stream'] []
/src/jsonnet/core/vm.h ['convert_jsonnet_fuzzer_multi', 'convert_jsonnet_fuzzer_regular', 'convert_jsonnet_fuzzer_stream'] []
/src/jsonnet/third_party/rapidyaml/ryml_all.hpp [] []
/src/jsonnet/third_party/md5/md5.cpp [] []
/src/jsonnet/core/pass.h ['convert_jsonnet_fuzzer_multi', 'convert_jsonnet_fuzzer_regular', 'convert_jsonnet_fuzzer_stream'] []
/usr/local/bin/../include/c++/v1/__exception/exception.h [] []
/src/convert_jsonnet_fuzzer_stream.cc ['convert_jsonnet_fuzzer_stream'] []
/usr/local/bin/../include/c++/v1/stdexcept [] []
/src/jsonnet/core/string_utils.cpp ['convert_jsonnet_fuzzer_multi', 'convert_jsonnet_fuzzer_regular', 'convert_jsonnet_fuzzer_stream'] []
/src/convert_jsonnet_fuzzer_regular.cc ['convert_jsonnet_fuzzer_regular'] []
/src/jsonnet/core/pass.cpp ['convert_jsonnet_fuzzer_multi', 'convert_jsonnet_fuzzer_regular', 'convert_jsonnet_fuzzer_stream'] []
/src/jsonnet/core/libjsonnet.cpp ['convert_jsonnet_fuzzer_multi', 'convert_jsonnet_fuzzer_regular', 'convert_jsonnet_fuzzer_stream'] []
/src/jsonnet/core/static_error.h ['convert_jsonnet_fuzzer_multi', 'convert_jsonnet_fuzzer_regular', 'convert_jsonnet_fuzzer_stream'] []
/src/jsonnet/core/unicode.h ['convert_jsonnet_fuzzer_multi', 'convert_jsonnet_fuzzer_regular', 'convert_jsonnet_fuzzer_stream'] []
/src/jsonnet/core/path_utils.cpp ['convert_jsonnet_fuzzer_multi', 'convert_jsonnet_fuzzer_regular', 'convert_jsonnet_fuzzer_stream'] []
/src/jsonnet/core/parser.cpp ['convert_jsonnet_fuzzer_multi', 'convert_jsonnet_fuzzer_regular', 'convert_jsonnet_fuzzer_stream'] []
/src/jsonnet/core/static_analysis.cpp ['convert_jsonnet_fuzzer_multi', 'convert_jsonnet_fuzzer_regular', 'convert_jsonnet_fuzzer_stream'] []
/src/jsonnet/core/lexer.cpp ['convert_jsonnet_fuzzer_multi', 'convert_jsonnet_fuzzer_regular', 'convert_jsonnet_fuzzer_stream'] []
/src/jsonnet/core/lexer.h ['convert_jsonnet_fuzzer_multi', 'convert_jsonnet_fuzzer_regular', 'convert_jsonnet_fuzzer_stream'] []
/src/jsonnet/core/desugarer.cpp ['convert_jsonnet_fuzzer_multi', 'convert_jsonnet_fuzzer_regular', 'convert_jsonnet_fuzzer_stream'] []
/src/convert_jsonnet_fuzzer_multi.cc ['convert_jsonnet_fuzzer_multi'] []
/src/jsonnet/core/vm.cpp ['convert_jsonnet_fuzzer_multi', 'convert_jsonnet_fuzzer_regular', 'convert_jsonnet_fuzzer_stream'] []
/src/jsonnet/core/state.h ['convert_jsonnet_fuzzer_multi', 'convert_jsonnet_fuzzer_regular', 'convert_jsonnet_fuzzer_stream'] []
/src/jsonnet/third_party/json/nlohmann/json.hpp [] []
/src/jsonnet/core/formatter.cpp [] []
/usr/local/bin/../include/c++/v1/string [] []

Directories in report

Directory
/src/jsonnet/third_party/json/nlohmann/
/src/jsonnet/third_party/md5/
/usr/local/bin/../include/c++/v1/
/src/jsonnet/core/
/src/jsonnet/third_party/rapidyaml/
/usr/local/bin/../include/c++/v1/__exception/
/src/