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
sam_itr_regarray /src/htslib/sam.c 4 ['N/A', 'N/A', 'N/A', 'int'] 31 0 127 19 8 669 0 5972 417
s3_vopen /src/htslib/hfile_s3.c 3 ['N/A', 'N/A', 'N/A'] 11 0 49 6 3 150 0 782 355
vhopen_libcurl /src/htslib/hfile_libcurl.c 3 ['N/A', 'N/A', 'N/A'] 14 0 59 9 4 153 0 801 326
bcf_index_build /src/htslib/vcf.c 2 ['N/A', 'int'] 27 0 20 3 2 927 0 9356 316
bam_mplp_auto /src/htslib/sam.c 5 ['N/A', 'N/A', 'N/A', 'N/A', 'N/A'] 8 0 72 10 4 34 0 328 277
rans_uncompress_O1_32x16_avx2 /src/htslib/htscodecs/htscodecs/rANS_static32x16pr_avx2.c 4 ['N/A', 'int', 'N/A', 'int'] 4 0 4678 103 35 24 0 185 126
sam_hdr_remove_lines /src/htslib/header.c 4 ['N/A', 'N/A', 'N/A', 'N/A'] 11 0 366 59 24 80 0 703 119
bcf_hdr_subset /src/htslib/vcf.c 4 ['N/A', 'int', 'N/A', 'N/A'] 11 0 390 49 18 96 0 766 118
rans_compress_O1_32x16_avx512 /src/htslib/htscodecs/htscodecs/rANS_static32x16pr_avx512.c 4 ['N/A', 'int', 'N/A', 'N/A'] 8 0 1886 92 29 35 0 223 117
sam_itr_queryi /src/htslib/sam.c 4 ['N/A', 'int', 'size_t', 'size_t'] 31 0 67 8 4 666 0 5950 89

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

