Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler. Number of rules (primarily dangerous function names) in C/C++ ruleset: 223 Examining data/dav1d-0.7.1/examples/dav1dplay.c Examining data/dav1d-0.7.1/examples/dp_fifo.c Examining data/dav1d-0.7.1/examples/dp_fifo.h Examining data/dav1d-0.7.1/examples/dp_renderer.h Examining data/dav1d-0.7.1/examples/dp_renderer_placebo.c Examining data/dav1d-0.7.1/examples/dp_renderer_sdl.c Examining data/dav1d-0.7.1/include/common/attributes.h Examining data/dav1d-0.7.1/include/common/bitdepth.h Examining data/dav1d-0.7.1/include/common/dump.h Examining data/dav1d-0.7.1/include/common/intops.h Examining data/dav1d-0.7.1/include/common/mem.h Examining data/dav1d-0.7.1/include/common/validate.h Examining data/dav1d-0.7.1/include/compat/gcc/stdatomic.h Examining data/dav1d-0.7.1/include/compat/getopt.h Examining data/dav1d-0.7.1/include/compat/msvc/stdatomic.h Examining data/dav1d-0.7.1/include/dav1d/common.h Examining data/dav1d-0.7.1/include/dav1d/data.h Examining data/dav1d-0.7.1/include/dav1d/dav1d.h Examining data/dav1d-0.7.1/include/dav1d/headers.h Examining data/dav1d-0.7.1/include/dav1d/picture.h Examining data/dav1d-0.7.1/src/arm/cdef_init_tmpl.c Examining data/dav1d-0.7.1/src/arm/cpu.c Examining data/dav1d-0.7.1/src/arm/cpu.h Examining data/dav1d-0.7.1/src/arm/ipred_init_tmpl.c Examining data/dav1d-0.7.1/src/arm/itx_init_tmpl.c Examining data/dav1d-0.7.1/src/arm/loopfilter_init_tmpl.c Examining data/dav1d-0.7.1/src/arm/looprestoration_init_tmpl.c Examining data/dav1d-0.7.1/src/arm/mc_init_tmpl.c Examining data/dav1d-0.7.1/src/arm/msac.h Examining data/dav1d-0.7.1/src/cdef.h Examining data/dav1d-0.7.1/src/cdef_apply.h Examining data/dav1d-0.7.1/src/cdef_apply_tmpl.c Examining data/dav1d-0.7.1/src/cdef_tmpl.c Examining data/dav1d-0.7.1/src/cdf.c Examining data/dav1d-0.7.1/src/cdf.h Examining data/dav1d-0.7.1/src/cpu.c Examining data/dav1d-0.7.1/src/cpu.h Examining data/dav1d-0.7.1/src/ctx.h Examining data/dav1d-0.7.1/src/data.c Examining data/dav1d-0.7.1/src/data.h Examining data/dav1d-0.7.1/src/decode.c Examining data/dav1d-0.7.1/src/decode.h Examining data/dav1d-0.7.1/src/dequant_tables.c Examining data/dav1d-0.7.1/src/dequant_tables.h Examining data/dav1d-0.7.1/src/env.h Examining data/dav1d-0.7.1/src/fg_apply.h Examining data/dav1d-0.7.1/src/fg_apply_tmpl.c Examining data/dav1d-0.7.1/src/film_grain.h Examining data/dav1d-0.7.1/src/film_grain_tmpl.c Examining data/dav1d-0.7.1/src/getbits.c Examining data/dav1d-0.7.1/src/getbits.h Examining data/dav1d-0.7.1/src/internal.h Examining data/dav1d-0.7.1/src/intra_edge.c Examining data/dav1d-0.7.1/src/intra_edge.h Examining data/dav1d-0.7.1/src/ipred.h Examining data/dav1d-0.7.1/src/ipred_prepare.h Examining data/dav1d-0.7.1/src/ipred_prepare_tmpl.c Examining data/dav1d-0.7.1/src/ipred_tmpl.c Examining data/dav1d-0.7.1/src/itx.h Examining data/dav1d-0.7.1/src/itx_1d.c Examining data/dav1d-0.7.1/src/itx_1d.h Examining data/dav1d-0.7.1/src/itx_tmpl.c Examining data/dav1d-0.7.1/src/levels.h Examining data/dav1d-0.7.1/src/lf_apply.h Examining data/dav1d-0.7.1/src/lf_apply_tmpl.c Examining data/dav1d-0.7.1/src/lf_mask.c Examining data/dav1d-0.7.1/src/lf_mask.h Examining data/dav1d-0.7.1/src/lib.c Examining data/dav1d-0.7.1/src/log.c Examining data/dav1d-0.7.1/src/log.h Examining data/dav1d-0.7.1/src/loopfilter.h Examining data/dav1d-0.7.1/src/loopfilter_tmpl.c Examining data/dav1d-0.7.1/src/looprestoration.h Examining data/dav1d-0.7.1/src/looprestoration_tmpl.c Examining data/dav1d-0.7.1/src/lr_apply.h Examining data/dav1d-0.7.1/src/lr_apply_tmpl.c Examining data/dav1d-0.7.1/src/mc.h Examining data/dav1d-0.7.1/src/mc_tmpl.c Examining data/dav1d-0.7.1/src/msac.c Examining data/dav1d-0.7.1/src/msac.h Examining data/dav1d-0.7.1/src/obu.c Examining data/dav1d-0.7.1/src/obu.h Examining data/dav1d-0.7.1/src/picture.c Examining data/dav1d-0.7.1/src/picture.h Examining data/dav1d-0.7.1/src/ppc/cdef_init_tmpl.c Examining data/dav1d-0.7.1/src/ppc/cpu.c Examining data/dav1d-0.7.1/src/ppc/cpu.h Examining data/dav1d-0.7.1/src/ppc/looprestoration_init_tmpl.c Examining data/dav1d-0.7.1/src/ppc/types.h Examining data/dav1d-0.7.1/src/qm.c Examining data/dav1d-0.7.1/src/qm.h Examining data/dav1d-0.7.1/src/recon.h Examining data/dav1d-0.7.1/src/recon_tmpl.c Examining data/dav1d-0.7.1/src/ref.c Examining data/dav1d-0.7.1/src/ref.h Examining data/dav1d-0.7.1/src/refmvs.c Examining data/dav1d-0.7.1/src/refmvs.h Examining data/dav1d-0.7.1/src/scan.c Examining data/dav1d-0.7.1/src/scan.h Examining data/dav1d-0.7.1/src/tables.c Examining data/dav1d-0.7.1/src/tables.h Examining data/dav1d-0.7.1/src/thread.h Examining data/dav1d-0.7.1/src/thread_data.h Examining data/dav1d-0.7.1/src/thread_task.c Examining data/dav1d-0.7.1/src/thread_task.h Examining data/dav1d-0.7.1/src/warpmv.c Examining data/dav1d-0.7.1/src/warpmv.h Examining data/dav1d-0.7.1/src/wedge.c Examining data/dav1d-0.7.1/src/wedge.h Examining data/dav1d-0.7.1/src/win32/thread.c Examining data/dav1d-0.7.1/src/x86/cdef_init_tmpl.c Examining data/dav1d-0.7.1/src/x86/cpu.c Examining data/dav1d-0.7.1/src/x86/cpu.h Examining data/dav1d-0.7.1/src/x86/film_grain_init_tmpl.c Examining data/dav1d-0.7.1/src/x86/ipred_init_tmpl.c Examining data/dav1d-0.7.1/src/x86/itx_init_tmpl.c Examining data/dav1d-0.7.1/src/x86/loopfilter_init_tmpl.c Examining data/dav1d-0.7.1/src/x86/looprestoration_init_tmpl.c Examining data/dav1d-0.7.1/src/x86/mc_init_tmpl.c Examining data/dav1d-0.7.1/src/x86/msac.h Examining data/dav1d-0.7.1/src/x86/msac_init.c Examining data/dav1d-0.7.1/tests/checkasm/cdef.c Examining data/dav1d-0.7.1/tests/checkasm/checkasm.c Examining data/dav1d-0.7.1/tests/checkasm/checkasm.h Examining data/dav1d-0.7.1/tests/checkasm/filmgrain.c Examining data/dav1d-0.7.1/tests/checkasm/ipred.c Examining data/dav1d-0.7.1/tests/checkasm/itx.c Examining data/dav1d-0.7.1/tests/checkasm/loopfilter.c Examining data/dav1d-0.7.1/tests/checkasm/looprestoration.c Examining data/dav1d-0.7.1/tests/checkasm/mc.c Examining data/dav1d-0.7.1/tests/checkasm/msac.c Examining data/dav1d-0.7.1/tests/libfuzzer/alloc_fail.c Examining data/dav1d-0.7.1/tests/libfuzzer/alloc_fail.h Examining data/dav1d-0.7.1/tests/libfuzzer/dav1d_fuzzer.c Examining data/dav1d-0.7.1/tests/libfuzzer/dav1d_fuzzer.h Examining data/dav1d-0.7.1/tests/libfuzzer/main.c Examining data/dav1d-0.7.1/tools/compat/getopt.c Examining data/dav1d-0.7.1/tools/dav1d.c Examining data/dav1d-0.7.1/tools/dav1d_cli_parse.c Examining data/dav1d-0.7.1/tools/dav1d_cli_parse.h Examining data/dav1d-0.7.1/tools/input/annexb.c Examining data/dav1d-0.7.1/tools/input/demuxer.h Examining data/dav1d-0.7.1/tools/input/input.c Examining data/dav1d-0.7.1/tools/input/input.h Examining data/dav1d-0.7.1/tools/input/ivf.c Examining data/dav1d-0.7.1/tools/input/parse.h Examining data/dav1d-0.7.1/tools/input/section5.c Examining data/dav1d-0.7.1/tools/output/md5.c Examining data/dav1d-0.7.1/tools/output/muxer.h Examining data/dav1d-0.7.1/tools/output/null.c Examining data/dav1d-0.7.1/tools/output/output.c Examining data/dav1d-0.7.1/tools/output/output.h Examining data/dav1d-0.7.1/tools/output/y4m2.c Examining data/dav1d-0.7.1/tools/output/yuv.c FINAL RESULTS: data/dav1d-0.7.1/examples/dav1dplay.c:88:9: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, reason, args); data/dav1d-0.7.1/include/common/dump.h:55:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(out, " " PIX_HEX_FMT, buf[x]); data/dav1d-0.7.1/include/common/validate.h:44:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, __VA_ARGS__); \ data/dav1d-0.7.1/src/log.c:43:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, format, ap); data/dav1d-0.7.1/tests/checkasm/checkasm.c:282:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, arg); data/dav1d-0.7.1/tests/checkasm/checkasm.c:622:29: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. const int name_length = vsnprintf(name_buf, sizeof(name_buf), name, arg); data/dav1d-0.7.1/tests/checkasm/checkasm.c:682:9: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, msg, arg); data/dav1d-0.7.1/tests/checkasm/checkasm.c:711:23: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. pad_length -= vfprintf(stderr, name, arg); data/dav1d-0.7.1/tests/checkasm/checkasm.c:730:19: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. length += vsnprintf(NULL, 0, name, arg); data/dav1d-0.7.1/tests/checkasm/checkasm.c:772:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, " " fmt, buf1[x]); \ data/dav1d-0.7.1/tests/checkasm/checkasm.c:775:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, " " fmt, buf2[x]); \ data/dav1d-0.7.1/tools/compat/getopt.c:121:11: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. (void)vfprintf(stderr,fmt,ap); data/dav1d-0.7.1/tools/dav1d_cli_parse.c:101:9: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, reason, args); data/dav1d-0.7.1/tools/dav1d_cli_parse.c:140:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(optname, "-%c/--%s", long_opts[n].val, long_opts[n].name); data/dav1d-0.7.1/tools/dav1d_cli_parse.c:142:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(optname, "--%s", long_opts[n].name); data/dav1d-0.7.1/tools/dav1d_cli_parse.c:220:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(str, tbl[n].str); data/dav1d-0.7.1/examples/dav1dplay.c:147:17: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((o = getopt_long(argc, argv, short_opts, long_opts, NULL)) != -1) { data/dav1d-0.7.1/include/compat/getopt.h:29:12: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt(int nargc, char * const *nargv, const char *options); data/dav1d-0.7.1/include/compat/getopt.h:75:12: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt_long(int nargc, char * const *nargv, const char *options, data/dav1d-0.7.1/tests/checkasm/checkasm.c:274:34: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *const term = getenv("TERM"); data/dav1d-0.7.1/tests/libfuzzer/alloc_fail.c:40:5: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(seed); data/dav1d-0.7.1/tools/compat/getopt.c:348:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. posixly_correct = (getenv("POSIXLY_CORRECT") != NULL); data/dav1d-0.7.1/tools/compat/getopt.c:523:1: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. getopt(int nargc, char * const *nargv, const char *options) data/dav1d-0.7.1/tools/compat/getopt.c:543:1: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. getopt_long(int nargc, char * const *nargv, const char *options, data/dav1d-0.7.1/tools/dav1d_cli_parse.c:248:17: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((o = getopt_long(argc, argv, short_opts, long_opts, NULL)) != -1) { data/dav1d-0.7.1/examples/dp_renderer_placebo.c:515:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst->points_y, src->y_points, sizeof(src->y_points)); data/dav1d-0.7.1/examples/dp_renderer_placebo.c:516:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst->points_uv, src->uv_points, sizeof(src->uv_points)); data/dav1d-0.7.1/examples/dp_renderer_placebo.c:517:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst->ar_coeffs_y, src->ar_coeffs_y, sizeof(src->ar_coeffs_y)); data/dav1d-0.7.1/include/common/bitdepth.h:47:20: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define pixel_copy memcpy data/dav1d-0.7.1/include/common/bitdepth.h:65:29: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define pixel_copy(a, b, c) memcpy(a, b, (c) << 1) data/dav1d-0.7.1/include/common/dump.h:40:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *const f = fopen(file, "ab"); data/dav1d-0.7.1/src/arm/cpu.c:54:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *file = fopen("/proc/cpuinfo", "r"); data/dav1d-0.7.1/src/arm/cpu.c:58:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line_buffer[120]; data/dav1d-0.7.1/src/cdf.c:4087:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, src->data.cdf, sizeof(*dst)); data/dav1d-0.7.1/src/cdf.c:4090:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst->kfym, default_kf_y_mode_cdf, sizeof(default_kf_y_mode_cdf)); data/dav1d-0.7.1/src/cdf.c:4092:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst->mv.joint, default_mv_joint_cdf, sizeof(default_mv_joint_cdf)); data/dav1d-0.7.1/src/cdf.c:4093:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst->dmv.joint, default_mv_joint_cdf, sizeof(default_mv_joint_cdf)); data/dav1d-0.7.1/src/decode.c:356:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pts[i], pts[j], sizeof(*pts)); data/dav1d-0.7.1/src/decode.c:461:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pal, used_cache, n_used_cache * sizeof(*used_cache)); data/dav1d-0.7.1/src/decode.c:611:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&pal_idx[y * stride], src, bw4 * 4); data/dav1d-0.7.1/src/decode.c:983:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(prev_delta_lf, ts->last_delta_lf, 4); data/dav1d-0.7.1/src/decode.c:1273:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(t->al_pal[0][bx4 + x][0], pal, 16); data/dav1d-0.7.1/src/decode.c:1275:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(t->al_pal[1][by4 + y][0], pal, 16); data/dav1d-0.7.1/src/decode.c:1291:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(t->al_pal[0][bx4 + x][pl], pal[pl], 16); data/dav1d-0.7.1/src/decode.c:1293:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(t->al_pal[1][by4 + y][pl], pal[pl], 16); data/dav1d-0.7.1/src/decode.c:2648:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&f->lf.tx_lpf_right_edge[0][align_h * tile_col + t->by], data/dav1d-0.7.1/src/decode.c:2652:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&f->lf.tx_lpf_right_edge[1][align_h * tile_col + (t->by >> ss_ver)], data/dav1d-0.7.1/src/decode.c:2698:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(f->tile_thread.titsati_index_rows, f->frame_hdr->tiling.row_start_sb, data/dav1d-0.7.1/src/decode.c:2724:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ts_new, f->ts, sizeof(*f->ts) * f->n_ts); data/dav1d-0.7.1/src/decode.c:2742:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ts_new, f->ts, sizeof(*f->ts) * n_ts); data/dav1d-0.7.1/src/decode.c:3417:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(f->tile, c->tile, c->n_tile_data * sizeof(*f->tile)); data/dav1d-0.7.1/src/decode.c:3493:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(f->refrefpoc[i], c->refs[refidx].refpoc, data/dav1d-0.7.1/src/decode.c:3584:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(c->refs[i].refpoc, f->refpoc, sizeof(f->refpoc)); data/dav1d-0.7.1/src/fg_apply_tmpl.c:128:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((uint8_t*) out->data[0] + sz - stride, data/dav1d-0.7.1/src/fg_apply_tmpl.c:131:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out->data[0], in->data[0], sz); data/dav1d-0.7.1/src/fg_apply_tmpl.c:141:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((uint8_t*) out->data[1] + sz - stride, data/dav1d-0.7.1/src/fg_apply_tmpl.c:144:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((uint8_t*) out->data[2] + sz - stride, data/dav1d-0.7.1/src/fg_apply_tmpl.c:148:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out->data[1], in->data[1], sz); data/dav1d-0.7.1/src/fg_apply_tmpl.c:150:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out->data[2], in->data[2], sz); data/dav1d-0.7.1/src/ipred_tmpl.c:684:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ac, &ac[-width], width * sizeof(*ac)); data/dav1d-0.7.1/src/lf_mask.c:147:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(a, txa[1][0][h4 - 1], w4); data/dav1d-0.7.1/src/lib.c:265:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, c->seq_hdr, sizeof(*out)); data/dav1d-0.7.1/src/qm.c:3098:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, src, y + 1); data/dav1d-0.7.1/src/wedge.c:122:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst + imax(ctr, 4) - 4, src + imax(4 - ctr, 0), imin(64 - ctr, 8)); data/dav1d-0.7.1/src/wedge.c:152:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, src, w); data/dav1d-0.7.1/tests/checkasm/cdef.c:79:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(a_src, c_src, (16 * 10 + 16) * sizeof(pixel)); data/dav1d-0.7.1/tests/checkasm/checkasm.c:447:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(f->name, name, name_length); data/dav1d-0.7.1/tests/checkasm/checkasm.c:618:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name_buf[256]; data/dav1d-0.7.1/tests/checkasm/ipred.c:34:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *const intra_pred_mode_names[N_IMPL_INTRA_PRED_MODES] = { data/dav1d-0.7.1/tests/checkasm/ipred.c:51:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *const cfl_ac_names[3] = { "420", "422", "444" }; data/dav1d-0.7.1/tests/checkasm/ipred.c:53:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *const cfl_pred_mode_names[DC_128_PRED + 1] = { data/dav1d-0.7.1/tests/checkasm/itx.c:66:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *const itx_1d_names[5] = { data/dav1d-0.7.1/tests/checkasm/itx.c:192:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(temp_out, in, w * sizeof(*temp_out)); data/dav1d-0.7.1/tests/checkasm/itx.c:213:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&out[i * h], &temp[i * h], h * sizeof(*out)); data/dav1d-0.7.1/tests/checkasm/itx.c:269:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(coeff[1], coeff[0], sizeof(*coeff)); data/dav1d-0.7.1/tests/checkasm/loopfilter.c:176:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(a_dst_mem, c_dst_mem, 128 * sizeof(pixel) * 16); data/dav1d-0.7.1/tests/checkasm/looprestoration.c:94:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(a_dst, c_dst, 448 * 64 * sizeof(pixel)); data/dav1d-0.7.1/tests/checkasm/looprestoration.c:148:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(a_dst, c_dst, 448 * 64 * sizeof(pixel)); data/dav1d-0.7.1/tests/checkasm/msac.c:113:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cdf[1], cdf[0], sizeof(*cdf)); \ data/dav1d-0.7.1/tests/checkasm/msac.c:213:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cdf[1], cdf[0], sizeof(*cdf)); data/dav1d-0.7.1/tests/libfuzzer/dav1d_fuzzer.c:128:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, ptr, frame_size); data/dav1d-0.7.1/tests/libfuzzer/main.c:57:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(f = fopen(filename, "rb"))) { data/dav1d-0.7.1/tools/compat/getopt.c:182:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((char **) nargv)[pos] = nargv[cstart]; data/dav1d-0.7.1/tools/compat/getopt.c:184:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((char **)nargv)[cstart] = swap; data/dav1d-0.7.1/tools/dav1d.c:118:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[80], *b = buf, *const end = buf + 80; data/dav1d-0.7.1/tools/dav1d.c:204:22: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). frametimes = fopen(cli_settings.frametimes, "w"); data/dav1d-0.7.1/tools/dav1d_cli_parse.c:132:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char optname[256]; data/dav1d-0.7.1/tools/dav1d_cli_parse.c:207:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[1024]; data/dav1d-0.7.1/tools/dav1d_cli_parse.c:209:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(str, "any of "); data/dav1d-0.7.1/tools/dav1d_cli_parse.c:216:17: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(str, " or "); data/dav1d-0.7.1/tools/dav1d_cli_parse.c:218:17: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(str, ", "); data/dav1d-0.7.1/tools/dav1d_cli_parse.c:232:9: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(str, ", a hexadecimal (starting with 0x), or an integer"); data/dav1d-0.7.1/tools/input/annexb.c:128:59: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static int annexb_open(AnnexbInputContext *const c, const char *const file, data/dav1d-0.7.1/tools/input/annexb.c:134:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(c->f = fopen(file, "rb"))) { data/dav1d-0.7.1/tools/input/demuxer.h:39:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int (*open)(DemuxerPriv *ctx, const char *filename, data/dav1d-0.7.1/tools/input/demuxer.h:39:41: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int (*open)(DemuxerPriv *ctx, const char *filename, data/dav1d-0.7.1/tools/input/input.c:57:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *const name, const char *const filename, data/dav1d-0.7.1/tools/input/input.c:57:46: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *const name, const char *const filename, data/dav1d-0.7.1/tools/input/input.c:84:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen(filename, "rb"); data/dav1d-0.7.1/tools/input/input.c:118:22: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((res = impl->open(c->data, filename, fps, num_frames, timebase)) < 0) { data/dav1d-0.7.1/tools/input/input.h:36:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *const name, const char *const filename, data/dav1d-0.7.1/tools/input/input.h:36:46: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *const name, const char *const filename, data/dav1d-0.7.1/tools/input/ivf.c:61:53: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static int ivf_open(IvfInputContext *const c, const char *const file, data/dav1d-0.7.1/tools/input/ivf.c:67:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(c->f = fopen(file, "rb"))) { data/dav1d-0.7.1/tools/input/section5.c:87:63: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static int section5_open(Section5InputContext *const c, const char *const file, data/dav1d-0.7.1/tools/input/section5.c:90:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(c->f = fopen(file, "rb"))) { data/dav1d-0.7.1/tools/output/md5.c:98:50: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static int md5_open(MD5Context *const md5, const char *const file, data/dav1d-0.7.1/tools/output/md5.c:104:27: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). } else if (!(md5->f = fopen(file, "wb"))) { data/dav1d-0.7.1/tools/output/md5.c:172:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&md5->data[md5->len & 63], data, tmp); data/dav1d-0.7.1/tools/output/md5.c:181:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(md5->data, data, 64); data/dav1d-0.7.1/tools/output/md5.c:189:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(md5->data, data, len); data/dav1d-0.7.1/tools/output/md5.c:289:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char t[3] = { 0 }; data/dav1d-0.7.1/tools/output/md5.c:294:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(t, p, 2); data/dav1d-0.7.1/tools/output/muxer.h:38:47: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int (*write_header)(MuxerPriv *ctx, const char *filename, data/dav1d-0.7.1/tools/output/output.c:75:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *const name, const char *const filename, data/dav1d-0.7.1/tools/output/output.c:75:47: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *const name, const char *const filename, data/dav1d-0.7.1/tools/output/output.h:35:41: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int output_open(MuxerContext **c, const char *name, const char *filename, data/dav1d-0.7.1/tools/output/output.h:35:59: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int output_open(MuxerContext **c, const char *name, const char *filename, data/dav1d-0.7.1/tools/output/y4m2.c:44:56: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static int y4m2_open(Y4m2OutputContext *const c, const char *const file, data/dav1d-0.7.1/tools/output/y4m2.c:49:25: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). } else if (!(c->f = fopen(file, "wb"))) { data/dav1d-0.7.1/tools/output/yuv.c:42:54: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static int yuv_open(YuvOutputContext *const c, const char *const file, data/dav1d-0.7.1/tools/output/yuv.c:48:25: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). } else if (!(c->f = fopen(file, "wb"))) { data/dav1d-0.7.1/include/common/mem.h:52:12: [1] (free) memalign: On some systems (though not Linux-based systems) an attempt to free() results from memalign() may fail. This may, on a few systems, be exploitable. Also note that memalign() may not check that the boundary parameter is correct (CWE-676). Use posix_memalign instead (defined in POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD 4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases, malloc()'s alignment may be sufficient. return memalign(align, sz); data/dav1d-0.7.1/src/arm/cpu.c:68:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strchr(line, '\n') && strlen(line) > strlen(flag)) { data/dav1d-0.7.1/src/arm/cpu.c:68:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strchr(line, '\n') && strlen(line) > strlen(flag)) { data/dav1d-0.7.1/src/arm/cpu.c:72:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (fseek(file, -strlen(flag), SEEK_CUR)) data/dav1d-0.7.1/tests/checkasm/checkasm.c:445:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t name_length = strlen(name) + 1; data/dav1d-0.7.1/tests/checkasm/checkasm.c:548:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). state.bench_pattern_len = strlen(state.bench_pattern); data/dav1d-0.7.1/tests/checkasm/checkasm.c:726:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t length = strlen(state.current_test_name); data/dav1d-0.7.1/tools/compat/getopt.c:218:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). current_argv_len = strlen(current_argv); data/dav1d-0.7.1/tools/compat/getopt.c:226:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(long_options[i].name) == current_argv_len) { data/dav1d-0.7.1/tools/dav1d.c:134:9: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(b > end - 2 ? end - 2 : b, "\n"); data/dav1d-0.7.1/tools/input/demuxer.h:41:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int (*read)(DemuxerPriv *ctx, Dav1dData *data); data/dav1d-0.7.1/tools/input/input.c:128:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return ctx->impl->read(ctx->data, data); data/dav1d-0.7.1/tools/output/md5.c:284:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(md5_str) < 32) data/dav1d-0.7.1/tools/output/output.c:58:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t l = strlen(f); ANALYSIS SUMMARY: Hits = 136 Lines analyzed = 43897 in approximately 1.69 seconds (25928 lines/second) Physical Source Lines of Code (SLOC) = 34377 Hits@level = [0] 279 [1] 14 [2] 97 [3] 9 [4] 16 [5] 0 Hits@level+ = [0+] 415 [1+] 136 [2+] 122 [3+] 25 [4+] 16 [5+] 0 Hits/KSLOC@level+ = [0+] 12.072 [1+] 3.95613 [2+] 3.54888 [3+] 0.72723 [4+] 0.465427 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.