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: script_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 205 94.4%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 12 5.52%
All colors 217 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
179 32 LLVMFuzzerTestOneInput call site: 00032 BT::Any::cast
16 15 LLVMFuzzerTestOneInput call site: 00015 lexy::validate_result::error_count
4 212 LLVMFuzzerTestOneInput call site: 00212 BT::ParseScript
3 5 LLVMFuzzerTestOneInput call site: 00005
2 1 LLVMFuzzerTestOneInput call site: 00001
1 12 LLVMFuzzerTestOneInput call site: 00012

Runtime coverage analysis

Covered functions
337
Functions that are reachable but not covered
47
Reachable functions
48
Percentage of reachable functions covered
2.08%
NB: The sum of covered functions and functions that are reachable but not covered need not be equal to Reachable functions . This is because the reachability analysis is an approximation and thus at runtime some functions may be covered that are not included in the reachability analysis. This is a limitation of our static analysis capabilities.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
fuzzing/script_fuzzer.cpp 14
include/behaviortree_cpp/blackboard.h 2
src/loggers/zmq.hpp 6
include/behaviortree_cpp/contrib/json.hpp 31
src/script_parser.cpp 17
3rdparty/lexy/include/lexy/action/validate.hpp 1
include/behaviortree_cpp/contrib/expected.hpp 1
3rdparty/lexy/include/lexy/parse_tree.hpp 5
3rdparty/lexy/include/lexy/action/base.hpp 2
include/behaviortree_cpp/utils/strcat.hpp 1
include/behaviortree_cpp/utils/safe_any.hpp 28
include/behaviortree_cpp/utils/simple_string.hpp 4

Fuzzer: bb_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 902 99.5%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 4 0.44%
All colors 906 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
902 1 LLVMFuzzerTestOneInput call site: 00001 BlackboardFuzzer::fuzzJsonOperations

Runtime coverage analysis

Covered functions
706
Functions that are reachable but not covered
154
Reachable functions
155
Percentage of reachable functions covered
0.65%
NB: The sum of covered functions and functions that are reachable but not covered need not be equal to Reachable functions . This is because the reachability analysis is an approximation and thus at runtime some functions may be covered that are not included in the reachability analysis. This is a limitation of our static analysis capabilities.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
fuzzing/bb_fuzzer.cpp 32
include/behaviortree_cpp/contrib/json.hpp 119
src/loggers/zmq.hpp 7
include/behaviortree_cpp/blackboard.h 5
3rdparty/lexy/include/lexy/parse_tree.hpp 5
3rdparty/lexy/include/lexy/action/base.hpp 2
src/blackboard.cpp 20

Fuzzer: bt_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 520 97.1%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 1 0.18%
lawngreen 50+ 14 2.61%
All colors 535 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
205 1 LLVMFuzzerTestOneInput call site: 00001 emplace
172 209 LLVMFuzzerTestOneInput call site: 00209 emplace_back
113 396 LLVMFuzzerTestOneInput call site: 00396 tinyxml2::XMLDocument::Parse
12 521 LLVMFuzzerTestOneInput call site: 00521 BT::XMLParser::instantiateTree
8 510 LLVMFuzzerTestOneInput call site: 00510 emplace_back
7 383 LLVMFuzzerTestOneInput call site: 00383 generateFuzzedNodeXML
2 391 LLVMFuzzerTestOneInput call site: 00391
1 519 LLVMFuzzerTestOneInput call site: 00519

Runtime coverage analysis

Covered functions
824
Functions that are reachable but not covered
57
Reachable functions
58
Percentage of reachable functions covered
1.72%
NB: The sum of covered functions and functions that are reachable but not covered need not be equal to Reachable functions . This is because the reachability analysis is an approximation and thus at runtime some functions may be covered that are not included in the reachability analysis. This is a limitation of our static analysis capabilities.
Warning: The number of covered functions are larger than the number of reachable functions. This means that there are more functions covered at runtime than are extracted using static analysis. This is likely a result of the static analysis component failing to extract the right call graph or the coverage runtime being compiled with sanitizers in code that the static analysis has not analysed. This can happen if lto/gold is not used in all places that coverage instrumentation is used.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
fuzzing/bt_fuzzer.cpp 16
src/bt_factory.cpp 13
src/tree_node.cpp 1
include/behaviortree_cpp/bt_factory.h 3
include/behaviortree_cpp/contrib/json.hpp 47
src/loggers/zmq.hpp 2
3rdparty/lexy/include/lexy/parse_tree.hpp 5
3rdparty/lexy/include/lexy/action/base.hpp 2
src/xml_parsing.cpp 30
3rdparty/tinyxml2/tinyxml2.h 9
3rdparty/tinyxml2/tinyxml2.cpp 33
3rdparty/lexy/include/lexy/visualize.hpp 4
tests/navigation_test.cpp 1
include/behaviortree_cpp/blackboard.h 2
src/basic_types.cpp 4

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
binary_reader::get_ubjson_value /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp 1 ['char_int_type'] 15 0 96 33 27 127 4 211 180
binary_writer::write_ubjson /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp 3 ['BasicJsonType', 'bool', 'bool'] 11 0 121 32 46 101 2 198 175
wildcards::detail::match /src/behaviortreecpp/3rdparty/wildcards/wildcards.hpp 8 ['SequenceIterator', 'SequenceIterator', 'PatternIterator', 'PatternIterator', 'cards >', 'EqualTo', 'bool', 'bool'] 9 0 42 14 27 19 2 174 174
binary_reader::parse_cbor_internal /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp 2 ['bool', 'cbor_tag_handler_t'] 13 0 333 219 38 119 3 167 116
binary_writer::write_msgpack /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp 1 ['BasicJsonType'] 4 0 183 50 56 35 1 116 115
binary_writer::write_cbor /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp 1 ['BasicJsonType'] 4 0 205 52 53 33 1 110 106
BT::Ast::evaluate /src/behaviortreecpp/include/behaviortree_cpp/scripting/operators.hpp 1 ['Environment'] 3 0 79 21 33 42 1 73 71

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

