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

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

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

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
__JS_EvalInternal /src/quickjs/quickjs.c 8 ['N/A', 'size_t', 'size_t', 'N/A', 'size_t', 'N/A', 'int', 'int'] 96 0 385 58 20 812 0 7286 2664
js_json_stringify /src/quickjs/quickjs.c 5 ['N/A', 'size_t', 'size_t', 'int', 'N/A'] 74 0 25 3 2 642 0 4783 273
js_regexp_Symbol_replace /src/quickjs/quickjs.c 5 ['N/A', 'size_t', 'size_t', 'int', 'N/A'] 67 0 1027 126 51 647 0 5018 207
js_string_normalize /src/quickjs/quickjs.c 5 ['N/A', 'size_t', 'size_t', 'int', 'N/A'] 66 0 190 31 13 630 0 4643 127
js_os_exec /src/quickjs/quickjs-libc.c 5 ['N/A', 'size_t', 'size_t', 'int', 'N/A'] 69 0 875 161 60 629 0 4612 110
js_typed_array_indexOf /src/quickjs/quickjs.c 6 ['N/A', 'size_t', 'size_t', 'int', 'N/A', 'int'] 52 0 1046 221 91 619 0 4616 108
JS_ComputeMemoryUsage /src/quickjs/quickjs.c 2 ['N/A', 'N/A'] 3 0 1109 153 50 6 0 73 67
js_std_file_printf /src/quickjs/quickjs-libc.c 5 ['N/A', 'size_t', 'size_t', 'int', 'N/A'] 71 0 35 6 3 622 0 4569 66
js_array_toSorted /src/quickjs/quickjs.c 5 ['N/A', 'size_t', 'size_t', 'int', 'N/A'] 71 0 313 43 17 619 0 4580 63
js_object_groupBy /src/quickjs/quickjs.c 6 ['N/A', 'size_t', 'size_t', 'int', 'N/A', 'int'] 67 0 435 50 21 629 0 4642 59

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

Functions statically reachable by fuzzers
71.0%
1256 / 1779
Cyclomatic complexity statically reachable by fuzzers
76.0%
11098 / 14614

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/quickjs/dtoa.c ['fuzz_eval', 'fuzz_compile'] []
/usr/include/x86_64-linux-gnu/bits/stdio.h ['fuzz_eval', 'fuzz_compile'] []
/src/quickjs/fuzz/fuzz_regexp.c ['fuzz_regexp'] []
/src/quickjs/./libunicode.h ['fuzz_regexp', 'fuzz_eval', 'fuzz_compile'] []
/src/quickjs/./cutils.h ['fuzz_regexp', 'fuzz_eval', 'fuzz_compile'] []
/usr/include/stdlib.h [] []
/src/quickjs/quickjs.c ['fuzz_eval', 'fuzz_compile'] []
/src/quickjs/quickjs-libc.c ['fuzz_eval', 'fuzz_compile'] []
/src/quickjs/fuzz/fuzz_common.c ['fuzz_eval', 'fuzz_compile'] []
/src/quickjs/./list.h ['fuzz_eval', 'fuzz_compile'] []
/src/quickjs/fuzz/fuzz_compile.c ['fuzz_compile'] []
/src/quickjs/fuzz/fuzz_eval.c ['fuzz_eval'] []
/src/quickjs/libregexp.c ['fuzz_regexp', 'fuzz_eval', 'fuzz_compile'] []
/src/quickjs/./quickjs.h ['fuzz_eval', 'fuzz_compile'] []
/src/quickjs/libunicode.c ['fuzz_regexp', 'fuzz_eval', 'fuzz_compile'] []
/usr/include/x86_64-linux-gnu/sys/stat.h [] []
/src/quickjs/cutils.c ['fuzz_regexp', 'fuzz_eval', 'fuzz_compile'] []

Directories in report

Directory
/usr/include/x86_64-linux-gnu/sys/
/usr/include/
/src/quickjs/
/src/quickjs/./
/usr/include/x86_64-linux-gnu/bits/
/src/quickjs/fuzz/