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_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 287 25.6%
gold [1:9] 146 13.0%
yellow [10:29] 18 1.60%
greenyellow [30:49] 5 0.44%
lawngreen 50+ 665 59.3%
All colors 1121 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
13 906 ojph::local::precinct::parse(int, unsigned int*, ojph::mem_elastic_allocator*, unsigned int&, ojph::infile_base*, bool) call site: 00906 __cxa_allocate_exception
12 284 ojph::local::param_atk::read(ojph::infile_base*) call site: 00284
12 298 ojph::local::param_atk::read(ojph::infile_base*) call site: 00298
12 1083 ojph::local::resolution::pull_line() call site: 01083
11 847 ojph::local::codestream::read() call site: 00847
10 745 ojph::local::subband::finalize_alloc(ojph::local::codestream*, ojph::rect const&, ojph::local::resolution*, unsigned int, unsigned int) call site: 00745
8 478 void ojph::mem_fixed_allocator::pre_alloc_local (unsigned long, unsigned int, unsigned long&) call site: 00478
7 414 ojph::local::resolution::pre_alloc(ojph::local::codestream*, ojph::rect const&, ojph::rect const&, unsigned int, unsigned int) call site: 00414
7 637 ojph::local::resolution::finalize_alloc(ojph::local::codestream*, ojph::rect const&, ojph::rect const&, unsigned int, unsigned int, ojph::point, ojph::point, ojph::local::tile_comp*, ojph::local::resolution*) call site: 00637
7 1007 ojph::local::resolution::parse_one_precinct(unsigned int&, ojph::infile_base*) call site: 01007
6 210 ojph::local::param_qcd::read_qcc(ojph::infile_base*, unsigned int) call site: 00210
6 277 ojph::local::param_atk::read_coefficient(ojph::infile_base*, float&, int&) call site: 00277

Runtime coverage analysis

Covered functions
425
Functions that are reachable but not covered
50
Reachable functions
752
Percentage of reachable functions covered
93.35%
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
/src/OpenJPH/src/core/openjph/ojph_file.h 3
/src/OpenJPH/src/core/others/ojph_file.cpp 1
/src/OpenJPH/src/core/codestream/ojph_codestream.cpp 7
/src/OpenJPH/src/core/codestream/ojph_codestream_local.cpp 10
/src/OpenJPH/src/core/openjph/ojph_base.h 4
/src/OpenJPH/src/core/codestream/ojph_params_local.h 75
/src/OpenJPH/src/core/openjph/ojph_mem.h 91
/src/OpenJPH/src/core/transform/ojph_colour.cpp 1
/src/OpenJPH/src/core/transform/ojph_transform.cpp 1
/src/OpenJPH/src/core/others/ojph_mem.cpp 6
/src/OpenJPH/src/core/codestream/ojph_params.cpp 51
/src/OpenJPH/src/core/others/ojph_message.cpp 3
/src/OpenJPH/src/core/openjph/ojph_arch.h 43
/src/OpenJPH/src/core/codestream/ojph_codestream_local.h 19
/src/OpenJPH/src/core/openjph/ojph_params.h 2
/src/OpenJPH/src/core/codestream/ojph_tile.cpp 4
/src/OpenJPH/src/core/codestream/ojph_tile_comp.cpp 6
/src/OpenJPH/src/core/codestream/ojph_resolution.cpp 6
/src/OpenJPH/src/core/codestream/ojph_subband.cpp 4
/src/OpenJPH/src/core/codestream/ojph_codeblock.cpp 5
/src/OpenJPH/src/core/transform/../codestream/ojph_params_local.h 3
/src/OpenJPH/src/core/codestream/ojph_subband.h 3
/src/OpenJPH/src/core/codestream/ojph_resolution.h 5
/src/OpenJPH/src/core/codestream/ojph_codeblock_fun.cpp 1
/src/OpenJPH/src/core/coding/ojph_block_encoder.cpp 1
/src/OpenJPH/src/core/others/ojph_arch.cpp 1
/src/OpenJPH/src/core/coding/ojph_block_encoder_avx2.cpp 1
/src/OpenJPH/src/core/coding/ojph_block_encoder_avx512.cpp 1
/src/OpenJPH/src/core/codestream/ojph_precinct.h 1
/src/OpenJPH/src/core/codestream/ojph_tile_comp.h 2
/src/OpenJPH/src/core/codestream/ojph_tile.h 1
/src/OpenJPH/src/core/codestream/ojph_precinct.cpp 4
/src/OpenJPH/src/core/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::codestream::write_headers(ojph::outfile_base*,ojph::comment_exchangeconst*,unsignedint) /src/OpenJPH/src/core/codestream/ojph_codestream.cpp 4 ['N/A', 'N/A', 'N/A', 'int'] 11 0 13 3 2 584 0 1194 401
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 280 274
ojph::codestream::flush() /src/OpenJPH/src/core/codestream/ojph_codestream.cpp 1 ['N/A'] 10 0 13 3 2 94 0 323 260
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 251 164
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 2252 344 126 52 0 251 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'] 3 0 1871 263 92 34 0 160 139
ojph::local::resolution::push_line() /src/OpenJPH/src/core/codestream/ojph_resolution.cpp 1 ['N/A'] 2 0 860 127 48 22 5 134 126
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

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

