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 |
---|
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 project has no code coverage. Will not display blockers as blockers depend on code coverage.
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|
decoder_thread_main
|
/src/dav1d/examples/dav1dplay.c | 1 | ['void*'] | 17 | 0 | 64 | 14 | 25 | 348 | 0 | 2083 | 2083 |
parse
|
/src/dav1d/tools/dav1d_cli_parse.c | 4 | ['int', 'char**', 'CLISettings*', 'Dav1dSettings*'] | 5 | 0 | 112 | 37 | 48 | 35 | 0 | 165 | 164 |
dav1d_worker_task
|
/src/dav1d/src/thread_task.c | 1 | ['void*'] | 9 | 0 | 314 | 78 | 123 | 219 | 0 | 1339 | 163 |
read_coef_tree
|
/src/dav1d/src/recon_tmpl.c | 9 | ['Dav1dTaskContext*', 'enum BlockSize', 'Av1Block*', 'enum RectTxfmSize', 'int', 'uint16_t*', 'int', 'int', 'pixel*'] | 5 | 0 | 50 | 14 | 20 | 34 | 1 | 158 | 152 |
check_load_tmvs
|
/src/dav1d/tests/checkasm/refmvs.c | 1 | ['Dav1dRefmvsDSPContext*'] | 3 | 0 | 46 | 6 | 16 | 20 | 1 | 57 | 56 |
check_itxfm_add
|
/src/dav1d/tests/checkasm/itx.c | 2 | ['Dav1dInvTxfmDSPContext*', 'enum RectTxfmSize'] | 3 | 0 | 25 | 3 | 7 | 24 | 0 | 52 | 48 |
checkasm_check_func
|
/src/dav1d/tests/checkasm/checkasm.c | 2 | ['void*', 'char*'] | 5 | 0 | 31 | 8 | 12 | 22 | 0 | 39 | 39 |
dp_rd_ctx_create
|
/src/dav1d/examples/dav1dplay.c | 2 | ['int', 'char**'] | 7 | 0 | 52 | 10 | 14 | 42 | 1 | 136 | 39 |
ipred_z2_c
|
/src/dav1d/src/ipred_tmpl.c | 8 | ['pixel*', 'ptrdiff_t', 'pixel*', 'int', 'int', 'int', 'int', 'int'] | 2 | 0 | 35 | 6 | 8 | 10 | 0 | 38 | 37 |
loop_filter_h_sb128y_c
|
/src/dav1d/src/loopfilter_tmpl.c | 7 | ['pixel*', 'ptrdiff_t', 'uint32_t*', 'uint8_t[]', 'ptrdiff_t', 'Av1FilterLUT*', 'int'] | 2 | 0 | 8 | 3 | 4 | 8 | 0 | 37 | 35 |
Implementing fuzzers that target the above functions will improve reachability such that it becomes:
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 |
---|
This sections provides heuristics that can be used as input to a fuzz engine when running a given fuzz target. The current focus is on providing input that is usable by libFuzzer.
Use this with the libFuzzer -dict=DICT.file flag
The below fuzzers are templates and suggestions for how to target the set of optimal functions above
#include "ada_fuzz_header.h"
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
af_safe_gb_init(data, size);
/* target decoder_thread_main */
UNKNOWN_TYPE unknown_0;
decoder_thread_main(unknown_0);
/* target dp_rd_ctx_create */
int new_var20 = ada_safe_get_int();
char **new_var21 = af_get_double_char_p();
dp_rd_ctx_create(new_var20, new_var21);
af_safe_gb_cleanup();
}
#include "ada_fuzz_header.h"
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
af_safe_gb_init(data, size);
/* target parse */
int new_var1 = ada_safe_get_int();
char **new_var2 = af_get_double_char_p();
UNKNOWN_TYPE unknown_3;
UNKNOWN_TYPE unknown_4;
parse(new_var1, new_var2, unknown_3, unknown_4);
af_safe_gb_cleanup();
}
#include "ada_fuzz_header.h"
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
af_safe_gb_init(data, size);
/* target dav1d_worker_task */
UNKNOWN_TYPE unknown_5;
dav1d_worker_task(unknown_5);
af_safe_gb_cleanup();
}
#include "ada_fuzz_header.h"
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
af_safe_gb_init(data, size);
/* target read_coef_tree */
UNKNOWN_TYPE unknown_6;
UNKNOWN_TYPE unknown_7;
UNKNOWN_TYPE unknown_8;
UNKNOWN_TYPE unknown_9;
int new_var10 = ada_safe_get_int();
UNKNOWN_TYPE unknown_11;
int new_var12 = ada_safe_get_int();
int new_var13 = ada_safe_get_int();
UNKNOWN_TYPE unknown_14;
read_coef_tree(unknown_6, unknown_7, unknown_8, unknown_9, new_var10, unknown_11, new_var12, new_var13, unknown_14);
af_safe_gb_cleanup();
}
#include "ada_fuzz_header.h"
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
af_safe_gb_init(data, size);
/* target check_load_tmvs */
UNKNOWN_TYPE unknown_15;
check_load_tmvs(unknown_15);
af_safe_gb_cleanup();
}
#include "ada_fuzz_header.h"
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
af_safe_gb_init(data, size);
/* target check_itxfm_add */
UNKNOWN_TYPE unknown_16;
UNKNOWN_TYPE unknown_17;
check_itxfm_add(unknown_16, unknown_17);
af_safe_gb_cleanup();
}
#include "ada_fuzz_header.h"
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
af_safe_gb_init(data, size);
/* target checkasm_check_func */
UNKNOWN_TYPE unknown_18;
char *new_var19 = ada_safe_get_char_p();
checkasm_check_func(unknown_18, new_var19);
af_safe_gb_cleanup();
}
#include "ada_fuzz_header.h"
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
af_safe_gb_init(data, size);
/* target ipred_z2_c */
UNKNOWN_TYPE unknown_22;
UNKNOWN_TYPE unknown_23;
UNKNOWN_TYPE unknown_24;
int new_var25 = ada_safe_get_int();
int new_var26 = ada_safe_get_int();
int new_var27 = ada_safe_get_int();
int new_var28 = ada_safe_get_int();
int new_var29 = ada_safe_get_int();
ipred_z2_c(unknown_22, unknown_23, unknown_24, new_var25, new_var26, new_var27, new_var28, new_var29);
af_safe_gb_cleanup();
}
#include "ada_fuzz_header.h"
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
af_safe_gb_init(data, size);
/* target loop_filter_h_sb128y_c */
UNKNOWN_TYPE unknown_30;
UNKNOWN_TYPE unknown_31;
UNKNOWN_TYPE unknown_32;
UNKNOWN_TYPE unknown_33;
UNKNOWN_TYPE unknown_34;
UNKNOWN_TYPE unknown_35;
int new_var36 = ada_safe_get_int();
loop_filter_h_sb128y_c(unknown_30, unknown_31, unknown_32, unknown_33, unknown_34, unknown_35, new_var36);
af_safe_gb_cleanup();
}
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
Source file | Reached by | Covered by |
---|---|---|
/src/dav1d/include/common/frame.h | [] | [] |
/src/dav1d/src/loopfilter.h | [] | [] |
/src/dav1d/src/itx_1d.c | [] | [] |
/src/dav1d/src/env.h | [] | [] |
/src/dav1d/src/x86/looprestoration.h | [] | [] |
/src/dav1d/src/lf_apply_tmpl.c | [] | [] |
/src/dav1d/src/riscv/mc.h | [] | [] |
/src/dav1d/tools/output/md5.c | [] | [] |
/src/dav1d/tools/input/input.c | [] | [] |
/src/dav1d/src/mc_tmpl.c | [] | [] |
/src/dav1d/src/loongarch/ipred.h | [] | [] |
/src/dav1d/src/thread_task.c | [] | [] |
/src/dav1d/tools/input/annexb.c | [] | [] |
/src/dav1d/src/loongarch/looprestoration.h | [] | [] |
/src/dav1d/include/common/intops.h | [] | [] |
/src/dav1d/tools/output/output.c | [] | [] |
/src/dav1d/src/arm/mc.h | [] | [] |
/src/dav1d/src/looprestoration.h | [] | [] |
/src/dav1d/src/lr_apply_tmpl.c | [] | [] |
/src/dav1d/examples/dav1dplay.c | [] | [] |
/src/dav1d/src/ppc/itx_tmpl.c | [] | [] |
/src/dav1d/tests/checkasm/cdef.c | [] | [] |
/src/dav1d/src/riscv/cpu.c | [] | [] |
/src/dav1d/src/x86/itx.h | [] | [] |
/src/dav1d/include/dav1d/common.h | [] | [] |
/src/dav1d/src/ppc/cdef_tmpl.c | [] | [] |
/src/dav1d/src/ppc/looprestoration_tmpl.c | [] | [] |
/src/dav1d/src/ppc/loopfilter_tmpl.c | [] | [] |
/src/dav1d/src/obu.c | [] | [] |
/src/dav1d/src/itx_1d.h | [] | [] |
/src/dav1d/tests/checkasm/checkasm.c | [] | [] |
/src/dav1d/src/fg_apply_tmpl.c | [] | [] |
/src/dav1d/src/loongarch/refmvs.h | [] | [] |
/src/dav1d/src/x86/refmvs.h | [] | [] |
/src/dav1d/src/x86/mc.h | [] | [] |
/src/dav1d/src/loopfilter_tmpl.c | [] | [] |
/src/dav1d/tools/output/null.c | [] | [] |
/src/dav1d/tools/input/section5.c | [] | [] |
/src/dav1d/include/common/dump.h | [] | [] |
/src/dav1d/src/loongarch/loopfilter.h | [] | [] |
/src/dav1d/src/itx.h | [] | [] |
/src/dav1d/src/picture.c | [] | [] |
/src/dav1d/src/riscv/pal.h | [] | [] |
/src/dav1d/src/internal.h | [] | [] |
/src/dav1d/tests/checkasm/refmvs.c | [] | [] |
/src/dav1d/src/recon.h | [] | [] |
/src/dav1d/src/x86/msac.h | [] | [] |
/src/dav1d/src/thread.h | [] | [] |
/src/dav1d/src/x86/pal.h | [] | [] |
/src/dav1d/src/ppc/cdef.h | [] | [] |
/src/dav1d/tools/compat/getopt.c | [] | [] |
/src/dav1d/tools/dav1d_cli_parse.c | [] | [] |
/src/dav1d/tests/checkasm/msac.c | [] | [] |
/src/dav1d/src/looprestoration_tmpl.c | [] | [] |
/src/dav1d/src/ipred.h | [] | [] |
/src/dav1d/src/x86/cpu.c | [] | [] |
/src/dav1d/tests/checkasm/itx.c | [] | [] |
/src/dav1d/src/ref.h | [] | [] |
/src/dav1d/src/cdef_tmpl.c | [] | [] |
/src/dav1d/src/x86/cdef.h | [] | [] |
/src/dav1d/src/filmgrain_tmpl.c | [] | [] |
/src/dav1d/src/loongarch/cdef.h | [] | [] |
/src/dav1d/tools/dav1d.c | [] | [] |
/src/dav1d/examples/dp_renderer_sdl.c | [] | [] |
/src/dav1d/src/riscv/cpu.h | [] | [] |
/src/dav1d/src/wedge.h | [] | [] |
/src/dav1d/tests/checkasm/loopfilter.c | [] | [] |
/src/dav1d/src/mem.c | [] | [] |
/src/dav1d/tests/checkasm/mc.c | [] | [] |
/src/dav1d/tools/input/ivf.c | [] | [] |
/src/dav1d/src/getbits.h | [] | [] |
/src/dav1d/src/arm/ipred.h | [] | [] |
/src/dav1d/include/dav1d/version.h | [] | [] |
/src/dav1d/src/getbits.c | [] | [] |
/src/dav1d/src/arm/refmvs.h | [] | [] |
/src/dav1d/include/common/attributes.h | [] | [] |
/src/dav1d/src/qm.c | [] | [] |
/src/dav1d/src/cdef_apply_tmpl.c | [] | [] |
/src/dav1d/src/x86/loopfilter.h | [] | [] |
/src/dav1d/src/cdf.c | [] | [] |
/src/dav1d/src/lib.c | [] | [] |
/src/dav1d/src/ppc/dav1d_types.h | [] | [] |
/src/dav1d/src/fg_apply.h | [] | [] |
/src/dav1d/src/cpu.c | [] | [] |
/src/dav1d/src/ppc/utils.h | [] | [] |
/src/dav1d/src/msac.c | [] | [] |
/src/dav1d/src/arm/cdef.h | [] | [] |
/src/dav1d/src/data.c | [] | [] |
/src/dav1d/src/ppc/looprestoration.h | [] | [] |
/src/dav1d/tools/output/y4m2.c | [] | [] |
/src/dav1d/src/loongarch/cpu.c | [] | [] |
/src/dav1d/src/arm/looprestoration.h | [] | [] |
/src/dav1d/src/riscv/cdef.h | [] | [] |
/src/dav1d/tests/checkasm/ipred.c | [] | [] |
/src/dav1d/src/ppc/mc.h | [] | [] |
/src/dav1d/src/intra_edge.c | [] | [] |
/src/dav1d/src/pal.h | [] | [] |
/src/dav1d/src/warpmv.c | [] | [] |
/src/dav1d/src/ppc/cpu.c | [] | [] |
/src/dav1d/src/ctx.c | [] | [] |
/src/dav1d/src/msac.h | [] | [] |
/src/dav1d/src/intra_edge.h | [] | [] |
/src/dav1d/src/ref.c | [] | [] |
/src/dav1d/include/compat/msvc/stdatomic.h | [] | [] |
/src/dav1d/include/common/bitdepth.h | [] | [] |
/src/dav1d/src/refmvs.h | [] | [] |
/src/dav1d/src/arm/filmgrain.h | [] | [] |
/src/dav1d/src/riscv/ipred.h | [] | [] |
/src/dav1d/src/ipred_prepare.h | [] | [] |
/src/dav1d/src/log.c | [] | [] |
/src/dav1d/src/win32/thread.c | [] | [] |
/src/dav1d/src/arm/itx.h | [] | [] |
/src/dav1d/tests/checkasm/looprestoration.c | [] | [] |
/src/dav1d/src/tables.c | [] | [] |
/src/dav1d/src/arm/loopfilter.h | [] | [] |
/src/dav1d/src/cpu.h | [] | [] |
/src/dav1d/src/mc.h | [] | [] |
/src/dav1d/src/scan.c | [] | [] |
/src/dav1d/tools/output/yuv.c | [] | [] |
/src/dav1d/examples/dp_renderer_placebo.c | [] | [] |
/src/dav1d/src/x86/ipred.h | [] | [] |
/src/dav1d/src/ppc/itx.h | [] | [] |
/src/dav1d/src/ipred_tmpl.c | [] | [] |
/src/dav1d/tests/checkasm/checkasm.h | [] | [] |
/src/dav1d/src/wedge.c | [] | [] |
/src/dav1d/src/itx_tmpl.c | [] | [] |
/src/dav1d/src/x86/filmgrain.h | [] | [] |
/src/dav1d/src/ctx.h | [] | [] |
/src/dav1d/tests/checkasm/filmgrain.c | [] | [] |
/src/dav1d/src/loongarch/itx.h | [] | [] |
/src/dav1d/src/recon_tmpl.c | [] | [] |
/src/dav1d/src/cdef.h | [] | [] |
/src/dav1d/include/common/validate.h | [] | [] |
/src/dav1d/src/refmvs.c | [] | [] |
/src/dav1d/examples/dp_fifo.c | [] | [] |
/src/dav1d/src/decode.c | [] | [] |
/src/dav1d/src/filmgrain.h | [] | [] |
/src/dav1d/tests/seek_stress.c | [] | [] |
/src/dav1d/src/arm/cpu.c | [] | [] |
/src/dav1d/tools/input/parse.h | [] | [] |
/src/dav1d/src/pal.c | [] | [] |
/src/dav1d/src/ppc/mc_tmpl.c | [] | [] |
/src/dav1d/src/loongarch/mc.h | [] | [] |
/src/dav1d/examples/dp_renderer.h | [] | [] |
/src/dav1d/src/riscv/itx.h | [] | [] |
/src/dav1d/src/ppc/loopfilter.h | [] | [] |
/src/dav1d/src/loongarch/looprestoration_inner.c | [] | [] |
/src/dav1d/src/lf_mask.c | [] | [] |
/src/dav1d/tools/output/xxhash.c | [] | [] |
/src/dav1d/src/mem.h | [] | [] |
Directory |
---|
/src/dav1d/src/riscv/ |
/src/dav1d/src/ |
/src/dav1d/tools/output/ |
/src/dav1d/src/win32/ |
/src/dav1d/tools/compat/ |
/src/dav1d/src/loongarch/ |
/src/dav1d/src/ppc/ |
/src/dav1d/tests/ |
/src/dav1d/tests/checkasm/ |
/src/dav1d/tools/ |
/src/dav1d/include/common/ |
/src/dav1d/include/dav1d/ |
/src/dav1d/include/compat/msvc/ |
/src/dav1d/examples/ |
/src/dav1d/tools/input/ |
/src/dav1d/src/arm/ |
/src/dav1d/src/x86/ |
This section shows a list of 3rd party function calls and their relative coverage information. By static analysis of the target project code, all of the 3rd party function call and their caller information, including the source file and line number that initiate the call are captured. The caller source code file and line number are shown in column 2 while column 1 is the function name of the 3rd party function call. Each occurrent of the 3rd party function call will occuply a separate row. Column 3 of each row indicate if the 3rd party call in the source file line is unreachable. Column 4 lists all fuzzers that have covered that particular system call in that specific location (source file and line)during their dynamic fuzzing.
Target sink | Callsite location | Reached by fuzzer | Covered by Fuzzers |
---|