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

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 1133 100.%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 0 0.0%
All colors 1133 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
1132 0 EP call site: 00000 ojph_aligned_malloc

Runtime coverage analysis

Covered functions
7
Functions that are reachable but not covered
840
Reachable functions
842
Percentage of reachable functions covered
0.24%
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.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
/src/OpenJPH/fuzzing/fuzz_targets/ojph_compress_fuzz_target.cpp 1
codestream/ojph_codestream.cpp 10
codestream/ojph_codestream_local.cpp 12
openjph/ojph_base.h 6
codestream/ojph_params_local.h 76
openjph/ojph_mem.h 92
transform/ojph_colour.cpp 1
transform/ojph_transform.cpp 1
others/ojph_mem.cpp 6
openjph/ojph_params.h 3
codestream/ojph_params.cpp 74
others/ojph_message.cpp 3
others/ojph_file.cpp 4
openjph/ojph_file.h 2
others/ojph_mem_c.c 2
codestream/ojph_codestream_local.h 18
openjph/ojph_arch.h 42
codestream/ojph_tile.cpp 6
codestream/ojph_tile_comp.cpp 9
codestream/ojph_resolution.cpp 9
codestream/ojph_subband.cpp 5
codestream/ojph_codeblock.cpp 5
transform/../codestream/ojph_params_local.h 3
codestream/ojph_subband.h 4
codestream/ojph_resolution.h 6
codestream/ojph_codeblock_fun.cpp 1
coding/ojph_block_encoder.cpp 1
others/ojph_arch.cpp 1
coding/ojph_block_encoder_avx2.cpp 1
coding/ojph_block_encoder_avx512.cpp 1
codestream/ojph_precinct.h 1
codestream/ojph_tile_comp.h 3
codestream/ojph_tile.h 1
codestream/ojph_precinct.cpp 5
codestream/ojph_bitbuffer_write.h 7

Fuzzer: ojph_expand_fuzz_target

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 95 8.16%
gold [1:9] 96 8.24%
yellow [10:29] 34 2.92%
greenyellow [30:49] 9 0.77%
lawngreen 50+ 930 79.8%
All colors 1164 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
10 894 ojph::local::param_sot::read(ojph::infile_base*, bool) call site: 00894
6 877 ojph::local::codestream::finalize_alloc() call site: 00877
5 645 ojph::local::tile::finalize_alloc(ojph::local::codestream*, ojph::rect const&, unsigned int, unsigned int&, unsigned int&) call site: 00645
4 424 ojph::local::codestream::get_coc(unsigned int) call site: 00424
4 1140 ojph::local::tile::pull(ojph::line_buf*, unsigned int) call site: 01140
3 9 ojph::local::param_siz::param_siz() call site: 00009
3 575 ojph::local::codestream::pre_alloc() call site: 00575
3 923 ojph::local::codestream::read() call site: 00923
2 6 ojph::codestream::codestream() call site: 00006
2 13 ojph::local::param_cod::param_cod(ojph::local::param_cod*, unsigned short) call site: 00013
2 16 ojph::local::param_qcd::param_qcd(ojph::local::param_qcd*, unsigned short) call site: 00016
2 21 ojph::local::param_dfs::param_dfs() call site: 00021

Runtime coverage analysis

Covered functions
465
Functions that are reachable but not covered
24
Reachable functions
786
Percentage of reachable functions covered
96.95%
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.
Function name source code lines source lines hit percentage hit

Files reached

