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
opj_jp2_decode /src/openjpeg/src/lib/openjp2/jp2.c 4 ['N/A', 'N/A', 'N/A', 'N/A'] 13 0 37 8 4 254 0 4483 4397
opj_jp2_encode /src/openjpeg/src/lib/openjp2/jp2.c 3 ['N/A', 'N/A', 'N/A'] 13 0 16 3 2 188 0 1859 1347
opj_jp2_setup_encoder /src/openjpeg/src/lib/openjp2/jp2.c 4 ['N/A', 'N/A', 'N/A', 'N/A'] 4 0 708 118 48 33 0 526 493
opj_jp2_start_compress /src/openjpeg/src/lib/openjp2/jp2.c 4 ['N/A', 'N/A', 'N/A', 'N/A'] 8 0 59 12 6 99 0 562 388
opj_jp2_read_header /src/openjpeg/src/lib/openjp2/jp2.c 4 ['N/A', 'N/A', 'N/A', 'N/A'] 7 0 152 33 16 47 0 317 178
opj_j2k_read_siz /src/openjpeg/src/lib/openjp2/j2k.c 4 ['N/A', 'N/A', 'int', 'N/A'] 3 0 789 130 55 12 0 101 65
jp2_dump /src/openjpeg/src/lib/openjp2/jp2.c 3 ['N/A', 'int', 'N/A'] 4 0 16 3 2 10 0 67 65
opj_jp2_get_tile /src/openjpeg/src/lib/openjp2/jp2.c 5 ['N/A', 'N/A', 'N/A', 'N/A', 'int'] 13 0 39 8 4 251 0 4421 47
opj_j2k_read_cod /src/openjpeg/src/lib/openjp2/j2k.c 4 ['N/A', 'N/A', 'int', 'N/A'] 3 0 263 42 17 5 0 64 44
opj_jp2_end_compress /src/openjpeg/src/lib/openjp2/jp2.c 3 ['N/A', 'N/A', 'N/A'] 7 0 40 8 4 30 0 138 43

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

Functions statically reachable by fuzzers
79.0%
518 / 653
Cyclomatic complexity statically reachable by fuzzers
90.0%
7375 / 8166

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/openjpeg/src/lib/openjp2/dwt.c [] []
/src/openjpeg/src/lib/openjp2/event.c ['opj_decompress_fuzzer_J2K', 'opj_decompress_fuzzer_JP2'] []
/src/openjpeg/src/lib/openjp2/pi.c [] []
/src/openjpeg/src/lib/openjp2/t2.c [] []
/src/openjpeg/src/lib/openjp2/mct.c [] []
/src/openjpeg/src/lib/openjp2/j2k.c ['opj_decompress_fuzzer_J2K', 'opj_decompress_fuzzer_JP2'] []
/src/openjpeg/src/lib/openjp2/bio.c [] []
/src/openjpeg/src/lib/openjp2/opj_intmath.h [] []
/src/openjpeg/src/lib/openjp2/sparse_array.c [] []
/src/openjpeg/src/lib/openjp2/tgt.c ['opj_decompress_fuzzer_J2K', 'opj_decompress_fuzzer_JP2'] []
/src/openjpeg/src/lib/openjp2/image.c ['opj_decompress_fuzzer_J2K', 'opj_decompress_fuzzer_JP2'] []
/src/openjpeg/./tests/fuzzers/opj_decompress_fuzzer_JP2.cpp ['opj_decompress_fuzzer_JP2'] []
/src/openjpeg/src/lib/openjp2/t1.c [] []
/src/openjpeg/src/lib/openjp2/ht_dec.c [] []
/src/openjpeg/src/lib/openjp2/cio.c ['opj_decompress_fuzzer_J2K', 'opj_decompress_fuzzer_JP2'] []
/src/openjpeg/src/lib/openjp2/thread.c ['opj_decompress_fuzzer_J2K', 'opj_decompress_fuzzer_JP2'] []
/src/openjpeg/src/lib/openjp2/opj_includes.h [] []
/src/openjpeg/src/lib/openjp2/mqc_inl.h [] []
/src/openjpeg/src/lib/openjp2/jp2.c ['opj_decompress_fuzzer_J2K', 'opj_decompress_fuzzer_JP2'] []
/usr/include/stdlib.h ['opj_decompress_fuzzer_J2K', 'opj_decompress_fuzzer_JP2'] []
/src/openjpeg/src/lib/openjp2/invert.c [] []
/src/openjpeg/src/lib/openjp2/function_list.c ['opj_decompress_fuzzer_J2K', 'opj_decompress_fuzzer_JP2'] []
/src/openjpeg/./tests/fuzzers/opj_decompress_fuzzer_J2K.cpp ['opj_decompress_fuzzer_J2K'] []
/src/openjpeg/src/lib/openjp2/opj_malloc.c ['opj_decompress_fuzzer_J2K', 'opj_decompress_fuzzer_JP2'] []
/src/openjpeg/src/lib/openjp2/openjpeg.c ['opj_decompress_fuzzer_J2K', 'opj_decompress_fuzzer_JP2'] []
/src/openjpeg/src/lib/openjp2/tcd.c ['opj_decompress_fuzzer_J2K', 'opj_decompress_fuzzer_JP2'] []
/src/openjpeg/src/lib/openjp2/mqc.c [] []

Directories in report

Directory
/src/openjpeg/src/lib/openjp2/
/src/openjpeg/./tests/fuzzers/
/usr/include/