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: av2_dec_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 1 10.0%
gold [1:9] 0 0.0%
yellow [10:29] 0 0.0%
greenyellow [30:49] 0 0.0%
lawngreen 50+ 9 90.0%
All colors 10 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
1 2 LLVMFuzzerTestOneInput call site: 00002 avm_codec_destroy

Runtime coverage analysis

Covered functions
2135
Functions that are reachable but not covered
0
Reachable functions
9
Percentage of reachable functions covered
100.0%
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
/src/avm/examples/av2_dec_fuzzer.cc 1
/src/avm/av2/av2_dx_iface.c 1
/src/avm/avm/src/avm_decoder.c 4
/src/avm/avm/src/avm_codec.c 1
/src/avm/avm_ports/mem_ops.h 1

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
frame_worker_hook /src/avm/av2/av2_dx_iface.c 2 ['N/A', 'N/A'] 23 0 39 6 3 1070 0 9333 9333
parse_decode_block /src/avm/av2/decoder/decodeframe.c 9 ['N/A', 'N/A', 'int', 'int', 'N/A', 'char', 'char', 'N/A', 'int'] 13 0 605 99 37 443 0 3345 2812
predict_and_reconstruct_intra_block /src/avm/av2/decoder/decodeframe.c 7 ['N/A', 'N/A', 'N/A', 'int', 'int', 'int', 'char'] 7 0 109 18 8 98 0 1180 1056
av2_highbd_dr_prediction_z3_avx2 /src/avm/avm_dsp/x86/intrapred_avx2.c 10 ['N/A', 'size_t', 'int', 'int', 'N/A', 'N/A', 'int', 'int', 'int', 'int'] 4 0 207 48 7 40 0 514 514
read_coeffs_tx_intra_block /src/avm/av2/decoder/decodeframe.c 7 ['N/A', 'N/A', 'N/A', 'int', 'int', 'int', 'char'] 9 0 39 6 3 106 0 682 512
av2_highbd_dr_prediction_z3_idif_avx2 /src/avm/avm_dsp/x86/intrapred_avx2.c 10 ['N/A', 'size_t', 'int', 'int', 'N/A', 'N/A', 'int', 'int', 'int', 'int'] 4 0 207 48 7 42 0 471 445
predict_inter_block /src/avm/av2/decoder/decodeframe.c 3 ['N/A', 'N/A', 'char'] 13 0 86 15 6 229 0 1839 354

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

