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/gmidimonitor-3.6+dfsg0/sysex.c Examining data/gmidimonitor-3.6+dfsg0/gm.h Examining data/gmidimonitor-3.6+dfsg0/memory_atomic.c Examining data/gmidimonitor-3.6+dfsg0/log.c Examining data/gmidimonitor-3.6+dfsg0/memory_atomic.h Examining data/gmidimonitor-3.6+dfsg0/alsa.c Examining data/gmidimonitor-3.6+dfsg0/jack.c Examining data/gmidimonitor-3.6+dfsg0/path.c Examining data/gmidimonitor-3.6+dfsg0/sysex.h Examining data/gmidimonitor-3.6+dfsg0/log.h Examining data/gmidimonitor-3.6+dfsg0/common.h Examining data/gmidimonitor-3.6+dfsg0/gm.c Examining data/gmidimonitor-3.6+dfsg0/jack_compat.h Examining data/gmidimonitor-3.6+dfsg0/list.h Examining data/gmidimonitor-3.6+dfsg0/path.h Examining data/gmidimonitor-3.6+dfsg0/alsa.h Examining data/gmidimonitor-3.6+dfsg0/jack.h Examining data/gmidimonitor-3.6+dfsg0/about.c Examining data/gmidimonitor-3.6+dfsg0/main.c FINAL RESULTS: data/gmidimonitor-3.6+dfsg0/log.c:35:3: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(format, arglist); data/gmidimonitor-3.6+dfsg0/main.c:332:7: [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. if (getenv("LADISH_APPNAME") != NULL) data/gmidimonitor-3.6+dfsg0/common.h:26: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. extern const char * g_note_names[12]; data/gmidimonitor-3.6+dfsg0/jack.c:53:12: [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[0]; data/gmidimonitor-3.6+dfsg0/jack.c:101: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(event_buffer->buffer, in_event.buffer, in_event.size); data/gmidimonitor-3.6+dfsg0/main.c:57:7: [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 * g_note_names[12] = data/gmidimonitor-3.6+dfsg0/jack.c:527:3: [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(10000); ANALYSIS SUMMARY: Hits = 7 Lines analyzed = 4698 in approximately 0.17 seconds (26895 lines/second) Physical Source Lines of Code (SLOC) = 3240 Hits@level = [0] 2 [1] 1 [2] 4 [3] 1 [4] 1 [5] 0 Hits@level+ = [0+] 9 [1+] 7 [2+] 6 [3+] 2 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 2.77778 [1+] 2.16049 [2+] 1.85185 [3+] 0.617284 [4+] 0.308642 [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.