Functions statically reachable by fuzzers
4.0%
157 / 3731
Cyclomatic complexity statically reachable by fuzzers
19.0%
925 / 4904

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

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
BT::demangle[abi:cxx11](std::type_indexconst&) 32 16 50.0%
nonstd::expected_lite::expected ,std::allocator >>BT::Any::tryCast ()const 33 18 54.54%
nlohmann::json_abi_v3_11_3::detail::serializer ,std::allocator >,bool,long,unsignedlong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector >,void>>::dump(nlohmann::json_abi_v3_11_3::basic_json ,std::allocator >,bool,long,unsignedlong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector >,void>const&,bool,bool,unsignedint,unsignedint) 216 53 24.53%
nlohmann::json_abi_v3_11_3::basic_json ,std::allocator >,bool,long,unsignedlong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector >,void>::json_value::json_value(nlohmann::json_abi_v3_11_3::detail::value_t) 60 17 28.33%
nlohmann::json_abi_v3_11_3::detail::parser ,std::allocator >,bool,long,unsignedlong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector >,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator ,std::allocator >>>>::parse(bool,nlohmann::json_abi_v3_11_3::basic_json ,std::allocator >,bool,long,unsignedlong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector >,void>&) 40 16 40.0%
boolBT::isCastingSafe (std::type_indexconst&,intconst&) 47 23 48.93%
nonstd::expected_lite::expected ,std::allocator >>BT::Any::tryCast ()const 33 18 54.54%
boolBT::isCastingSafe (std::type_indexconst&,doubleconst&) 47 23 48.93%
boolBT::isCastingSafe (std::type_indexconst&,unsignedlongconst&) 47 23 48.93%
boolBT::isCastingSafe (std::type_indexconst&,floatconst&) 47 23 48.93%
BT::BehaviorTreeFactory::instantiateTreeNode(std::__cxx11::basic_string ,std::allocator >const&,std::__cxx11::basic_string ,std::allocator >const&,BT::NodeConfigconst&)const 84 40 47.61%
BT::XMLParser::PImpl::loadSubtreeModel(tinyxml2::XMLElementconst*) 40 9 22.5%
BT::XMLParser::PImpl::loadDocImpl(tinyxml2::XMLDocument*,bool) 84 43 51.19%

Fuzz driver synthesis

New fuzzers

The below fuzzers are templates and suggestions for how to target the set of optimal functions above

json.hpp

Target file: /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp
Target functions: binary_reader::get_ubjson_value, binary_writer::write_ubjson, binary_reader::parse_cbor_internal, binary_writer::write_msgpack, binary_writer::write_cbor
#include "ada_fuzz_header.h"

int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
  af_safe_gb_init(data, size);

  /* target binary_reader::get_ubjson_value */
  UNKNOWN_TYPE unknown_0;
  binary_reader::get_ubjson_value(unknown_0);

  /* target binary_writer::write_ubjson */
  UNKNOWN_TYPE unknown_1;
  UNKNOWN_TYPE unknown_2;
  UNKNOWN_TYPE unknown_3;
  binary_writer::write_ubjson(unknown_1, unknown_2, unknown_3);

  /* target binary_reader::parse_cbor_internal */
  UNKNOWN_TYPE unknown_12;
  UNKNOWN_TYPE unknown_13;
  binary_reader::parse_cbor_internal(unknown_12, unknown_13);

  /* target binary_writer::write_msgpack */
  UNKNOWN_TYPE unknown_14;
  binary_writer::write_msgpack(unknown_14);

  /* target binary_writer::write_cbor */
  UNKNOWN_TYPE unknown_15;
  binary_writer::write_cbor(unknown_15);

  af_safe_gb_cleanup();
}

wildcards.hpp

Target file: /src/behaviortreecpp/3rdparty/wildcards/wildcards.hpp
Target functions: wildcards::detail::match
#include "ada_fuzz_header.h"

int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
  af_safe_gb_init(data, size);

  /* target wildcards::detail::match */
  UNKNOWN_TYPE unknown_4;
  UNKNOWN_TYPE unknown_5;
  UNKNOWN_TYPE unknown_6;
  UNKNOWN_TYPE unknown_7;
  UNKNOWN_TYPE unknown_8;
  UNKNOWN_TYPE unknown_9;
  UNKNOWN_TYPE unknown_10;
  UNKNOWN_TYPE unknown_11;
  wildcards::detail::match(unknown_4, unknown_5, unknown_6, unknown_7, unknown_8, unknown_9, unknown_10, unknown_11);

  af_safe_gb_cleanup();
}