filename functions hit
/src/OpenJPH/fuzzing/fuzz_targets/ojph_expand_fuzz_target.cpp 1
openjph/ojph_file.h 3
others/ojph_file.cpp 1
codestream/ojph_codestream.cpp 12
codestream/ojph_codestream_local.cpp 14
openjph/ojph_base.h 6
codestream/ojph_params_local.h 77
openjph/ojph_mem.h 92
transform/ojph_colour.cpp 1
transform/ojph_transform.cpp 1
others/ojph_mem.cpp 6
others/ojph_message.cpp 3
codestream/ojph_params.cpp 54
openjph/ojph_arch.h 43
codestream/ojph_codestream_local.h 19
openjph/ojph_params.h 2
codestream/ojph_tile.cpp 4
codestream/ojph_tile_comp.cpp 6
codestream/ojph_resolution.cpp 6
codestream/ojph_subband.cpp 4
codestream/ojph_codeblock.cpp 5
transform/../codestream/ojph_params_local.h 3
codestream/ojph_subband.h 3
codestream/ojph_resolution.h 5
codestream/ojph_codeblock_fun.cpp 1
coding/ojph_block_encoder.cpp 1
others/ojph_arch.cpp 1
coding/ojph_block_encoder_avx2.cpp 1
coding/ojph_block_encoder_avx512.cpp 1
codestream/ojph_precinct.h 1
codestream/ojph_tile_comp.h 2
codestream/ojph_tile.h 1
codestream/ojph_precinct.cpp 4
codestream/ojph_bitbuffer_read.h 8

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
ojph::local::ojph_decode_codeblock_avx2(unsignedchar*,unsignedint*,unsignedint,unsignedint,unsignedint,unsignedint,unsignedint,unsignedint,unsignedint,bool) /src/OpenJPH/src/core/coding/ojph_block_decoder_avx2.cpp 10 ['N/A', 'N/A', 'int', 'int', 'int', 'int', 'int', 'int', 'int', 'bool'] 4 0 232 47 21 32 0 302 300
ojph::local::ojph_decode_codeblock32(unsignedchar*,unsignedint*,unsignedint,unsignedint,unsignedint,unsignedint,unsignedint,unsignedint,unsignedint,bool) /src/OpenJPH/src/core/coding/ojph_block_decoder32.cpp 10 ['N/A', 'N/A', 'int', 'int', 'int', 'int', 'int', 'int', 'int', 'bool'] 3 0 2556 413 151 48 0 284 245
ojph::local::ojph_decode_codeblock64(unsignedchar*,unsignedlong*,unsignedint,unsignedint,unsignedint,unsignedint,unsignedint,unsignedint,unsignedint,bool) /src/OpenJPH/src/core/coding/ojph_block_decoder64.cpp 10 ['N/A', 'N/A', 'int', 'int', 'int', 'int', 'int', 'int', 'int', 'bool'] 3 0 2592 410 148 48 0 258 188
ojph::local::ojph_decode_codeblock_ssse3(unsignedchar*,unsignedint*,unsignedint,unsignedint,unsignedint,unsignedint,unsignedint,unsignedint,unsignedint,bool) /src/OpenJPH/src/core/coding/ojph_block_decoder_ssse3.cpp 10 ['N/A', 'N/A', 'int', 'int', 'int', 'int', 'int', 'int', 'int', 'bool'] 4 0 2267 344 126 52 0 255 164
ojph::local::gen_rev_vert_step(ojph::local::lifting_stepconst*,ojph::line_bufconst*,ojph::line_bufconst*,ojph::line_bufconst*,unsignedint,bool) /src/OpenJPH/src/core/transform/ojph_transform.cpp 6 ['N/A', 'N/A', 'N/A', 'N/A', 'int', 'bool'] 1 0 92 19 8 4 0 154 154
ojph::local::ojph_encode_codeblock64(unsignedlong*,unsignedint,unsignedint,unsignedint,unsignedint,unsignedint,unsignedint*,ojph::mem_elastic_allocator*,ojph::coded_lists*&) /src/OpenJPH/src/core/coding/ojph_block_encoder.cpp 9 ['N/A', 'int', 'int', 'int', 'int', 'int', 'N/A', 'N/A', 'N/A'] 4 0 1871 263 92 38 0 166 143
ojph::local::avx512_rev_vert_step(ojph::local::lifting_stepconst*,ojph::line_bufconst*,ojph::line_bufconst*,ojph::line_bufconst*,unsignedint,bool) /src/OpenJPH/src/core/transform/ojph_transform_avx512.cpp 6 ['N/A', 'N/A', 'N/A', 'N/A', 'int', 'bool'] 1 0 75 19 8 4 0 106 106
ojph::local::gen_rev_horz_ana(ojph::local::param_atkconst*,ojph::line_bufconst*,ojph::line_bufconst*,ojph::line_bufconst*,unsignedint,bool) /src/OpenJPH/src/core/transform/ojph_transform.cpp 6 ['N/A', 'N/A', 'N/A', 'N/A', 'int', 'bool'] 2 0 27 6 3 8 0 107 103
ojph::local::avx512_rev_horz_syn(ojph::local::param_atkconst*,ojph::line_bufconst*,ojph::line_bufconst*,ojph::line_bufconst*,unsignedint,bool) /src/OpenJPH/src/core/transform/ojph_transform_avx512.cpp 6 ['N/A', 'N/A', 'N/A', 'N/A', 'int', 'bool'] 2 0 27 6 3 12 0 107 103
ojph::local::avx512_rev_horz_ana(ojph::local::param_atkconst*,ojph::line_bufconst*,ojph::line_bufconst*,ojph::line_bufconst*,unsignedint,bool) /src/OpenJPH/src/core/transform/ojph_transform_avx512.cpp 6 ['N/A', 'N/A', 'N/A', 'N/A', 'int', 'bool'] 2 0 27 6 3 12 0 107 103

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

