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-bioc-delayedarray-0.16.0+dfsg/src/DelayedArray.h Examining data/r-bioc-delayedarray-0.16.0+dfsg/src/R_init_DelayedArray.c Examining data/r-bioc-delayedarray-0.16.0+dfsg/src/S4Vectors_stubs.c Examining data/r-bioc-delayedarray-0.16.0+dfsg/src/abind.c Examining data/r-bioc-delayedarray-0.16.0+dfsg/src/array_selection.c Examining data/r-bioc-delayedarray-0.16.0+dfsg/src/compress_atomic_vector.c Examining data/r-bioc-delayedarray-0.16.0+dfsg/src/sparseMatrix_utils.c FINAL RESULTS: data/r-bioc-delayedarray-0.16.0+dfsg/src/array_selection.c:99:2: [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(errmsg_buf(), ERRMSG_BUF_LENGTH, __VA_ARGS__) data/r-bioc-delayedarray-0.16.0+dfsg/src/array_selection.c:93:9: [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 char buf[ERRMSG_BUF_LENGTH]; ANALYSIS SUMMARY: Hits = 2 Lines analyzed = 1019 in approximately 0.04 seconds (23853 lines/second) Physical Source Lines of Code (SLOC) = 734 Hits@level = [0] 0 [1] 0 [2] 1 [3] 0 [4] 1 [5] 0 Hits@level+ = [0+] 2 [1+] 2 [2+] 2 [3+] 1 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 2.7248 [1+] 2.7248 [2+] 2.7248 [3+] 1.3624 [4+] 1.3624 [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.