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/libg15-1.3.0~svn324/libg15.h Examining data/libg15-1.3.0~svn324/libg15.c FINAL RESULTS: data/libg15-1.3.0~svn324/libg15.c:84: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(fd,fmt,argp); data/libg15-1.3.0~svn324/libg15.c:488: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. unsigned char lcd_buffer[G15_BUFFER_LEN]; data/libg15-1.3.0~svn324/libg15.c:555: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. unsigned char m_led_buf[4] = { 2, 4, 0, 0 }; data/libg15-1.3.0~svn324/libg15.c:1052: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. unsigned char buffer[G15_KEY_READ_LENGTH]; data/libg15-1.3.0~svn324/libg15.c:308:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(50 * 1000); data/libg15-1.3.0~svn324/libg15.c:520:5: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(100); ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 1291 in approximately 0.05 seconds (28297 lines/second) Physical Source Lines of Code (SLOC) = 927 Hits@level = [0] 1 [1] 2 [2] 3 [3] 0 [4] 1 [5] 0 Hits@level+ = [0+] 7 [1+] 6 [2+] 4 [3+] 1 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 7.55124 [1+] 6.47249 [2+] 4.31499 [3+] 1.07875 [4+] 1.07875 [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.