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/python-pyalsa-1.1.6/pyalsa/alsacard.c Examining data/python-pyalsa-1.1.6/pyalsa/alsacontrol.c Examining data/python-pyalsa-1.1.6/pyalsa/alsaseq.c Examining data/python-pyalsa-1.1.6/pyalsa/alsahcontrol.c Examining data/python-pyalsa-1.1.6/pyalsa/alsamixer.c Examining data/python-pyalsa-1.1.6/pyalsa/common.h FINAL RESULTS: data/python-pyalsa-1.1.6/pyalsa/alsaseq.c:30:28: [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. #define ddebug(x, args...) fprintf(stderr, x "\n",##args); data/python-pyalsa-1.1.6/pyalsa/alsahcontrol.c:1186: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(iec958->status, str, len); data/python-pyalsa-1.1.6/pyalsa/alsahcontrol.c:1194: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(iec958->subcode, str, len); data/python-pyalsa-1.1.6/pyalsa/alsahcontrol.c:1202: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(iec958->dig_subframe, str, len); data/python-pyalsa-1.1.6/pyalsa/alsaseq.c:673: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(self->event, event, sizeof(snd_seq_event_t)); data/python-pyalsa-1.1.6/pyalsa/alsaseq.c:680: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(self->buff, self->event->data.ext.ptr, self->event->data.ext.len); data/python-pyalsa-1.1.6/pyalsa/alsaseq.c:2052: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 tmpclientname[1024]; data/python-pyalsa-1.1.6/pyalsa/alsaseq.c:2069:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tmpclientname, "pyalsa-%d", getpid()); ANALYSIS SUMMARY: Hits = 8 Lines analyzed = 7105 in approximately 0.18 seconds (38932 lines/second) Physical Source Lines of Code (SLOC) = 5645 Hits@level = [0] 0 [1] 0 [2] 7 [3] 0 [4] 1 [5] 0 Hits@level+ = [0+] 8 [1+] 8 [2+] 8 [3+] 1 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 1.41718 [1+] 1.41718 [2+] 1.41718 [3+] 0.177148 [4+] 0.177148 [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.