Functions statically reachable by fuzzers
66.0%
576 / 872
Cyclomatic complexity statically reachable by fuzzers
67.0%
4087 / 6119

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/OpenJPH/src/core/transform/ojph_transform_avx2.cpp [] []
/src/OpenJPH/src/core/codestream/ojph_codeblock.cpp ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/others/ojph_arch.cpp ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target']
/src/OpenJPH/src/core/transform/../codestream/ojph_params_local.h ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/codestream/ojph_tile.h ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/codestream/ojph_params_local.h ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/codestream/ojph_codestream_avx2.cpp [] []
/src/OpenJPH/src/core/codestream/ojph_tile.cpp ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/codestream/ojph_params.cpp ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/transform/ojph_transform_sse2.cpp [] []
/src/OpenJPH/src/core/transform/ojph_transform.cpp ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/codestream/ojph_subband.cpp ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/coding/ojph_block_encoder_avx512.cpp ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/transform/ojph_transform_avx512.cpp [] []
/src/OpenJPH/src/core/openjph/ojph_arch.h ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target']
/src/OpenJPH/src/core/transform/ojph_colour_sse.cpp [] []
/src/OpenJPH/src/core/others/ojph_message.cpp ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/openjph/ojph_params.h ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/codestream/ojph_tile_comp.cpp ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/codestream/ojph_codestream_avx.cpp [] []
/src/OpenJPH/src/core/others/ojph_file.cpp ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/codestream/ojph_codestream_sse.cpp [] []
/src/OpenJPH/src/core/openjph/ojph_mem.h ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/coding/ojph_block_decoder_ssse3.cpp [] []
/src/OpenJPH/src/core/openjph/ojph_file.h ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/transform/ojph_transform_sse.cpp [] []
/src/OpenJPH/src/core/transform/ojph_colour_avx2.cpp [] []
/src/OpenJPH/src/core/codestream/ojph_bitbuffer_read.h ['ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/codestream/ojph_bitbuffer_write.h ['ojph_compress_fuzz_target'] []
/src/OpenJPH/src/core/codestream/ojph_codeblock_fun.cpp ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/coding/ojph_block_encoder.cpp ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/codestream/ojph_codestream.cpp ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/fuzzing/fuzz_targets/ojph_compress_fuzz_target.cpp ['ojph_compress_fuzz_target'] []
/src/OpenJPH/src/core/codestream/ojph_resolution.h ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/transform/ojph_colour_sse2.cpp [] []
/src/OpenJPH/src/core/coding/ojph_block_decoder32.cpp [] []
/src/OpenJPH/src/core/codestream/ojph_codestream_gen.cpp [] []
/src/OpenJPH/src/core/transform/ojph_colour.cpp ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/codestream/ojph_codestream_local.h ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/codestream/ojph_resolution.cpp ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/coding/ojph_block_decoder_avx2.cpp [] []
/src/OpenJPH/src/core/codestream/ojph_precinct.cpp ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/fuzzing/fuzz_targets/ojph_expand_fuzz_target.cpp ['ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/codestream/ojph_codestream_local.cpp ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/transform/ojph_transform_avx.cpp [] []
/src/OpenJPH/src/core/codestream/ojph_precinct.h ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/openjph/ojph_base.h ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/coding/ojph_block_common.cpp [] []
/src/OpenJPH/src/core/codestream/ojph_subband.h ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/coding/ojph_block_decoder64.cpp [] []
/src/OpenJPH/src/core/coding/ojph_block_encoder_avx2.cpp ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/codestream/ojph_codestream_sse2.cpp [] []
/src/OpenJPH/src/core/others/ojph_mem.cpp ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']
/src/OpenJPH/src/core/others/ojph_mem_c.c ['ojph_compress_fuzz_target'] []
/src/OpenJPH/src/core/transform/ojph_colour_avx.cpp [] []
/src/OpenJPH/src/core/codestream/ojph_tile_comp.h ['ojph_compress_fuzz_target', 'ojph_expand_fuzz_target'] ['ojph_expand_fuzz_target']

Directories in report

Directory
/src/OpenJPH/src/core/coding/
/src/OpenJPH/src/core/transform/
/src/OpenJPH/src/core/codestream/
/src/OpenJPH/src/core/openjph/
/src/OpenJPH/src/core/others/
/src/OpenJPH/src/core/transform/../codestream/
/src/OpenJPH/fuzzing/fuzz_targets/