Functions statically reachable by fuzzers
67.0%
1165 / 1735
Cyclomatic complexity statically reachable by fuzzers
77.0%
13240 / 17244

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/htslib/test/fuzz/hts_open_fuzzer.c ['hts_open_fuzzer'] []
/src/htslib/htscodecs/htscodecs/c_simple_model.h ['hts_open_fuzzer'] []
/src/htslib/htscodecs/htscodecs/pack.c ['hts_open_fuzzer'] []
/src/htslib/./htslib/hts_endian.h ['hts_open_fuzzer'] []
/src/htslib/cram/cram_io.h ['hts_open_fuzzer'] []
/src/htslib/cram/../htslib/hts_endian.h ['hts_open_fuzzer'] []
/src/htslib/htscodecs/htscodecs/arith_dynamic.c ['hts_open_fuzzer'] []
/src/htslib/cram/../textutils_internal.h ['hts_open_fuzzer'] []
/src/htslib/vcf.c ['hts_open_fuzzer'] []
/src/htslib/./header.h ['hts_open_fuzzer'] []
/src/htslib/./htslib/hts_expr.h ['hts_open_fuzzer'] []
/src/htslib/./textutils_internal.h ['hts_open_fuzzer'] []
/src/htslib/kstring.c ['hts_open_fuzzer'] []
/src/htslib/cram/cram_io.c ['hts_open_fuzzer'] []
/src/htslib/./sam_internal.h ['hts_open_fuzzer'] []
/src/htslib/htscodecs/htscodecs/rANS_word.h [] []
/src/htslib/./htslib/khash.h ['hts_open_fuzzer'] []
/src/htslib/hfile_gcs.c ['hts_open_fuzzer'] []
/src/htslib/hfile_libcurl.c ['hts_open_fuzzer'] []
/src/htslib/./htslib/hfile.h ['hts_open_fuzzer'] []
/src/htslib/./htslib/khash_str2int.h [] []
/src/htslib/htscodecs/htscodecs/tokenise_name3.c ['hts_open_fuzzer'] []
/src/htslib/cram/cram_codecs.c ['hts_open_fuzzer'] []
/src/htslib/cram/pooled_alloc.c ['hts_open_fuzzer'] []
/src/htslib/./htslib/hts.h ['hts_open_fuzzer'] []
/src/htslib/./htslib/vcf.h ['hts_open_fuzzer'] []
/src/htslib/htscodecs/htscodecs/pooled_alloc.h ['hts_open_fuzzer'] []
/src/htslib/htscodecs/htscodecs/rANS_static32x16pr_avx512.c [] []
/src/htslib/header.c ['hts_open_fuzzer'] []
/src/htslib/htscodecs/htscodecs/c_range_coder.h ['hts_open_fuzzer'] []
/src/htslib/hts.c ['hts_open_fuzzer'] []
/src/htslib/htscodecs/htscodecs/rANS_static16_int.h [] []
/src/htslib/htscodecs/htscodecs/rANS_static4x16pr.c ['hts_open_fuzzer'] []
/src/htslib/simd.c [] []
/src/htslib/htscodecs/htscodecs/rANS_static32x16pr_avx2.c [] []
/src/htslib/htscodecs/htscodecs/varint.h ['hts_open_fuzzer'] []
/src/htslib/./htslib/sam.h ['hts_open_fuzzer'] []
/src/htslib/htscodecs/htscodecs/utils.c ['hts_open_fuzzer'] []
/src/htslib/htscodecs/htscodecs/rANS_static32x16pr.c [] []
/src/htslib/cram/string_alloc.c ['hts_open_fuzzer'] []
/src/htslib/./hts_internal.h ['hts_open_fuzzer'] []
/src/htslib/htscodecs/htscodecs/rANS_byte.h ['hts_open_fuzzer'] []
/src/htslib/region.c [] []
/src/htslib/htscodecs/htscodecs/rle.c ['hts_open_fuzzer'] []
/src/htslib/./hts_time_funcs.h [] []
/src/htslib/cram/../htscodecs/htscodecs/varint.h [] []
/src/htslib/hfile.c ['hts_open_fuzzer'] []
/src/htslib/cram/cram_encode.c ['hts_open_fuzzer'] []
/src/htslib/htscodecs/htscodecs/fqzcomp_qual.c ['hts_open_fuzzer'] []
/src/htslib/htscodecs/htscodecs/utils.h ['hts_open_fuzzer'] []
/src/htslib/bgzf.c ['hts_open_fuzzer'] []
/src/htslib/hfile_s3_write.c ['hts_open_fuzzer'] []
/src/htslib/cram/mFILE.c ['hts_open_fuzzer'] []
/src/htslib/cram/../sam_internal.h ['hts_open_fuzzer'] []
/src/htslib/./cram/cram_io.h ['hts_open_fuzzer'] []
/src/htslib/cram/cram_structs.h ['hts_open_fuzzer'] []
/src/htslib/cram/cram_stats.c ['hts_open_fuzzer'] []
/src/htslib/cram/open_trace_file.c ['hts_open_fuzzer'] []
/src/htslib/cram/cram_decode.c ['hts_open_fuzzer'] []
/src/htslib/./cram/../htslib/khash.h ['hts_open_fuzzer'] []
/src/htslib/thread_pool.c ['hts_open_fuzzer'] []
/src/htslib/md5.c ['hts_open_fuzzer'] []
/src/htslib/cram/cram_index.c ['hts_open_fuzzer'] []
/src/htslib/hts_expr.c ['hts_open_fuzzer'] []
/src/htslib/./htslib/bgzf.h ['hts_open_fuzzer'] []
/src/htslib/htscodecs/htscodecs/rANS_static32x16pr_sse4.c [] []
/src/htslib/cram/../htslib/hfile.h ['hts_open_fuzzer'] []
/src/htslib/sam_mods.c [] []
/src/htslib/faidx.c ['hts_open_fuzzer'] []
/src/htslib/htscodecs/htscodecs/rANS_static.c ['hts_open_fuzzer'] []
/src/htslib/cram/../htslib/kstring.h ['hts_open_fuzzer'] []
/src/htslib/sam.c ['hts_open_fuzzer'] []
/src/htslib/textutils.c ['hts_open_fuzzer'] []
/src/htslib/multipart.c ['hts_open_fuzzer'] []
/src/htslib/cram/cram_codecs.h [] []
/src/htslib/cram/../header.h ['hts_open_fuzzer'] []
/usr/local/lib/clang/18/include/cpuid.h ['hts_open_fuzzer'] []
/src/htslib/./htslib/kstring.h ['hts_open_fuzzer'] []
/src/htslib/htscodecs/htscodecs/htscodecs.c [] []
/src/htslib/tbx.c ['hts_open_fuzzer'] []
/src/htslib/hfile_s3.c ['hts_open_fuzzer'] []

Directories in report

Directory
/src/htslib/htscodecs/htscodecs/
/src/htslib/./cram/
/src/htslib/./cram/../htslib/
/src/htslib/./
/src/htslib/cram/
/src/htslib/
/src/htslib/cram/../htslib/
/usr/local/lib/clang/18/include/
/src/htslib/cram/../
/src/htslib/cram/../htscodecs/htscodecs/
/src/htslib/test/fuzz/
/src/htslib/./htslib/