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/r-cran-av-0.5.1+dfsg/src/winfunc.c Examining data/r-cran-av-0.5.1+dfsg/src/info.c Examining data/r-cran-av-0.5.1+dfsg/src/formats.c Examining data/r-cran-av-0.5.1+dfsg/src/init.c Examining data/r-cran-av-0.5.1+dfsg/src/fft.c Examining data/r-cran-av-0.5.1+dfsg/src/video.c FINAL RESULTS: data/r-cran-av-0.5.1+dfsg/src/video.c:184:3: [4] (format) snprintf: 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. snprintf(input_args, sizeof(input_args), data/r-cran-av-0.5.1+dfsg/src/fft.c:283:3: [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(REAL(out), output->dst_dbl, iter * output_range * sizeof(*output->dst_dbl)); data/r-cran-av-0.5.1+dfsg/src/fft.c:333:7: [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(output->dst_int + total_samples * channels, output->buf, n_samples * samplesize); data/r-cran-av-0.5.1+dfsg/src/fft.c:339:3: [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(INTEGER(out), output->dst_int, total_samples * samplesize); data/r-cran-av-0.5.1+dfsg/src/info.c:76: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 layout[1024] = ""; data/r-cran-av-0.5.1+dfsg/src/video.c:183:3: [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 input_args[512]; data/r-cran-av-0.5.1+dfsg/src/video.c:238:3: [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 input_args[512]; ANALYSIS SUMMARY: Hits = 7 Lines analyzed = 1536 in approximately 0.07 seconds (23018 lines/second) Physical Source Lines of Code (SLOC) = 1353 Hits@level = [0] 1 [1] 0 [2] 6 [3] 0 [4] 1 [5] 0 Hits@level+ = [0+] 8 [1+] 7 [2+] 7 [3+] 1 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 5.91279 [1+] 5.17369 [2+] 5.17369 [3+] 0.739098 [4+] 0.739098 [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.