operators.hpp

Target file: /src/behaviortreecpp/include/behaviortree_cpp/scripting/operators.hpp
Target functions: BT::Ast::evaluate
#include "ada_fuzz_header.h"

int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
  af_safe_gb_init(data, size);

  /* target BT::Ast::evaluate */
  UNKNOWN_TYPE unknown_16;
  BT::Ast::evaluate(unknown_16);

  af_safe_gb_cleanup();
}

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/behaviortreecpp/src/actions/updated_action.cpp [] []
/src/behaviortreecpp/tests/gtest_ports.cpp [] []
/src/behaviortreecpp/src/blackboard.cpp ['bb_fuzzer'] ['bb_fuzzer']
/src/behaviortreecpp/3rdparty/lexy/include/lexy/_detail/std.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/controls/reactive_sequence.h [] []
/src/behaviortreecpp/src/loggers/zmq.hpp ['script_fuzzer', 'bb_fuzzer', 'bt_fuzzer'] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/identifier.hpp [] []
/src/behaviortreecpp/examples/plugin_example/plugin_executor.cpp [] []
/src/behaviortreecpp/src/controls/while_do_else_node.cpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/grammar.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/action/validate.hpp ['script_fuzzer'] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/action/parse_as_tree.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/controls/fallback_node.h [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/choice.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/decorators/inverter_node.h [] []
/src/behaviortreecpp/tests/test_helper.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/production.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/callback/object.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/_detail/assert.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/lookahead.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/callback/string.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/callback/constant.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/sign.hpp [] []
/src/behaviortreecpp/src/loggers/bt_cout_logger.cpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/decorators/loop_node.h [] []
/src/behaviortreecpp/include/behaviortree_cpp/decorators/consume_queue.h [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/_detail/tuple.hpp [] []
/src/behaviortreecpp/3rdparty/tinyxml2/tinyxml2.cpp ['bt_fuzzer'] ['bt_fuzzer']
/src/behaviortreecpp/tests/include/condition_test_node.h [] []
/src/behaviortreecpp/include/behaviortree_cpp/controls/sequence_node.h [] []
/src/behaviortreecpp/include/behaviortree_cpp/action_node.h [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/_detail/iterator.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/actions/unset_blackboard_node.h [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/encoding.hpp [] []
/src/behaviortreecpp/tests/gtest_tree.cpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/decorators/force_success_node.h [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/context_flag.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/decorators/force_failure_node.h [] []
/src/behaviortreecpp/src/bt_factory.cpp ['bt_fuzzer'] ['bt_fuzzer']
/src/behaviortreecpp/3rdparty/lexy/include/lexy/_detail/nttp_string.hpp [] []
/src/behaviortreecpp/3rdparty/cppzmq/zmq_addon.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/exceptions.h [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/_detail/any_ref.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/controls/switch_node.h [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/parse_tree_node.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/context_identifier.hpp [] []
/src/behaviortreecpp/src/controls/switch_node.cpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/callback/adapter.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/loggers/bt_observer.h [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/action/base.hpp ['script_fuzzer', 'bb_fuzzer', 'bt_fuzzer'] []
/src/behaviortreecpp/src/behavior_tree.cpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp ['script_fuzzer', 'bb_fuzzer', 'bt_fuzzer'] ['bb_fuzzer']
/src/behaviortreecpp/examples/t18_waypoints.cpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/controls/while_do_else_node.h [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/digit.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/combination.hpp [] []
/src/behaviortreecpp/examples/t02_basic_ports.cpp [] []
/src/behaviortreecpp/sample_nodes/crossdoor_nodes.cpp [] []
/src/behaviortreecpp/3rdparty/lexy/src/input/file.cpp [] []
/src/behaviortreecpp/tests/gtest_enums.cpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/decorators/updated_decorator.h [] []
/src/behaviortreecpp/include/behaviortree_cpp/contrib/expected.hpp ['script_fuzzer'] ['script_fuzzer']
/src/behaviortreecpp/tests/gtest_json.cpp [] []
/src/behaviortreecpp/tools/bt_recorder.cpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/actions/always_success_node.h [] []
/src/behaviortreecpp/include/behaviortree_cpp/utils/demangle_util.h [] []
/src/behaviortreecpp/src/loggers/bt_minitrace_logger.cpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/actions/test_node.h [] []
/src/behaviortreecpp/include/behaviortree_cpp/decorators/subtree_node.h [] []
/src/behaviortreecpp/src/condition_node.cpp [] []
/src/behaviortreecpp/src/controls/parallel_all_node.cpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/json_export.h [] []
/src/behaviortreecpp/src/example.cpp [] []
/src/behaviortreecpp/src/decorator_node.cpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/decorators/script_precondition.h [] []
/src/behaviortreecpp/include/behaviortree_cpp/controls/manual_node.h [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/until.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy_ext/compiler_explorer.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/loggers/groot2_publisher.h [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/position.hpp [] []
/src/behaviortreecpp/src/controls/reactive_fallback.cpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/_detail/invoke.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/_detail/unicode_database.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/callback/container.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/recover.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy_ext/parse_tree_doctest.hpp [] []
/src/behaviortreecpp/src/shared_library.cpp [] []
/src/behaviortreecpp/src/decorators/inverter_node.cpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/scan.hpp [] []
/src/behaviortreecpp/examples/t03_generic_ports.cpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/flatbuffers/bt_flatbuffer_helper.h [] []
/src/behaviortreecpp/src/loggers/bt_file_logger_v2.cpp [] []
/src/behaviortreecpp/tests/include/action_test_node.h [] []
/src/behaviortreecpp/include/behaviortree_cpp/blackboard.h ['script_fuzzer', 'bb_fuzzer', 'bt_fuzzer'] ['script_fuzzer', 'bb_fuzzer', 'bt_fuzzer']
/src/behaviortreecpp/include/behaviortree_cpp/actions/script_condition.h [] []
/src/behaviortreecpp/include/behaviortree_cpp/bt_parser.h [] []
/src/behaviortreecpp/include/behaviortree_cpp/utils/timer_queue.h [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/input/file.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/_detail/buffer_builder.hpp [] []
/src/behaviortreecpp/examples/t11_groot_howto.cpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/utils/safe_any.hpp ['script_fuzzer'] ['script_fuzzer']
/src/behaviortreecpp/src/xml_parsing.cpp ['bt_fuzzer'] ['bt_fuzzer']
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/case_folding.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/brackets.hpp [] []
/src/behaviortreecpp/tests/gtest_preconditions.cpp [] []
/src/behaviortreecpp/3rdparty/cpp-sqlite/sqlite.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/effect.hpp [] []
/src/behaviortreecpp/src/action_node.cpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/_detail/memory_resource.hpp [] []
/src/behaviortreecpp/tests/src/condition_test_node.cpp [] []
/src/behaviortreecpp/examples/ex03_sqlite_log.cpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/utils/simple_string.hpp ['script_fuzzer'] ['script_fuzzer']
/src/behaviortreecpp/fuzzing/script_fuzzer.cpp ['script_fuzzer'] ['script_fuzzer']
/src/behaviortreecpp/3rdparty/minicoro/minicoro.h [] []
/src/behaviortreecpp/tests/gtest_switch.cpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/utils/wakeup_signal.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/actions/always_failure_node.h [] []
/src/behaviortreecpp/sample_nodes/movebase_node.h [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/input_location.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/bits.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/action/trace.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/list.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/times.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/expression.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/input/buffer.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/action/match.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy_ext/parse_tree_algorithm.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/xml_parsing.h [] []
/src/behaviortreecpp/include/behaviortree_cpp/scripting/any_types.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/loop.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/context_counter.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/actions/updated_action.h [] []
/src/behaviortreecpp/include/behaviortree_cpp/contrib/any.hpp [] []
/src/behaviortreecpp/tests/gtest_parallel.cpp [] []
/src/behaviortreecpp/tests/gtest_reactive_backchaining.cpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/input/lexeme_input.hpp [] []
/src/behaviortreecpp/src/loggers/bt_observer.cpp [] []
/src/behaviortreecpp/3rdparty/cppzmq/zmq.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/actions/pop_from_queue.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/action/parse.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/code_point.hpp [] []
/src/behaviortreecpp/tests/gtest_interface.cpp [] []
/src/behaviortreecpp/3rdparty/tinyxml2/tinyxml2.h ['bt_fuzzer'] ['bt_fuzzer']
/src/behaviortreecpp/3rdparty/lexy/include/lexy/input/range_input.hpp [] []
/src/behaviortreecpp/3rdparty/wildcards/wildcards.hpp [] []
/src/behaviortreecpp/examples/ex02_runtime_ports.cpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/literal.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/callback/fold.hpp [] []
/src/behaviortreecpp/src/basic_types.cpp ['bt_fuzzer'] []
/src/behaviortreecpp/include/behaviortree_cpp/loggers/bt_file_logger_v2.h [] []
/src/behaviortreecpp/tests/src/action_test_node.cpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/utils/signal.h [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/whitespace.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/controls/sequence_with_memory_node.h [] []
/src/behaviortreecpp/tests/gtest_coroutines.cpp [] []
/src/behaviortreecpp/sample_nodes/dummy_nodes.h [] []
/src/behaviortreecpp/sample_nodes/movebase_node.cpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/member.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/ascii.hpp [] []
/src/behaviortreecpp/examples/ex01_wrap_legacy.cpp [] []
/src/behaviortreecpp/src/control_node.cpp [] []
/src/behaviortreecpp/src/decorators/updated_decorator.cpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/callback/integer.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/loggers/groot2_protocol.h [] []
/src/behaviortreecpp/include/behaviortree_cpp/decorators/run_once_node.h [] []
/src/behaviortreecpp/src/decorators/timeout_node.cpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/leaf_node.h [] []
/src/behaviortreecpp/include/behaviortree_cpp/scripting/operators.hpp [] []
/src/behaviortreecpp/src/decorators/delay_node.cpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/sequence.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/loggers/abstract_logger.h [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/input/string_input.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/token.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/unicode.hpp [] []
/src/behaviortreecpp/tests/gtest_wakeup.cpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/char_class.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/decorators/delay_node.h [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/parse_as.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/actions/script_node.h [] []
/src/behaviortreecpp/examples/t12_default_ports.cpp [] []
/src/behaviortreecpp/src/loggers/bt_sqlite_logger.cpp [] []
/src/behaviortreecpp/3rdparty/minitrace/minitrace.h [] []
/src/behaviortreecpp/3rdparty/flatbuffers/base.h [] []
/src/behaviortreecpp/include/behaviortree_cpp/basic_types.h [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/callback/noop.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/condition_node.h [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy_ext/report_error.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/integer.hpp [] []
/src/behaviortreecpp/src/decorators/repeat_node.cpp [] []
/src/behaviortreecpp/tests/script_parser_test.cpp [] []
/src/behaviortreecpp/tests/gtest_factory.cpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/controls/reactive_fallback.h [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/input/argv_input.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/_detail/code_point.hpp [] []
/src/behaviortreecpp/src/controls/manual_node.cpp [] []
/src/behaviortreecpp/tests/gtest_fallback.cpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/decorators/keep_running_until_failure_node.h [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/repeat.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/decorators/timeout_node.h [] []
/src/behaviortreecpp/src/actions/test_node.cpp [] []
/src/behaviortreecpp/src/controls/fallback_node.cpp [] []
/src/behaviortreecpp/tests/gtest_blackboard.cpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/utils/locked_reference.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/terminator.hpp [] []
/src/behaviortreecpp/tests/include/environment.h [] []
/src/behaviortreecpp/src/decorators/retry_node.cpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/utils/strcat.hpp ['script_fuzzer'] []
/src/behaviortreecpp/examples/t13_access_by_ref.cpp [] []
/src/behaviortreecpp/src/controls/if_then_else_node.cpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/_detail/lazy_init.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/tree_node.h [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/punctuator.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/flags.hpp [] []
/src/behaviortreecpp/tests/gtest_sequence.cpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/delimited.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/_detail/swar.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/follow.hpp [] []
/src/behaviortreecpp/src/controls/sequence_node.cpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/input/base.hpp [] []
/src/behaviortreecpp/3rdparty/minitrace/minitrace.cpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/error.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/actions/set_blackboard_node.h [] []
/src/behaviortreecpp/tests/gtest_decorator.cpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/callback/composition.hpp [] []
/src/behaviortreecpp/sample_nodes/dummy_nodes.cpp [] []
/src/behaviortreecpp/src/decorators/subtree_node.cpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/subgrammar.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/bt_factory.h ['bt_fuzzer'] []
/src/behaviortreecpp/tests/gtest_subtree.cpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/byte.hpp [] []
/src/behaviortreecpp/examples/plugin_example/plugin_action.cpp [] []
/src/behaviortreecpp/src/controls/reactive_sequence.cpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/behavior_tree.h [] []
/src/behaviortreecpp/include/behaviortree_cpp/decorators/retry_node.h [] []
/src/behaviortreecpp/include/behaviortree_cpp/control_node.h [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/lexeme.hpp [] []
/src/behaviortreecpp/src/tree_node.cpp ['bt_fuzzer'] ['bt_fuzzer']
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/operator.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/controls/if_then_else_node.h [] []
/src/behaviortreecpp/include/behaviortree_cpp/decorator_node.h [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/separator.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/branch.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/_detail/type_name.hpp [] []
/src/behaviortreecpp/src/controls/parallel_node.cpp [] []
/src/behaviortreecpp/fuzzing/bt_fuzzer.cpp ['bt_fuzzer'] ['bt_fuzzer']
/src/behaviortreecpp/src/shared_library_UNIX.cpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/contrib/magic_enum.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/input/parse_tree_input.hpp [] []
/src/behaviortreecpp/src/controls/sequence_with_memory_node.cpp [] []
/src/behaviortreecpp/tests/gtest_async_action_node.cpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/callback/bit_cast.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/parse_tree.hpp ['script_fuzzer', 'bb_fuzzer', 'bt_fuzzer'] []
/src/behaviortreecpp/include/behaviortree_cpp/actions/sleep_node.h [] []
/src/behaviortreecpp/include/behaviortree_cpp/utils/convert_impl.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/symbol.hpp [] []
/src/behaviortreecpp/src/loggers/groot2_publisher.cpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/error.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/code_point.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/action/scan.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/callback/base.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/controls/parallel_all_node.h [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/visualize.hpp ['bt_fuzzer'] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/_detail/string_view.hpp [] []
/src/behaviortreecpp/tests/gtest_logger_zmq.cpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/callback/forward.hpp [] []
/src/behaviortreecpp/examples/t08_additional_node_args.cpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy_ext/shell.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/peek.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/callback/bind.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/token.hpp [] []
/src/behaviortreecpp/examples/plugin_example/custom_type.hpp [] []
/src/behaviortreecpp/fuzzing/bb_fuzzer.cpp ['bb_fuzzer'] ['bb_fuzzer']
/src/behaviortreecpp/3rdparty/lexy/include/lexy/callback/aggregate.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/utils/shared_library.h [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/base.hpp [] []
/src/behaviortreecpp/3rdparty/lexy/include/lexy/_detail/config.hpp [] []
/src/behaviortreecpp/include/behaviortree_cpp/controls/parallel_node.h [] []
/src/behaviortreecpp/include/behaviortree_cpp/decorators/repeat_node.h [] []
/src/behaviortreecpp/src/script_parser.cpp ['script_fuzzer'] []
/src/behaviortreecpp/src/json_export.cpp [] []
/src/behaviortreecpp/tests/navigation_test.cpp ['bt_fuzzer'] []
/src/behaviortreecpp/src/actions/sleep_node.cpp [] []

Directories in report

Directory
/src/behaviortreecpp/src/actions/
/src/behaviortreecpp/3rdparty/lexy/include/lexy_ext/
/src/behaviortreecpp/include/behaviortree_cpp/loggers/
/src/behaviortreecpp/3rdparty/minicoro/
/src/behaviortreecpp/include/behaviortree_cpp/scripting/
/src/behaviortreecpp/examples/
/src/behaviortreecpp/3rdparty/minitrace/
/src/behaviortreecpp/3rdparty/lexy/include/lexy/_detail/
/src/behaviortreecpp/3rdparty/flatbuffers/
/src/behaviortreecpp/3rdparty/lexy/include/lexy/
/src/behaviortreecpp/3rdparty/lexy/src/input/
/src/behaviortreecpp/src/
/src/behaviortreecpp/tools/
/src/behaviortreecpp/tests/include/
/src/behaviortreecpp/fuzzing/
/src/behaviortreecpp/include/behaviortree_cpp/decorators/
/src/behaviortreecpp/src/controls/
/src/behaviortreecpp/src/decorators/
/src/behaviortreecpp/include/behaviortree_cpp/
/src/behaviortreecpp/include/behaviortree_cpp/controls/
/src/behaviortreecpp/include/behaviortree_cpp/utils/
/src/behaviortreecpp/3rdparty/cpp-sqlite/
/src/behaviortreecpp/3rdparty/cppzmq/
/src/behaviortreecpp/3rdparty/tinyxml2/
/src/behaviortreecpp/tests/src/
/src/behaviortreecpp/examples/plugin_example/
/src/behaviortreecpp/3rdparty/lexy/include/lexy/input/
/src/behaviortreecpp/3rdparty/lexy/include/lexy/action/
/src/behaviortreecpp/tests/
/src/behaviortreecpp/include/behaviortree_cpp/actions/
/src/behaviortreecpp/include/behaviortree_cpp/flatbuffers/
/src/behaviortreecpp/include/behaviortree_cpp/contrib/
/src/behaviortreecpp/3rdparty/lexy/include/lexy/callback/
/src/behaviortreecpp/3rdparty/wildcards/
/src/behaviortreecpp/src/loggers/
/src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/
/src/behaviortreecpp/sample_nodes/

Sink analyser for CWEs

This section contains multiple tables, each table contains a list of sink functions/methods found in the project for one of the CWE supported by the sink analyser, together with information like which fuzzers statically reach the sink functions/methods and possible call path to that sink functions/methods if it is not statically reached by any fuzzers. Column 1 is the function/method name of the sink functions/methods found in the project. Column 2 lists all fuzzers (or no fuzzers at all) that have covered that particular function method statically. Column 3 shows a list of possible call paths to reach the specific function/method call if none of the fuzzers cover the target function/method calls. Lastly, column 4 shows possible fuzzer blockers that prevent an existing fuzzer from reaching the target sink functions/methods dynamically.

Sink functions/methods found for CWE416

Target sink Reached by fuzzer Function call path Possible branch blockers
get ['bb_fuzzer'] N/A
Blocker function Arguments type Return type Constants touched
NaughtyNav2Node::tick
in /src/behaviortreecpp/tests/gtest_subtree.cpp:342
[] BT::NodeStatus []
BT::test::SimpleCondition::tick
in /src/behaviortreecpp/tests/gtest_reactive_backchaining.cpp:22
[] BT::NodeStatus []
BT::BehaviorTreeFactory::loadSubstitutionRuleFromJSON
in /src/behaviortreecpp/src/bt_factory.cpp:420
['std::string'] void []
XMLParser::PImpl::createNodeFromXML(constXMLElement*element, constBlackboard::Ptr&blackboard, constTreeNode::Ptr&node_parent, conststd::string&prefix_path, Tree&output_tree)
in /src/behaviortreecpp/src/xml_parsing.cpp:632
['XMLElement*', 'Blackboard::Ptr', 'TreeNode::Ptr', 'std::string', 'Tree'] TreeNode::Ptr []
std::stringget(sockopt::array_option , size_tinit_size=1024)const
in /src/behaviortreecpp/3rdparty/cppzmq/zmq.hpp:1849
[] ZMQ_NODISCARD []
zmq::poller_t::remove
in /src/behaviortreecpp/3rdparty/cppzmq/zmq.hpp:2677
['zmq::socket_ref'] void []
zmq::poller_t::modify
in /src/behaviortreecpp/3rdparty/cppzmq/zmq.hpp:2684
['zmq::socket_ref', 'event_flags'] void []
zmq::poller_t::wait_all
in /src/behaviortreecpp/3rdparty/cppzmq/zmq.hpp:2693
['std::vector ', 'std::chrono::milliseconds'] size_t []
zmq::poller_t::add
in /src/behaviortreecpp/3rdparty/cppzmq/zmq.hpp:2675
['fd_t', 'event_flags'] void []
BT::Groot2Publisher::serverLoop
in /src/behaviortreecpp/src/loggers/groot2_publisher.cpp:232
[] void []
BT::Tree::getNodesByPath
in /src/behaviortreecpp/include/behaviortree_cpp/bt_factory.h:165
['StringView'] std::vector []
BT::SwitchNode ::tick
in /src/behaviortreecpp/include/behaviortree_cpp/controls/switch_node.h:107
[] NodeStatus []
lexer::scan_string
in /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp:7626
[] token_type []
lexer::scan_comment
in /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp:8216
[] bool []
lexer::scan_number
in /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp:8341
[] token_type []
parser::parser
in /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp:12239
['InputAdapterType'] void []
operator""_json(constchar*s,std::size_tn)
in /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp:24472
['char*', 'std::size_t'] nlohmann::json []
lexy::do_action
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/action/base.hpp:228
['Handler', 'State*', 'Reader'] auto []
lexy::parse
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/base.hpp:202
['Context', 'Reader', 'Sink'] LEXY_PARSER_FUNC []
lexyd::parse
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/separator.hpp:49
['Context', 'Reader'] LEXY_PARSER_FUNC []
lexyd::parse_one
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/delimited.hpp:100
['Context', 'Reader', 'Sink'] void []
lexyd::esc_try_parse
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/delimited.hpp:378
['Context', 'Reader', 'Sink', '_del_chars '] bool []
lexyd::_loop
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/list.hpp:186
['_state', 'TermParser', 'Context', 'Reader', 'Sink'] LEXY_PARSER_FUNC []
::parse<::lexy::_production_value_type >/**/\ (::lexy::_detail::lazy_init<::lexy::_production_value_type<\ typename__VA_ARGS__::handler,typename__VA_ARGS__::state,Production>>&,\ ::lexy::_detail::parse_context_control_block *,\ ::lexy::input_reader &)
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/subgrammar.hpp:52
[] void []
lexyd::_parse_production
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/production.hpp:22
['Context', 'Reader'] bool []
lexyd::loop
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/repeat.hpp:52
['Context', 'Reader', 'std::size_t'] bool []
lexyd::recover
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/recover.hpp:238
['Context', 'Reader'] LEXY_PARSER_FUNC []
lexy::_detail::apply
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/expression.hpp:191
['Context', 'Reader', 'parsed_operator '] bool []
lexyd::_parse
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/expression.hpp:486
['Context', 'Reader', '_state'] bool []
lexyd::_parse_rule
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/parse_tree_node.hpp:48
['Context', 'Reader', 'typename Reader::marker'] LEXY_PARSER_FUNC []
lexyd::op_finish
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/operator.hpp:111
['Context', 'Reader', 'lexy::_detail::parsed_operator '] LEXY_PARSER_FUNC []
(3) boolsax_parse(constinput_format_tformat, json_sax_t*sax_, constboolstrict=true, constcbor_tag_handler_ttag_handler=cbor_tag_handler_t::error)
in /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp:9248
['input_format_t', 'json_sax_t*'] JSON_HEDLEY_NON_NULL []
accept
in /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp:23374
['detail::span_input_adapter'] bool []
parser::accept
in /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp:12321
[] bool []
from_cbor
in /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp:23705
['detail::span_input_adapter'] basic_json []
from_msgpack
in /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp:23760
['detail::span_input_adapter'] basic_json []
from_ubjson
in /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp:23814
['detail::span_input_adapter'] basic_json []
from_bson
in /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp:23898
['detail::span_input_adapter'] basic_json []
&operator=(constbuffer&other)
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/input/buffer.hpp:214
['buffer'] buffer []
&operator=(buffer&&other)noexcept(std::is_empty_v )
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/input/buffer.hpp:223
['buffer'] buffer []
zmq::poller_t::size
in /src/behaviortreecpp/3rdparty/cppzmq/zmq.hpp:2715
[] size_t []

Sink functions/methods found for CWE20

Target sink Reached by fuzzer Function call path Possible branch blockers
get ['bb_fuzzer'] N/A
Blocker function Arguments type Return type Constants touched
NaughtyNav2Node::tick
in /src/behaviortreecpp/tests/gtest_subtree.cpp:342
[] BT::NodeStatus []
BT::test::SimpleCondition::tick
in /src/behaviortreecpp/tests/gtest_reactive_backchaining.cpp:22
[] BT::NodeStatus []
BT::BehaviorTreeFactory::loadSubstitutionRuleFromJSON
in /src/behaviortreecpp/src/bt_factory.cpp:420
['std::string'] void []
XMLParser::PImpl::createNodeFromXML(constXMLElement*element, constBlackboard::Ptr&blackboard, constTreeNode::Ptr&node_parent, conststd::string&prefix_path, Tree&output_tree)
in /src/behaviortreecpp/src/xml_parsing.cpp:632
['XMLElement*', 'Blackboard::Ptr', 'TreeNode::Ptr', 'std::string', 'Tree'] TreeNode::Ptr []
std::stringget(sockopt::array_option , size_tinit_size=1024)const
in /src/behaviortreecpp/3rdparty/cppzmq/zmq.hpp:1849
[] ZMQ_NODISCARD []
zmq::poller_t::remove
in /src/behaviortreecpp/3rdparty/cppzmq/zmq.hpp:2677
['zmq::socket_ref'] void []
zmq::poller_t::modify
in /src/behaviortreecpp/3rdparty/cppzmq/zmq.hpp:2684
['zmq::socket_ref', 'event_flags'] void []
zmq::poller_t::wait_all
in /src/behaviortreecpp/3rdparty/cppzmq/zmq.hpp:2693
['std::vector ', 'std::chrono::milliseconds'] size_t []
zmq::poller_t::add
in /src/behaviortreecpp/3rdparty/cppzmq/zmq.hpp:2675
['fd_t', 'event_flags'] void []
BT::Groot2Publisher::serverLoop
in /src/behaviortreecpp/src/loggers/groot2_publisher.cpp:232
[] void []
BT::Tree::getNodesByPath
in /src/behaviortreecpp/include/behaviortree_cpp/bt_factory.h:165
['StringView'] std::vector []
BT::SwitchNode ::tick
in /src/behaviortreecpp/include/behaviortree_cpp/controls/switch_node.h:107
[] NodeStatus []
lexer::scan_string
in /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp:7626
[] token_type []
lexer::scan_comment
in /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp:8216
[] bool []
lexer::scan_number
in /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp:8341
[] token_type []
parser::parser
in /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp:12239
['InputAdapterType'] void []
operator""_json(constchar*s,std::size_tn)
in /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp:24472
['char*', 'std::size_t'] nlohmann::json []
lexy::do_action
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/action/base.hpp:228
['Handler', 'State*', 'Reader'] auto []
lexy::parse
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/base.hpp:202
['Context', 'Reader', 'Sink'] LEXY_PARSER_FUNC []
lexyd::parse
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/separator.hpp:49
['Context', 'Reader'] LEXY_PARSER_FUNC []
lexyd::parse_one
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/delimited.hpp:100
['Context', 'Reader', 'Sink'] void []
lexyd::esc_try_parse
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/delimited.hpp:378
['Context', 'Reader', 'Sink', '_del_chars '] bool []
lexyd::_loop
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/list.hpp:186
['_state', 'TermParser', 'Context', 'Reader', 'Sink'] LEXY_PARSER_FUNC []
::parse<::lexy::_production_value_type >/**/\ (::lexy::_detail::lazy_init<::lexy::_production_value_type<\ typename__VA_ARGS__::handler,typename__VA_ARGS__::state,Production>>&,\ ::lexy::_detail::parse_context_control_block *,\ ::lexy::input_reader &)
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/subgrammar.hpp:52
[] void []
lexyd::_parse_production
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/production.hpp:22
['Context', 'Reader'] bool []
lexyd::loop
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/repeat.hpp:52
['Context', 'Reader', 'std::size_t'] bool []
lexyd::recover
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/recover.hpp:238
['Context', 'Reader'] LEXY_PARSER_FUNC []
lexy::_detail::apply
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/expression.hpp:191
['Context', 'Reader', 'parsed_operator '] bool []
lexyd::_parse
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/expression.hpp:486
['Context', 'Reader', '_state'] bool []
lexyd::_parse_rule
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/parse_tree_node.hpp:48
['Context', 'Reader', 'typename Reader::marker'] LEXY_PARSER_FUNC []
lexyd::op_finish
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/dsl/operator.hpp:111
['Context', 'Reader', 'lexy::_detail::parsed_operator '] LEXY_PARSER_FUNC []
(3) boolsax_parse(constinput_format_tformat, json_sax_t*sax_, constboolstrict=true, constcbor_tag_handler_ttag_handler=cbor_tag_handler_t::error)
in /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp:9248
['input_format_t', 'json_sax_t*'] JSON_HEDLEY_NON_NULL []
accept
in /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp:23374
['detail::span_input_adapter'] bool []
parser::accept
in /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp:12321
[] bool []
from_cbor
in /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp:23705
['detail::span_input_adapter'] basic_json []
from_msgpack
in /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp:23760
['detail::span_input_adapter'] basic_json []
from_ubjson
in /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp:23814
['detail::span_input_adapter'] basic_json []
from_bson
in /src/behaviortreecpp/include/behaviortree_cpp/contrib/json.hpp:23898
['detail::span_input_adapter'] basic_json []
&operator=(constbuffer&other)
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/input/buffer.hpp:214
['buffer'] buffer []
&operator=(buffer&&other)noexcept(std::is_empty_v )
in /src/behaviortreecpp/3rdparty/lexy/include/lexy/input/buffer.hpp:223
['buffer'] buffer []
zmq::poller_t::size
in /src/behaviortreecpp/3rdparty/cppzmq/zmq.hpp:2715
[] size_t []