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

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

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

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
structure_aug_parse /src/libyang/src/plugins_exts/structure.c 2 ['N/A', 'N/A'] 53 0 555 37 15 1252 0 17322 971
yangdata_compile /src/libyang/src/plugins_exts/yangdata.c 3 ['N/A', 'N/A', 'N/A'] 54 0 361 40 15 1224 0 17226 875
yang_print_parsed_submodule /src/libyang/src/printer_yang.c 3 ['N/A', 'N/A', 'int'] 39 0 428 54 20 104 0 871 539
lyd_diff_siblings_r /src/libyang/src/diff.c 5 ['N/A', 'N/A', 'short', 'char', 'N/A'] 64 0 954 177 60 1207 4 16713 362
schema_mount_validate /src/libyang/src/plugins_exts/schema_mount.c 6 ['N/A', 'N/A', 'N/A', 'int', 'int', 'N/A'] 61 0 539 88 32 1217 0 16695 344
lyd_diff_apply_r /src/libyang/src/diff.c 6 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 67 0 903 142 51 1203 3 16575 224
yang_print_compiled /src/libyang/src/printer_yang.c 3 ['N/A', 'N/A', 'int'] 45 0 832 111 38 1238 0 16759 224
ly_ctx_get_yanglib_data /src/libyang/src/context.c 3 ['N/A', 'N/A', 'N/A'] 53 0 711 113 48 1207 0 16592 222
schema_mount_sprinter_ctree /src/libyang/src/plugins_exts/schema_mount.c 4 ['N/A', 'N/A', 'N/A', 'N/A'] 61 0 500 80 30 1218 0 16542 187
lyd_new_ext_path /src/libyang/src/tree_data_new.c 6 ['N/A', 'N/A', 'N/A', 'N/A', 'int', 'N/A'] 67 0 261 49 20 1201 0 16537 179

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

Functions statically reachable by fuzzers
76.0%
1367 / 1802
Cyclomatic complexity statically reachable by fuzzers
83.0%
20265 / 24478

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/libyang/src/plugins_types/leafref.c [] []
/src/libyang/src/diff.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/json.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/plugins_exts/nacm.c [] []
/src/libyang/src/plugins_exts/schema_mount.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/plugins_types/decimal64.c [] []
/src/libyang/src/plugins_types/time_period.c [] []
/src/libyang/src/set.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/plugins_types/string.c [] []
/src/libyang/src/context.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/plugins_exts/metadata.c [] []
/src/libyang/src/tree_data_free.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/plugins_types/binary.c [] []
/src/libyang/src/plugins_types/node_instanceid.c [] []
/src/libyang/src/plugins_types/xpath1.0.c [] []
/src/libyang/src/parser_lyb.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/plugins_types/hex_string.c [] []
/src/libyang/src/plugins_types/instanceid.c [] []
/src/libyang/src/parser_json.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/parser_yang.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/lyb.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/plugins_exts/structure.c [] []
/src/libyang/src/tree_schema_common.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/plugins_types/ipv6_prefix.c [] []
/src/libyang/src/path.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/printer_data.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/plugins_types/union.c [] []
/src/libyang/src/plugins_types/integer.c [] []
/src/libyang/src/dict.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/hash_table.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/log.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/parser_common.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/xpath.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/ly_common.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/printer_xml.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/build/../tests/fuzz/lyd_parse_mem_json.c ['lyd_parse_mem_json'] []
/src/libyang/src/schema_features.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/plugins_types/ipv4_address.c [] []
/src/libyang/src/tree_data_hash.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/plugins_types/identityref.c [] []
/src/libyang/src/printer_json.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/plugins_types/ipv4_address_no_zone.c [] []
/src/libyang/src/plugins_types/empty.c [] []
/src/libyang/src/plugins_types.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/plugins_types/ipv6_address_no_zone.c [] []
/src/libyang/src/schema_compile_amend.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/build/../tests/fuzz/lys_parse_mem.c ['lys_parse_mem'] []
/src/libyang/build/../tests/fuzz/lyd_parse_mem_xml.c ['lyd_parse_mem_xml'] []
/src/libyang/src/plugins.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/hash_table_internal.h ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/tree_schema_free.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/schema_compile_node.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/plugins_types/ipv6_address.c [] []
/src/libyang/src/validation.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/plugins_exts.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/schema_compile.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/printer_lyb.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/out.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/tree_data.h ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/tree_data_new.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/plugins_types/enumeration.c [] []
/src/libyang/src/parser_yin.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/tree_data_common.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/plugins_types/date_and_time.c [] []
/src/libyang/src/tree_schema.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/xml.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/plugins_exts/yangdata.c [] []
/src/libyang/src/plugins_types/boolean.c [] []
/src/libyang/src/plugins_types/instanceid_keys.c [] []
/src/libyang/src/plugins_types/bits.c [] []
/src/libyang/compat/compat.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/tree_data.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/in.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/plugins_exts/metadata.h ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/tree_data_sorted.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []
/src/libyang/src/plugins_types/ipv4_prefix.c [] []
/src/libyang/src/plugins_types/lyds_tree.c [] []
/src/libyang/src/printer_yang.c [] []
/src/libyang/src/parser_xml.c ['lyd_parse_mem_xml', 'lyd_parse_mem_json', 'lys_parse_mem'] []

Directories in report

Directory
/src/libyang/src/plugins_types/
/src/libyang/compat/
/src/libyang/build/../tests/fuzz/
/src/libyang/src/
/src/libyang/src/plugins_exts/