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

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
handle_in_row /src/nokogiri/gumbo-parser/src/parser.c 2 ['N/A', 'N/A'] 16 0 173 25 12 117 0 642 348
handle_attr_name_state /src/nokogiri/gumbo-parser/src/tokenizer.c 4 ['N/A', 'N/A', 'int', 'N/A'] 8 0 106 20 21 61 0 206 145
handle_named_character_reference_state /src/nokogiri/gumbo-parser/src/tokenizer.c 4 ['N/A', 'N/A', 'int', 'N/A'] 13 0 169 19 8 52 0 178 63
handle_attr_value_unquoted_state /src/nokogiri/gumbo-parser/src/tokenizer.c 4 ['N/A', 'N/A', 'int', 'N/A'] 11 0 128 21 22 58 0 187 53
gumbo_print_caret_diagnostic /src/nokogiri/gumbo-parser/src/error.c 3 ['N/A', 'N/A', 'size_t'] 9 0 43 3 2 26 0 79 45
handle_initial /src/nokogiri/gumbo-parser/src/parser.c 2 ['N/A', 'N/A'] 7 0 112 10 5 47 0 183 44
handle_in_select_in_table /src/nokogiri/gumbo-parser/src/parser.c 2 ['N/A', 'N/A'] 16 0 71 10 5 116 0 635 41
hashmap_murmur /src/nokogiri/gumbo-parser/src/hashmap.c 4 ['N/A', 'size_t', 'size_t', 'size_t'] 1 0 30 3 2 1 0 39 39

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

Functions statically reachable by fuzzers
65.0%
253 / 392
Cyclomatic complexity statically reachable by fuzzers
56.0%
1310 / 2343

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/nokogiri/gumbo-parser/src/src/char_ref.rl [] []
/src/nokogiri/gumbo-parser/src/string_buffer.c ['parse_fuzzer'] []
/src/nokogiri/gumbo-parser/src/foreign_attrs.c ['parse_fuzzer'] []
/src/nokogiri/gumbo-parser/src/util.c ['parse_fuzzer'] []
/src/nokogiri/gumbo-parser/src/./ascii.h ['parse_fuzzer'] []
/src/nokogiri/gumbo-parser/fuzzer/parse_fuzzer.cc ['parse_fuzzer'] []
/src/nokogiri/gumbo-parser/src/error.c ['parse_fuzzer'] []
/src/nokogiri/gumbo-parser/src/hashmap.c [] []
/src/nokogiri/gumbo-parser/src/tag_lookup.c ['parse_fuzzer'] []
/src/nokogiri/gumbo-parser/src/attribute.c ['parse_fuzzer'] []
/src/nokogiri/gumbo-parser/src/svg_tags.c ['parse_fuzzer'] []
/src/nokogiri/gumbo-parser/src/string_piece.c [] []
/src/nokogiri/gumbo-parser/src/./util.h ['parse_fuzzer'] []
/src/nokogiri/gumbo-parser/src/./utf8.h ['parse_fuzzer'] []
/src/nokogiri/gumbo-parser/src/tokenizer.c ['parse_fuzzer'] []
/src/nokogiri/gumbo-parser/src/tag.c ['parse_fuzzer'] []
/src/nokogiri/gumbo-parser/src/svg_attrs.c ['parse_fuzzer'] []
/src/nokogiri/gumbo-parser/src/token_buffer.c ['parse_fuzzer'] []
/src/nokogiri/gumbo-parser/src/parser.c ['parse_fuzzer'] []
/src/nokogiri/gumbo-parser/src/string_set.c [] []
/src/nokogiri/gumbo-parser/src/utf8.c ['parse_fuzzer'] []
/src/nokogiri/gumbo-parser/src/ascii.c ['parse_fuzzer'] []
/src/nokogiri/gumbo-parser/src/vector.c ['parse_fuzzer'] []

Directories in report

Directory
/src/nokogiri/gumbo-parser/fuzzer/
/src/nokogiri/gumbo-parser/src/
/src/nokogiri/gumbo-parser/src/./
/src/nokogiri/gumbo-parser/src/src/