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: 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 111 7.14%
gold [1:9] 15 0.96%
yellow [10:29] 15 0.96%
greenyellow [30:49] 10 0.64%
lawngreen 50+ 1402 90.2%
All colors 1553 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
9 1356 onig_init_for_match_at call site: 01356 make_capture_history_tree
5 68 fetch_token call site: 00068 onig_snprintf_with_pattern
5 551 prs_bag call site: 00551 onig_node_free
4 232 or_cclass call site: 00232 and_code_range_buf
4 786 unravel_case_fold_string call site: 00786 onig_node_free
3 74 sprint_byte_with_x call site: 00074 onigenc_str_bytelen_null
3 240 and_code_range_buf call site: 00240 and_code_range1
3 256 or_code_range_buf call site: 00256 not_code_range_buf
3 266 and_cclass call site: 00266 or_code_range_buf
3 270 and_cclass call site: 00270 not_code_range_buf
3 420 make_range_clear call site: 00420 onig_node_free
3 467 make_absent_tail call site: 00467 onig_node_free

Runtime coverage analysis

Covered functions
587
Functions that are reachable but not covered
16
Reachable functions
449
Percentage of reachable functions covered
96.44%
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
harnesses/base.c 8
src/regcomp.c 173
src/regenc.c 16
src/regparse.c 187
src/st.c 7
src/regerror.c 6
src/unicode_fold1_key.c 2
src/regexec.c 38
src/unicode.c 7

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
onig_regset_search /src/oniguruma/src/regexec.c 8 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'int', 'int', 'N/A'] 11 0 127 14 5 45 0 1054 106
onig_setup_builtin_monitors_by_ascii_encoded_name /src/oniguruma/src/regexec.c 1 ['N/A'] 6 0 73 11 4 34 0 184 102
utf16be_get_case_fold_codes_by_str /src/oniguruma/src/utf16_be.c 4 ['int', 'N/A', 'N/A', 'N/A'] 3 0 24 3 2 7 0 89 79
onigenc_unicode_apply_all_case_fold /src/oniguruma/src/unicode.c 3 ['int', 'N/A', 'N/A'] 1 0 107 16 8 3 0 39 39

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

Functions statically reachable by fuzzers
66.0%
474 / 721
Cyclomatic complexity statically reachable by fuzzers
82.0%
5243 / 6382

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/oniguruma/src/regcomp.c ['fuzzer'] ['fuzzer']
/src/oniguruma/src/unicode.c ['fuzzer'] ['fuzzer']
/src/oniguruma/src/unicode_fold1_key.c ['fuzzer'] ['fuzzer']
/src/oniguruma/src/sjis.c [] []
/src/oniguruma/src/koi8_r.c [] []
/src/oniguruma/src/utf32_be.c [] []
/src/oniguruma/src/gb18030.c [] []
/src/oniguruma/src/st.c ['fuzzer'] ['fuzzer']
/src/oniguruma/src/utf16_le.c [] []
/src/oniguruma/src/cp1251.c [] []
/src/oniguruma/harnesses/base.c ['fuzzer'] ['fuzzer']
/src/oniguruma/src/regenc.c ['fuzzer'] ['fuzzer']
/src/oniguruma/src/unicode_unfold_key.c [] []
/src/oniguruma/src/unicode_fold2_key.c [] []
/src/oniguruma/src/euc_kr.c [] []
/src/oniguruma/src/utf16_be.c [] []
/src/oniguruma/src/./unicode_property_data.c [] []
/src/oniguruma/src/unicode_fold3_key.c [] []
/src/oniguruma/src/big5.c [] []
/src/oniguruma/src/utf32_le.c [] []
/src/oniguruma/src/regexec.c ['fuzzer'] ['fuzzer']
/src/oniguruma/src/iso8859_16.c [] []
/src/oniguruma/src/sjis_prop.gperf [] []
/src/oniguruma/src/regparse.c ['fuzzer'] ['fuzzer']
/src/oniguruma/src/regerror.c ['fuzzer'] ['fuzzer']
/src/oniguruma/src/euc_jp_prop.gperf [] []
/src/oniguruma/src/regsyntax.c [] []
/src/oniguruma/src/euc_tw.c [] []
/src/oniguruma/src/ascii.c [] []

Directories in report

Directory
/src/oniguruma/src/./
/src/oniguruma/src/
/src/oniguruma/harnesses/