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_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 distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 2282 99.9%
gold [1:9] 1 0.04%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 1 0.04%
All colors 2284 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
1965 318 jsonnet::internal::LocationRange::LocationRange() call site: 00318 jsonnet_realloc
317 0 EP call site: 00000 jsonnet_evaluate_snippet

Runtime coverage analysis

Covered functions
5
Functions that are reachable but not covered
1014
Reachable functions
1018
Percentage of reachable functions covered
0.39%
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/convert_jsonnet_fuzzer_regular.cc 3
/src/jsonnet/core/libjsonnet.cpp 10
/src/jsonnet/core/formatter.h 1
/src/jsonnet/core/ast.h 195
/src/jsonnet/core/lexer.cpp 17
/src/jsonnet/core/static_error.h 19
/src/jsonnet/core/lexer.h 13
/src/jsonnet/core/parser.cpp 22
/src/jsonnet/core/unicode.h 12
/src/jsonnet/core/desugarer.cpp 82
/src/jsonnet/core/string_utils.cpp 6
/src/jsonnet/core/pass.cpp 4
/src/jsonnet/core/pass.h 1
/src/jsonnet/core/static_analysis.cpp 3
/src/jsonnet/core/vm.cpp 77
/src/jsonnet/core/state.h 37
/src/jsonnet/core/vm.h 3
/src/jsonnet/core/path_utils.cpp 1

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 distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 357 15.6%
gold [1:9] 206 9.01%
yellow [10:29] 82 3.59%
greenyellow [30:49] 51 2.23%
lawngreen 50+ 1588 69.5%
All colors 2284 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
8 8 2 :

['realloc', 'memory_panic()']

8 8 jsonnet_realloc call site: 02208 /src/jsonnet/core/libjsonnet.cpp:750
6 93 10 :