Functions statically reachable by fuzzers
60.0%
520 / 864
Cyclomatic complexity statically reachable by fuzzers
59.0%
3528 / 5951

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

Runtime coverage analysis

This section shows analysis of runtime coverage data.

For futher technical details on how this section is generated, please see the Glossary .

Complex functions with low coverage

Func name Function total lines Lines covered at runtime percentage covered Reached by fuzzers
ojph::local::bb_skip_sop(ojph::local::bit_read_buf*) 36 13 36.11% ['ojph_expand_fuzz_target']
ojph::local::param_sot::read(ojph::infile_base*,bool) 71 18 25.35% ['ojph_expand_fuzz_target']
ojph::local::param_dfs::read(ojph::infile_base*) 43 22 51.16% ['ojph_expand_fuzz_target']
ojph::local::param_atk::read_coefficient(ojph::infile_base*,float&,int&) 58 16 27.58% ['ojph_expand_fuzz_target']
ojph::local::resolution::pull_line() 222 122 54.95% ['ojph_expand_fuzz_target']
ojph::local::tile::parse_tile_header(ojph::local::param_sotconst&,ojph::infile_base*,unsignedlongconst&) 129 66 51.16% ['ojph_expand_fuzz_target']
ojph::local::ojph_decode_codeblock64(unsignedchar*,unsignedlong*,unsignedint,unsignedint,unsignedint,unsignedint,unsignedint,unsignedint,unsignedint,bool) 560 239 42.67% ['ojph_expand_fuzz_target']
ojph::local::avx2_rev_convert(ojph::line_bufconst*,unsignedint,ojph::line_buf*,unsignedint,long,unsignedint) 58 17 29.31% ['ojph_expand_fuzz_target']
ojph::local::avx2_rct_backward(ojph::line_bufconst*,ojph::line_bufconst*,ojph::line_bufconst*,ojph::line_buf*,ojph::line_buf*,ojph::line_buf*,unsignedint) 91 34 37.36% ['ojph_expand_fuzz_target']
ojph::local::avx2_rev_vert_step32(ojph::local::lifting_stepconst*,ojph::line_bufconst*,ojph::line_bufconst*,ojph::line_bufconst*,unsignedint,bool) 120 40 33.33% ['ojph_expand_fuzz_target']
ojph::local::avx2_rev_vert_step64(ojph::local::lifting_stepconst*,ojph::line_bufconst*,ojph::line_bufconst*,ojph::line_bufconst*,unsignedint,bool) 99 40 40.40% ['ojph_expand_fuzz_target']
ojph::local::avx2_rev_horz_syn64(ojph::local::param_atkconst*,ojph::line_bufconst*,ojph::line_bufconst*,ojph::line_bufconst*,unsignedint,bool) 133 72 54.13% ['ojph_expand_fuzz_target']

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