Functions statically reachable by fuzzers
43.0%
1632 / 3764
Cyclomatic complexity statically reachable by fuzzers
61.0%
15018 / 24590

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
av2_check_profile_interop_conformance 83 43 51.80% ['av2_dec_fuzzer']
opfl_allowed_cur_refs_bsize 41 8 19.51% ['av2_dec_fuzzer']
av2_reset_refmv_bank 31 6 19.35% ['av2_dec_fuzzer']
get_mi_location_from_collocated_mi 33 16 48.48% ['av2_dec_fuzzer']
avm_decode_banding_hints_metadata 49 10 20.40% ['av2_dec_fuzzer']
bru_active_map_validation 93 2 2.150% ['av2_dec_fuzzer']
sdp_chroma_part_from_luma 58 17 29.31% ['av2_dec_fuzzer']
av2_convolve_nonsep_blk8x8_highbd 56 11 19.64% ['av2_dec_fuzzer']
av2_convolve_nonsep_blk4x4_highbd 54 9 16.66% ['av2_dec_fuzzer']
av2_convolve_nonsep_dual_highbd 69 11 15.94% ['av2_dec_fuzzer']
av2_fill_tpl_mvs_sample_gap 124 5 4.032% ['av2_dec_fuzzer']
av2_setup_motion_field 87 26 29.88% ['av2_dec_fuzzer']
av2_setup_skip_mode_allowed 34 15 44.11% ['av2_dec_fuzzer']
add_tpl_ref_mv 126 32 25.39% ['av2_dec_fuzzer']
add_ref_mv_candidate 488 72 14.75% ['av2_dec_fuzzer']
sort_and_update_ref_idx 57 31 54.38% ['av2_dec_fuzzer']
get_pos_from_pos_idx 40 21 52.5% ['av2_dec_fuzzer']
av2_is_dv_in_local_range 203 103 50.73% ['av2_dec_fuzzer']
choose_primary_secondary_ref_frame 52 26 50.0% ['av2_dec_fuzzer']
av2_build_one_inter_predictor 37 18 48.64% ['av2_dec_fuzzer']
build_inter_predictors_8x8_and_bigger_facade 93 17 18.27% ['av2_dec_fuzzer']
build_inter_predictors_8x8_and_bigger 326 156 47.85% ['av2_dec_fuzzer']
get_warp_motion_vector_xy_pos 35 15 42.85% ['av2_dec_fuzzer']
cfl_luma_subsampling_420_hbd_ssse3 75 25 33.33% ['av2_dec_fuzzer']
cfl_luma_subsampling_444_hbd_ssse3 46 21 45.65% ['av2_dec_fuzzer']
av2_highbd_warp_affine_avx2 256 108 42.18% ['av2_dec_fuzzer']
store_vertical_filter_output_avx2 72 24 33.33% ['av2_dec_fuzzer']
av2_read_tilegroup_header 169 88 52.07% ['av2_dec_fuzzer']
read_uncompressed_header 1254 659 52.55% ['av2_dec_fuzzer']
check_ops_mlayer_tlayer_conformance 47 21 44.68% ['av2_dec_fuzzer']
activate_layer_configuration_record 54 26 48.14% ['av2_dec_fuzzer']
check_consistent_disp_order_hint_derivation 32 4 12.5% ['av2_dec_fuzzer']
process_tip_mode 37 10 27.02% ['av2_dec_fuzzer']
tip_mode_legal_check 54 7 12.96% ['av2_dec_fuzzer']
decode_partition_sb 44 19 43.18% ['av2_dec_fuzzer']
decode_mbmi_block 59 31 52.54% ['av2_dec_fuzzer']
read_inter_segment_id 52 27 51.92% ['av2_dec_fuzzer']
read_inter_compound_mode 44 14 31.81% ['av2_dec_fuzzer']
read_warp_delta 54 22 40.74% ['av2_dec_fuzzer']
av2_read_color_info 45 22 48.88% ['av2_dec_fuzzer']
read_metadata_short 173 54 31.21% ['av2_dec_fuzzer']
check_layerid_showable_frame_units 54 20 37.03% ['av2_dec_fuzzer']
av2_read_buffer_removal_timing_obu 44 15 34.09% ['av2_dec_fuzzer']
av2_read_operating_point_set_obu 193 99 51.29% ['av2_dec_fuzzer']

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/avm/av2/common/cdef_block.c [] []
/src/avm/av2/common/x86/av2_convolve_horiz_rs_sse4.c [] []
/src/avm/av2/av2_dx_iface.c ['av2_dec_fuzzer'] ['av2_dec_fuzzer']
/src/avm/av2/common/cdef.h [] []
/src/avm/av2/common/x86/intra_matrix_avx2.c [] []
/src/avm/avm_scale/yv12config.h [] []
/src/avm/av2/common/av2_txfm.h [] []
/src/avm/av2/common/pc_wiener_filters.h [] []
/src/avm/av2/common/entropymv.c [] []
/src/avm/av2/common/av2_loopfilter.c [] []
/src/avm/av2/decoder/obu_lcr.c [] []
/src/avm/avm/src/avm_integer.c [] []
/src/avm/avm/src/avm_image.c [] []
/src/avm/av2/common/pred_common.c [] []
/src/avm/av2/common/av2_txfm.c [] []
/src/avm/av2/common/enums.h [] []
/src/avm/av2/common/bru.c [] []
/src/avm/avm_dsp/x86/avm_convolve_copy_avx2.c [] []
/src/avm/avm_dsp/x86/loopfilter_sse4.c [] []
/src/avm/av2/common/seg_common.c [] []
/src/avm/av2/decoder/obu_ops.c [] []
/src/avm/av2/common/convolve.h [] []
/src/avm/avm_dsp/x86/convolve_avx2.h [] []
/src/avm/av2/common/entropy.h [] []
/src/avm/av2/common/gdf_block.c [] []
/src/avm/avm_ports/avm_once.h [] []
/src/avm/av2/common/restoration.h [] []
/src/avm/avm_dsp/avm_dsp_rtcd.c [] []
/src/avm/avm_dsp/entdec.c [] []
/src/avm/av2/common/x86/highbd_inv_txfm_avx2.c [] []
/src/avm/av2/common/scale.c [] []
/src/avm/avm_dsp/x86/highbd_convolve_avx512_dispatch.c [] []
/src/avm/av2/common/gdf_block_avx2.c [] []
/src/avm/av2/common/tile_common.h [] []
/src/avm/av2/common/x86/cfl_ssse3.c [] []
/src/avm/av2/decoder/decoder.c [] []
/src/avm/av2/common/x86/reconinter_ssse3.c [] []
/src/avm/av2/common/x86/reconinter_avx2.c [] []
/src/avm/av2/common/warped_motion.h [] []
/src/avm/av2/common/filter.h [] []
/src/avm/av2/common/x86/reconinter_sse4.c [] []
/src/avm/avm_dsp/entdec.h [] []
/src/avm/av2/common/bru.h [] []
/src/avm/avm_dsp/x86/avm_asm_stubs.c [] []
/src/avm/av2/common/x86/highbd_convolve_2d_sse4.c [] []
/src/avm/avm_mem/avm_mem.c [] []
/src/avm/av2/decoder/annexF.c [] []
/src/avm/avm_dsp/prob.h [] []
/src/avm/av2/decoder/decodeframe.c [] []
/src/avm/av2/decoder/obu_qm.c [] []
/src/avm/avm_dsp/blend_a64_hmask.c [] []
/src/avm/av2/common/x86/highbd_convolve_2d_ssse3.c [] []
/src/avm/av2/common/blockd.c [] []
/src/avm/avm_ports/x86.h [] []
/src/avm/av2/common/common_data.h [] []
/src/avm/avm_dsp/x86/synonyms_avx2.h [] []
/src/avm/av2/common/intra_dip.cc [] []
/src/avm/avm_dsp/x86/blend_a64_hmask_sse4.c [] []
/src/avm/avm_dsp/x86/highbd_convolve_avx2.c [] []
/src/avm/av2/common/frame_buffers.c [] []
/src/avm/av2/common/x86/cfl_sse2.c [] []
/src/avm/av2/common/x86/affine_optflow_refine_avx512.c [] []
/src/avm/avm_dsp/x86/highbd_intrapred_sse2.c [] []
/src/avm/avm_dsp/x86/avm_convolve_copy_sse2.c [] []
/src/avm/av2/common/common.h [] []
/src/avm/avm_dsp/avm_dsp_common.h [] []
/src/avm/avm_dsp/avm_convolve.c [] []
/src/avm/avm/internal/avm_codec_internal.h [] []
/src/avm/av2/common/x86/highbd_jnt_convolve_sse4.c [] []
/src/avm/av2/common/x86/optflow_refine_sse4.c [] []
/src/avm/av2/common/cdef_block_avx2.c [] []
/src/avm/av2/common/gdf.c [] []
/src/avm/avm_ports/bitops.h [] []
/src/avm/avm_dsp/blend_a64_mask.c [] []
/src/avm/av2/common/ccso.c [] []
/src/avm/av2/common/cdef_block_sse2.c [] []
/src/avm/avm/src/avm_codec.c ['av2_dec_fuzzer'] ['av2_dec_fuzzer']
/src/avm/av2/common/x86/affine_optflow_refine_avx2.c [] []
/src/avm/av2/common/intra_matrix.c [] []
/src/avm/av2/common/av2_rtcd.c [] []
/src/avm/av2/common/x86/highbd_warp_plane_sse4.c [] []
/src/avm/av2/common/obu_util.c [] []
/src/avm/avm_dsp/sad.c [] []
/src/avm/av2/common/cdef_block_simd.h [] []
/src/avm/av2/decoder/obu_ci.c [] []
/src/avm/avm_dsp/x86/highbd_convolve_sse2.c [] []
/src/avm/av2/common/timing.c [] []
/src/avm/av2/common/cfl.c [] []
/src/avm/avm_dsp/x86/blend_a64_vmask_sse4.c [] []
/src/avm/av2/decoder/obu.c [] []
/src/avm/av2/common/x86/av2_convolve_scale_sse4.c [] []
/src/avm/av2/decoder/obu_fgm.c [] []
/src/avm/avm_dsp/x86/intrapred_avx2.c [] []
/src/avm/avm/src/avm_decoder.c ['av2_dec_fuzzer'] ['av2_dec_fuzzer']
/src/avm/avm_dsp/x86/highbd_convolve_ssse3.c [] []
/src/avm/av2/common/idct.c [] []
/src/avm/av2/decoder/obu_atlas.c [] []
/src/avm/avm_dsp/x86/blend_a64_mask_sse4.c [] []
/src/avm/av2/common/mv.h [] []
/src/avm/av2/common/x86/highbd_warp_affine_avx2.c [] []
/src/avm/avm_dsp/x86/convolve_sse4_1.h [] []
/src/avm/av2/common/quant_common.h [] []
/src/avm/av2/common/x86/highbd_wiener_convolve_avx2.c [] []
/src/avm/avm_dsp/x86/blend_sse4.h [] []
/src/avm/av2/common/entropymode.h [] []
/src/avm/av2/common/obu_util.h [] []
/work/build/config/av2_rtcd.h [] []
/src/avm/av2/common/cdef_block_sse4.c [] []
/src/avm/avm_dsp/binary_codes_reader.c [] []
/src/avm/av2/common/quant_common.c [] []
/src/avm/avm_dsp/intrapred.c [] []
/src/avm/avm_dsp/x86/blend_a64_mask_avx2.c [] []
/src/avm/av2/common/x86/highbd_inv_txfm_sse4.c [] []
/src/avm/av2/common/entropy.c [] []
/src/avm/av2/common/x86/highbd_ccso_avx2.c [] []
/src/avm/avm_dsp/loopfilter.c [] []
/src/avm/av2/common/hr_coding.h [] []
/src/avm/av2/common/x86/intra_edge_sse4.c [] []
/src/avm/avm_dsp/recenter.h [] []
/src/avm/examples/av2_dec_fuzzer.cc ['av2_dec_fuzzer'] ['av2_dec_fuzzer']
/src/avm/avm_scale/generic/yv12config.c [] []
/src/avm/av2/common/x86/highbd_wiener_convolve_ssse3.c [] []
/src/avm/avm_ports/mem_ops.h ['av2_dec_fuzzer'] ['av2_dec_fuzzer']
/src/avm/av2/common/x86/highbd_jnt_convolve_avx2.c [] []
/src/avm/avm_dsp/bitreader.c [] []
/src/avm/avm_dsp/x86/synonyms.h [] []
/src/avm/av2/common/entropymode.c [] []
/src/avm/av2/common/txb_common.h [] []
/src/avm/av2/common/reconintra.h [] []
/src/avm/avm_dsp/x86/entdec_avx2.c [] []
/src/avm/avm_dsp/bitwriter_buffer.c [] []
/src/avm/avm_dsp/x86/convolve_sse2.h [] []
/src/avm/av2/common/x86/bawp_avx2.c [] []
/src/avm/av2/common/av2_inv_txfm2d.c [] []
/src/avm/av2/decoder/annexF.h [] []
/src/avm/av2/common/hr_coding.c [] []
/src/avm/av2/common/tile_common.c [] []
/src/avm/av2/common/reconinter.c [] []
/src/avm/avm_dsp/grain_synthesis.c [] []
/src/avm/avm_dsp/bitreader_buffer.c [] []
/src/avm/av2/common/blockd.h [] []
/src/avm/avm_dsp/x86/lpf_common_sse2.h [] []
/src/avm/av2/common/level.h [] []
/src/avm/av2/common/mvref_common.c [] []
/src/avm/av2/decoder/decodetxb.c [] []
/src/avm/av2/common/alloccommon.c [] []
/src/avm/av2/common/seg_common.h [] []
/src/avm/av2/common/cfl.h [] []
/src/avm/av2/common/scale.h [] []
/src/avm/av2/common/cdef_block_ssse3.c [] []
/src/avm/av2/common/x86/highbd_convolve_2d_avx2.c [] []
/src/avm/av2/common/level.c [] []
/src/avm/av2/common/reconintra.c [] []
/src/avm/av2/decoder/decodemv.c [] []
/src/avm/av2/common/warped_motion.c [] []
/src/avm/av2/common/reconinter.h [] []
/src/avm/av2/common/cdef.c [] []
/src/avm/av2/common/x86/cfl_avx2.c [] []
/src/avm/av2/common/scan.h [] []
/src/avm/av2/decoder/obu_buf.c [] []
/src/avm/avm_util/avm_thread.c [] []
/src/avm/av2/decoder/detokenize.c [] []
/src/avm/av2/common/convolve.c [] []
/src/avm/avm_dsp/avm_convolve_common.h [] []
/src/avm/avm_scale/avm_scale_rtcd.c [] []
/src/avm/av2/decoder/decoder.h [] []
/src/avm/av2/common/tip.h [] []
/src/avm/av2/common/mvref_common.h [] []
/src/avm/av2/av2_iface_common.h [] []
/src/avm/av2/common/gdf.h [] []
/src/avm/avm_dsp/entcode.c [] []
/src/avm/avm_dsp/x86/highbd_convolve_avx512.c [] []
/src/avm/av2/common/tip.c [] []
/src/avm/avm_scale/generic/yv12extend.c [] []
/src/avm/av2/common/annexA.c [] []
/src/avm/av2/common/pred_common.h [] []
/src/avm/av2/common/av2_common_int.h [] []
/src/avm/av2/common/thread_common.c [] []
/src/avm/avm_dsp/blend_a64_vmask.c [] []
/src/avm/avm_dsp/bitreader.h [] []
/src/avm/av2/common/banding_metadata.c [] []
/src/avm/av2/common/restoration.c [] []
/src/avm/av2/common/entropymv.h [] []
/src/avm/avm_dsp/x86/convolve_avx512.h [] []

Directories in report

Directory
/work/build/config/
/src/avm/av2/
/src/avm/avm_ports/
/src/avm/av2/common/
/src/avm/examples/
/src/avm/avm_util/
/src/avm/avm_dsp/
/src/avm/avm_scale/
/src/avm/avm_mem/
/src/avm/av2/decoder/
/src/avm/avm_scale/generic/
/src/avm/avm/internal/
/src/avm/av2/common/x86/
/src/avm/avm/src/
/src/avm/avm_dsp/x86/