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/asmixer-0.5/asmixer.c FINAL RESULTS: data/asmixer-0.5/asmixer.c:355:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(&device[0], argv[i]); data/asmixer-0.5/asmixer.c:360:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(&wintitle[0], argv[i]); data/asmixer-0.5/asmixer.c:72:1: [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 wintitle[128] = DEFAULTTITLE; data/asmixer-0.5/asmixer.c:81:1: [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 device[128]=DEFAULTDEVICE; data/asmixer-0.5/asmixer.c:107:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd=open(device,0); data/asmixer-0.5/asmixer.c:141:4: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd=open(device,0); data/asmixer-0.5/asmixer.c:162:4: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd=open(device,0); data/asmixer-0.5/asmixer.c:309:4: [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 name[MAX_LINE_NAME]; data/asmixer-0.5/asmixer.c:333:2: [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 WhichLine[MAX_LINE_NAME]; data/asmixer-0.5/asmixer.c:367:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(WhichLine, argv[i], MAX_LINE_NAME-1); data/asmixer-0.5/asmixer.c:381:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(WhichLine, argv[i], MAX_LINE_NAME-1); data/asmixer-0.5/asmixer.c:382:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for(j=1;j<=strlen(WhichLine);j++) data/asmixer-0.5/asmixer.c:383:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). CmdVol=CmdVol+(WhichLine[j-1]-48)*pow(10,strlen(WhichLine)-j); data/asmixer-0.5/asmixer.c:448:2: [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(250000L); ANALYSIS SUMMARY: Hits = 14 Lines analyzed = 555 in approximately 0.03 seconds (18467 lines/second) Physical Source Lines of Code (SLOC) = 435 Hits@level = [0] 30 [1] 5 [2] 7 [3] 0 [4] 2 [5] 0 Hits@level+ = [0+] 44 [1+] 14 [2+] 9 [3+] 2 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 101.149 [1+] 32.1839 [2+] 20.6897 [3+] 4.5977 [4+] 4.5977 [5+] 0 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.