['__cxa_throw', 'std::__1::basic_stringstream , std::__1::allocator >::~basic_stringstream()', 'jsonnet::internal::(anonymous namespace)::Interpreter::makeError(jsonnet::internal::LocationRange const&, std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::basic_stringstream , std::__1::allocator >::str[abi:ne180100]() const', 'std::__1::basic_stringstream , std::__1::allocator >::basic_stringstream[abi:ne180100]()', 'std::__1::basic_ostream >::operator<<(long)', '__cxa_allocate_exception', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', '__cxa_free_exception', 'std::__1::basic_ostream >& std::__1::operator<<[abi:ne180100] >(std::__1::basic_ostream >&, char const*)']

6 93 jsonnet::internal::(anonymousnamespace)::Interpreter::builtinSubstr(jsonnet::internal::LocationRangeconst&,std::__1::vector >const&) call site: 00000 /src/jsonnet/core/vm.cpp:1549
6 15 6 :

['__cxa_throw', 'jsonnet::internal::StaticError::StaticError(jsonnet::internal::LocationRange const&, std::__1::basic_string , std::__1::allocator > const&)', '__cxa_allocate_exception', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', '__cxa_free_exception', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B8ne180100ILi0EEEPKc']

6 15 jsonnet::internal::(anonymousnamespace)::Parser::maybeParseGreedy() call site: 00000 /src/jsonnet/core/parser.cpp:858
6 15 6 :

['__cxa_throw', 'jsonnet::internal::StaticError::StaticError(jsonnet::internal::LocationRange const&, std::__1::basic_string , std::__1::allocator > const&)', '__cxa_allocate_exception', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', '__cxa_free_exception', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B8ne180100ILi0EEEPKc']

6 15 jsonnet::internal::(anonymousnamespace)::Parser::maybeParseGreedy() call site: 00000 /src/jsonnet/core/parser.cpp:875
6 6 1 :

['memory_panic()']

6 6 jsonnet_evaluate_snippet_aux(JsonnetVm*,charconst*,charconst*,int*,(anonymousnamespace)::EvalKind) call site: 00000 /src/jsonnet/core/libjsonnet.cpp:623
2 2 3 :

['abort', 'std::__1::basic_ostream >::operator<<[abi:ne180100](std::__1::basic_ostream >& (*)(std::__1::basic_ostream >&))', 'std::__1::basic_ostream >& std::__1::operator<<[abi:ne180100] >(std::__1::basic_ostream >&, char const*)']

2 2 jsonnet::internal::Desugarer::stdlibAST(std::__1::basic_string ,std::__1::allocator >) call site: 00000 /src/jsonnet/core/desugarer.cpp:926
2 2 6 :

['jsonnet::internal::(anonymous namespace)::Interpreter::ImportCacheValue::ImportCacheValue()', 'std::__1::basic_string , std::__1::allocator >::operator=[abi:ne180100](char const*)', 'std::__1::map , std::__1::allocator >, std::__1::basic_string , std::__1::allocator > >, jsonnet::internal::(anonymous namespace)::Interpreter::ImportCacheValue*, std::__1::less , std::__1::allocator >, std::__1::basic_string , std::__1::allocator > > >, std::__1::allocator , std::__1::allocator >, std::__1::basic_string , std::__1::allocator > > const, jsonnet::internal::(anonymous namespace)::Interpreter::ImportCacheValue*> > >::operator[](std::__1::pair , std::__1::allocator >, std::__1::basic_string , std::__1::allocator > > const&)', 'free', 'operator new(unsigned long)', 'std::__1::basic_string , std::__1::allocator >::operator=(std::__1::basic_string , std::__1::allocator > const&)']

2 2 jsonnet::internal::(anonymousnamespace)::Interpreter::importData(jsonnet::internal::LocationRangeconst&,jsonnet::internal::LiteralStringconst*) call site: 00000 /src/jsonnet/core/vm.cpp:819
0 6433 7 :

['std::__1::__map_iterator , std::__1::allocator >, std::__1::basic_string , std::__1::allocator > >, std::__1::__tree_node , std::__1::allocator >, std::__1::basic_string , std::__1::allocator > >, void*>*, long> >::operator++[abi:ne180100]()', 'std::__1::__map_iterator , std::__1::allocator >, std::__1::basic_string , std::__1::allocator > >, std::__1::__tree_node , std::__1::allocator >, std::__1::basic_string , std::__1::allocator > >, void*>*, long> >::operator*[abi:ne180100]() const', 'std::__1::operator!=[abi:ne180100](std::__1::__map_iterator , std::__1::allocator >, std::__1::basic_string , std::__1::allocator > >, std::__1::__tree_node , std::__1::allocator >, std::__1::basic_string , std::__1::allocator > >, void*>*, long> > const&, std::__1::__map_iterator , std::__1::allocator >, std::__1::basic_string , std::__1::allocator > >, std::__1::__tree_node , std::__1::allocator >, std::__1::basic_string , std::__1::allocator > >, void*>*, long> > const&)', 'std::__1::map , std::__1::allocator >, std::__1::basic_string , std::__1::allocator >, std::__1::less , std::__1::allocator > >, std::__1::allocator , std::__1::allocator > const, std::__1::basic_string , std::__1::allocator > > > >::begin[abi:ne180100]()', 'jsonnet::internal::jsonnet_vm_execute_multi(jsonnet::internal::Allocator*, jsonnet::internal::AST const*, std::__1::map , std::__1::allocator >, jsonnet::internal::VmExt, std::__1::less , std::__1::allocator > >, std::__1::allocator , std::__1::allocator > const, jsonnet::internal::VmExt> > > const&, unsigned int, double, double, std::__1::map , std::__1::allocator >, jsonnet::internal::VmNativeCallback, std::__1::less , std::__1::allocator > >, std::__1::allocator , std::__1::allocator > const, jsonnet::internal::VmNativeCallback> > > const&, int (*)(void*, char const*, char const*, char**, char**, unsigned long*), void*, bool)', 'std::__1::map , std::__1::allocator >, std::__1::basic_string , std::__1::allocator >, std::__1::less , std::__1::allocator > >, std::__1::allocator , std::__1::allocator > const, std::__1::basic_string , std::__1::allocator > > > >::~map[abi:ne180100]()', 'std::__1::map , std::__1::allocator >, std::__1::basic_string , std::__1::allocator >, std::__1::less , std::__1::allocator > >, std::__1::allocator , std::__1::allocator > const, std::__1::basic_string , std::__1::allocator > > > >::end[abi:ne180100]()']

20 6581 jsonnet_evaluate_snippet_aux(JsonnetVm*,charconst*,charconst*,int*,(anonymousnamespace)::EvalKind) call site: 00000 /src/jsonnet/core/libjsonnet.cpp:553
0 6401 2 :

['jsonnet::internal::jsonnet_vm_execute(jsonnet::internal::Allocator*, jsonnet::internal::AST const*, std::__1::map , std::__1::allocator >, jsonnet::internal::VmExt, std::__1::less , std::__1::allocator > >, std::__1::allocator , std::__1::allocator > const, jsonnet::internal::VmExt> > > const&, unsigned int, double, double, std::__1::map , std::__1::allocator >, jsonnet::internal::VmNativeCallback, std::__1::less , std::__1::allocator > >, std::__1::allocator , std::__1::allocator > const, jsonnet::internal::VmNativeCallback> > > const&, int (*)(void*, char const*, char const*, char**, char**, unsigned long*), void*, bool)', 'std::__1::basic_string , std::__1::allocator >::operator+=[abi:ne180100](char const*)']

14 6558 jsonnet_evaluate_snippet_aux(JsonnetVm*,charconst*,charconst*,int*,(anonymousnamespace)::EvalKind) call site: 00000 /src/jsonnet/core/libjsonnet.cpp:553
0 9 1 :

['jsonnet::internal::StaticError::StaticError(jsonnet::internal::LocationRange const&, std::__1::basic_string , std::__1::allocator > const&)']

6 15 jsonnet::internal::(anonymousnamespace)::Interpreter::safeDoubleToInt64(double,jsonnet::internal::LocationRangeconst&) call site: 00000 /src/jsonnet/core/vm.cpp:894
0 0 None 1279 34307 jsonnet::internal::(anonymousnamespace)::Interpreter::evaluate(jsonnet::internal::ASTconst*,unsignedint) call site: 00000 /src/jsonnet/core/vm.cpp:2118
0 0 None 1279 34307 jsonnet::internal::(anonymousnamespace)::Interpreter::evaluate(jsonnet::internal::ASTconst*,unsignedint) call site: 00000 /src/jsonnet/core/vm.cpp:2301

Runtime coverage analysis

Covered functions
476
Functions that are reachable but not covered
166
Reachable functions
1018
Percentage of reachable functions covered
83.69%
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/convert_jsonnet_fuzzer_stream.cc 3
/src/jsonnet/core/libjsonnet.cpp 10
/src/jsonnet/core/formatter.h 1
/src/jsonnet/core/ast.h 195
/src/jsonnet/core/lexer.cpp 17
/src/jsonnet/core/static_error.h 19
/src/jsonnet/core/lexer.h 13
/src/jsonnet/core/parser.cpp 22
/src/jsonnet/core/unicode.h 12
/src/jsonnet/core/desugarer.cpp 82
/src/jsonnet/core/string_utils.cpp 6
/src/jsonnet/core/pass.cpp 4
/src/jsonnet/core/pass.h 1
/src/jsonnet/core/static_analysis.cpp 3
/src/jsonnet/core/vm.cpp 77
/src/jsonnet/core/state.h 37
/src/jsonnet/core/vm.h 3
/src/jsonnet/core/path_utils.cpp 1

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 distribution of callsites in terms of coloring is
Color Runtime hitcount Callsite count Percentage
red 0 695 30.4%
gold [1:9] 117 5.12%
yellow [10:29] 51 2.23%
greenyellow [30:49] 20 0.87%
lawngreen 50+ 1401 61.3%
All colors 2284 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
8 47 4 :

['std::__1::vector >::push_back[abi:ne180100](jsonnet::internal::ObjectField&&)', 'jsonnet::internal::Self* jsonnet::internal::Desugarer::make > const&>(jsonnet::internal::LocationRange const&, std::__1::vector > const&)', 'jsonnet::internal::ObjectField::~ObjectField()', 'jsonnet::internal::ObjectField::Local(std::__1::vector > const&, std::__1::vector > const&, jsonnet::internal::Identifier const*, std::__1::vector > const&, jsonnet::internal::AST*, std::__1::vector > const&)']

16 3283 jsonnet::internal::Desugarer::makeObjectComprehension(jsonnet::internal::ObjectComprehension*,unsignedint) call site: 00000 /src/jsonnet/core/desugarer.cpp:628
8 8 2 :

['realloc', 'memory_panic()']

8 8 jsonnet_realloc call site: 02208 /src/jsonnet/core/libjsonnet.cpp:750
6 93 6 :

['__cxa_throw', 'jsonnet::internal::(anonymous namespace)::Interpreter::makeError(jsonnet::internal::LocationRange const&, std::__1::basic_string , std::__1::allocator > const&)', '__cxa_allocate_exception', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', '__cxa_free_exception', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B8ne180100ILi0EEEPKc']

6 93 jsonnet::internal::(anonymousnamespace)::Interpreter::makeNumberCheck(jsonnet::internal::LocationRangeconst&,double) call site: 00000 /src/jsonnet/core/vm.cpp:610
6 93 10 :

['__cxa_throw', 'std::__1::basic_stringstream , std::__1::allocator >::~basic_stringstream()', 'jsonnet::internal::(anonymous namespace)::Interpreter::makeError(jsonnet::internal::LocationRange const&, std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::basic_stringstream , std::__1::allocator >::str[abi:ne180100]() const', 'std::__1::basic_stringstream , std::__1::allocator >::basic_stringstream[abi:ne180100]()', 'std::__1::basic_ostream >::operator<<(long)', '__cxa_allocate_exception', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', '__cxa_free_exception', 'std::__1::basic_ostream >& std::__1::operator<<[abi:ne180100] >(std::__1::basic_ostream >&, char const*)']

6 93 jsonnet::internal::(anonymousnamespace)::Interpreter::builtinChar(jsonnet::internal::LocationRangeconst&,std::__1::vector >const&) call site: 00000 /src/jsonnet/core/vm.cpp:1293
6 93 7 :

['__cxa_throw', 'jsonnet::internal::(anonymous namespace)::Interpreter::makeError(jsonnet::internal::LocationRange const&, std::__1::basic_string , std::__1::allocator > const&)', 'jsonnet::internal::encode_utf8(std::__1::basic_string , std::__1::allocator > const&) [clone .12175]', '__cxa_allocate_exception', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', '__cxa_free_exception', 'std::__1::basic_string , std::__1::allocator > std::__1::operator+[abi:ne180100] , std::__1::allocator >(char const*, std::__1::basic_string , std::__1::allocator >&&)']

6 93 jsonnet::internal::(anonymousnamespace)::Interpreter::objectIndex(jsonnet::internal::LocationRangeconst&,jsonnet::internal::(anonymousnamespace)::HeapObject*,jsonnet::internal::Identifierconst*,unsignedint) call site: 00000 /src/jsonnet/core/vm.cpp:1970
6 23 9 :

['__cxa_throw', 'std::__1::basic_stringstream , std::__1::allocator >::~basic_stringstream()', 'jsonnet::internal::StaticError::StaticError(jsonnet::internal::LocationRange const&, std::__1::basic_string , std::__1::allocator > const&)', 'std::__1::basic_stringstream , std::__1::allocator >::str[abi:ne180100]() const', 'jsonnet::internal::operator<<(std::__1::basic_ostream >&, jsonnet::internal::Token const&)', 'std::__1::basic_stringstream , std::__1::allocator >::basic_stringstream[abi:ne180100]()', '__cxa_allocate_exception', '__cxa_free_exception', 'std::__1::basic_ostream >& std::__1::operator<<[abi:ne180100] >(std::__1::basic_ostream >&, char const*)']

10 27 jsonnet::internal::(anonymousnamespace)::Parser::maybeParseGreedy() call site: 00000 /src/jsonnet/core/parser.cpp:816
6 15 6 :

['__cxa_throw', 'jsonnet::internal::StaticError::StaticError(jsonnet::internal::LocationRange const&, std::__1::basic_string , std::__1::allocator > const&)', '__cxa_allocate_exception', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', '__cxa_free_exception', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B8ne180100ILi0EEEPKc']

6 15 jsonnet::internal::(anonymousnamespace)::Parser::maybeParseGreedy() call site: 00000 /src/jsonnet/core/parser.cpp:841
6 15 6 :

['__cxa_throw', 'jsonnet::internal::StaticError::StaticError(jsonnet::internal::LocationRange const&, std::__1::basic_string , std::__1::allocator > const&)', '__cxa_allocate_exception', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', '__cxa_free_exception', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B8ne180100ILi0EEEPKc']

6 15 jsonnet::internal::(anonymousnamespace)::Parser::maybeParseGreedy() call site: 00000 /src/jsonnet/core/parser.cpp:858
6 15 6 :

['__cxa_throw', 'jsonnet::internal::StaticError::StaticError(jsonnet::internal::LocationRange const&, std::__1::basic_string , std::__1::allocator > const&)', '__cxa_allocate_exception', 'std::__1::basic_string , std::__1::allocator >::~basic_string()', '__cxa_free_exception', '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2B8ne180100ILi0EEEPKc']

6 15 jsonnet::internal::(anonymousnamespace)::Parser::maybeParseGreedy() call site: 00000 /src/jsonnet/core/parser.cpp:875
6 6 1 :

['memory_panic()']

6 6 jsonnet_evaluate_snippet_aux(JsonnetVm*,charconst*,charconst*,int*,(anonymousnamespace)::EvalKind) call site: 00000 /src/jsonnet/core/libjsonnet.cpp:588
2 2 3 :

['abort', 'std::__1::basic_ostream >::operator<<[abi:ne180100](std::__1::basic_ostream >& (*)(std::__1::basic_ostream >&))', 'std::__1::basic_ostream >& std::__1::operator<<[abi:ne180100] >(std::__1::basic_ostream >&, char const*)']

2 2 jsonnet::internal::Desugarer::stdlibAST(std::__1::basic_string ,std::__1::allocator >) call site: 00000 /src/jsonnet/core/desugarer.cpp:926
0 6435 7 :

['jsonnet::internal::jsonnet_vm_execute_stream(jsonnet::internal::Allocator*, jsonnet::internal::AST const*, std::__1::map , std::__1::allocator >, jsonnet::internal::VmExt, std::__1::less , std::__1::allocator > >, std::__1::allocator , std::__1::allocator > const, jsonnet::internal::VmExt> > > const&, unsigned int, double, double, std::__1::map , std::__1::allocator >, jsonnet::internal::VmNativeCallback, std::__1::less , std::__1::allocator > >, std::__1::allocator , std::__1::allocator > const, jsonnet::internal::VmNativeCallback> > > const&, int (*)(void*, char const*, char const*, char**, char**, unsigned long*), void*, bool)', 'std::__1::__wrap_iter , std::__1::allocator >*>::operator*[abi:ne180100]() const', 'std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >::~vector[abi:ne180100]()', 'std::__1::__wrap_iter , std::__1::allocator >*>::operator++[abi:ne180100]()', 'std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >::end[abi:ne180100]()', 'bool std::__1::operator!=[abi:ne180100] , std::__1::allocator >*>(std::__1::__wrap_iter , std::__1::allocator >*> const&, std::__1::__wrap_iter , std::__1::allocator >*> const&)', 'std::__1::vector , std::__1::allocator >, std::__1::allocator , std::__1::allocator > > >::begin[abi:ne180100]()']

20 6583 jsonnet_evaluate_snippet_aux(JsonnetVm*,charconst*,charconst*,int*,(anonymousnamespace)::EvalKind) call site: 00000 /src/jsonnet/core/libjsonnet.cpp:553

Runtime coverage analysis

Covered functions
459
Functions that are reachable but not covered
184
Reachable functions
1018
Percentage of reachable functions covered
81.93%
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/convert_jsonnet_fuzzer_multi.cc 3
/src/jsonnet/core/libjsonnet.cpp 10
/src/jsonnet/core/formatter.h 1
/src/jsonnet/core/ast.h 195
/src/jsonnet/core/lexer.cpp 17
/src/jsonnet/core/static_error.h 19
/src/jsonnet/core/lexer.h 13
/src/jsonnet/core/parser.cpp 22
/src/jsonnet/core/unicode.h 12
/src/jsonnet/core/desugarer.cpp 82
/src/jsonnet/core/string_utils.cpp 6
/src/jsonnet/core/pass.cpp 4
/src/jsonnet/core/pass.h 1
/src/jsonnet/core/static_analysis.cpp 3
/src/jsonnet/core/vm.cpp 77
/src/jsonnet/core/state.h 37
/src/jsonnet/core/vm.h 3
/src/jsonnet/core/path_utils.cpp 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
jsonnet::internal::(anonymousnamespace)::Interpreter::builtinParseYaml(jsonnet::internal::LocationRangeconst&,std::__1::vector >const&) /src/jsonnet/core/vm.cpp 3 ['N/A', 'N/A', 'N/A'] 20 0 279 57 46 1486 0 7445 7191
jsonnet_fmt_file /src/jsonnet/core/libjsonnet.cpp 3 ['N/A', 'N/A', 'N/A'] 14 0 189 38 24 889 0 4624 655
c4::yml::Tree::resolve() /src/jsonnet/third_party/rapidyaml/ryml_all.hpp 1 ['N/A'] 15 0 1101 223 207 220 0 833 464
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'] 15 0 20 3 2 207 0 832 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 264 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'] 10 0 536 111 45 76 3 252 148
c4::yml::Tree::resolve_tags() /src/jsonnet/third_party/rapidyaml/ryml_all.hpp 1 ['N/A'] 13 0 46 11 5 166 0 548 118
c4::yml::Tree::_do_reorder(unsignedlong*,unsignedlong) /src/jsonnet/third_party/rapidyaml/ryml_all.hpp 3 ['N/A', 'N/A', 'size_t'] 10 0 66 12 5 77 2 231 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'] 12 0 24 3 2 145 0 455 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'] 3 0 994 221 87 20 0 136 97

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

Functions statically reachable by fuzzers
76.0%
1381 / 1827
Cyclomatic complexity statically reachable by fuzzers
86.0%
15992 / 18656

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/convert_jsonnet_fuzzer_regular.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=['jsonnet::internal::LocationRange::LocationRange()']

/src/convert_jsonnet_fuzzer_stream.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=['jsonnet::internal::(anonymous namespace)::Interpreter::evaluate(jsonnet::internal::AST const*, unsigned int)', 'jsonnet::internal::(anonymous namespace)::Interpreter::evaluate(jsonnet::internal::AST const*, unsigned int)', 'from_string(JsonnetVm*, std::__1::basic_string, std::__1::allocator > const&)', 'jsonnet::internal::(anonymous namespace)::Interpreter::evaluate(jsonnet::internal::AST const*, unsigned int)', 'jsonnet::internal::(anonymous namespace)::Heap::~Heap()', 'jsonnet::internal::Array* jsonnet::internal::Allocator::clone(jsonnet::internal::Array*)', 'jsonnet::internal::(anonymous namespace)::Interpreter::evaluate(jsonnet::internal::AST const*, unsigned int)', 'jsonnet::internal::Apply* jsonnet::internal::Allocator::clone(jsonnet::internal::Apply*)', 'jsonnet::internal::(anonymous namespace)::Interpreter::countLeaves(jsonnet::internal::(anonymous namespace)::HeapObject*)', 'jsonnet::internal::Binary* jsonnet::internal::Allocator::clone(jsonnet::internal::Binary*)']

/src/convert_jsonnet_fuzzer_multi.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=['jsonnet::internal::(anonymous namespace)::Interpreter::evaluate(jsonnet::internal::AST const*, unsigned int)', 'jsonnet::internal::(anonymous namespace)::Interpreter::evaluate(jsonnet::internal::AST const*, unsigned int)', 'jsonnet::internal::(anonymous namespace)::Interpreter::evaluate(jsonnet::internal::AST const*, unsigned int)', 'jsonnet::internal::jsonnet_vm_execute_multi(jsonnet::internal::Allocator*, jsonnet::internal::AST const*, std::__1::map, std::__1::allocator >, jsonnet::internal::VmExt, std::__1::less, std::__1::allocator > >, std::__1::allocator, std::__1::allocator > const, jsonnet::internal::VmExt> > > const&, unsigned int, double, double, std::__1::map, std::__1::allocator >, jsonnet::internal::VmNativeCallback, std::__1::less, std::__1::allocator > >, std::__1::allocator, std::__1::allocator > const, jsonnet::internal::VmNativeCallback> > > const&, int (*)(void*, char const*, char const*, char**, char**, unsigned long*), void*, bool)', 'jsonnet::internal::(anonymous namespace)::Interpreter::evaluate(jsonnet::internal::AST const*, unsigned int)', 'jsonnet::internal::(anonymous namespace)::Interpreter::evaluate(jsonnet::internal::AST const*, unsigned int)', 'jsonnet::internal::(anonymous namespace)::Parser::parseObjectRemainder(jsonnet::internal::AST*&, jsonnet::internal::Token const&)', 'jsonnet::internal::(anonymous namespace)::Interpreter::evaluate(jsonnet::internal::AST const*, unsigned int)', 'jsonnet::internal::(anonymous namespace)::Heap::~Heap()', 'jsonnet::internal::StaticError::StaticError(std::__1::basic_string, std::__1::allocator > const&, jsonnet::internal::Location const&, std::__1::basic_string, std::__1::allocator > const&)']

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

Directories in report

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