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/jack-capture-0.9.73/atomic.h Examining data/jack-capture-0.9.73/jack_capture_gui2.cpp Examining data/jack-capture-0.9.73/osc.c Examining data/jack-capture-0.9.73/testsndfile.c Examining data/jack-capture-0.9.73/upwaker.c Examining data/jack-capture-0.9.73/upwaker.h Examining data/jack-capture-0.9.73/vringbuffer.c Examining data/jack-capture-0.9.73/vringbuffer.h Examining data/jack-capture-0.9.73/jack_capture.c FINAL RESULTS: data/jack-capture-0.9.73/jack_capture.c:247:5: [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(stderr,fmt,argp); data/jack-capture-0.9.73/jack_capture.c:811:7: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(MESSAGE_PREFIX); data/jack-capture-0.9.73/jack_capture.c:851:5: [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. fprintf(stderr,"%c[31m" MESSAGE_PREFIX,0x1b); // set red color data/jack-capture-0.9.73/jack_capture.c:852:5: [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(stderr,fmt,argp); data/jack-capture-0.9.73/jack_capture.c:865:7: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(message_string,fmt,argp); data/jack-capture-0.9.73/jack_capture.c:909:9: [4] (format) vsnprintf: 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. #define vsnprintf _vsnprintf data/jack-capture-0.9.73/jack_capture.c:923:14: [4] (format) vsnprintf: 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. nchars = vsnprintf(*buffer, size, fmt, ap); data/jack-capture-0.9.73/jack_capture.c:941:18: [4] (format) vsnprintf: 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. nchars = vsnprintf(*buffer, size, fmt, ap); data/jack-capture-0.9.73/jack_capture.c:993:5: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp (cmd, (char *const *) argv); data/jack-capture-0.9.73/jack_capture.c:1163:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(filename,"%s.%0*d.%s",base_filename,leading_zeros+1,0,soundfile_format); data/jack-capture-0.9.73/jack_capture.c:1294:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(filename_new,"%s.%0*d.%s",base_filename,leading_zeros+1,num_files,soundfile_format); data/jack-capture-0.9.73/jack_capture.c:1781:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(meterbridge_jackname,"%s_meterbridge",jack_get_client_name(client)); data/jack-capture-0.9.73/jack_capture.c:1814:5: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp("meterbridge",argv); data/jack-capture-0.9.73/jack_capture.c:1832:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(portname,"%s:meter_1",meterbridge_jackname); data/jack-capture-0.9.73/jack_capture.c:1846:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(portname,"%s:meter_%d",meterbridge_jackname,ch+1); data/jack-capture-0.9.73/jack_capture.c:2463:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(base_filename,"%s%0*d.%s",filename_prefix,leading_zeros+1,++try,soundfile_format); data/jack-capture-0.9.73/jack_capture.c:2464:5: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if(access(base_filename,F_OK)) break; data/jack-capture-0.9.73/jack_capture.c:2474:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ret,"%s%s",s1,s2); data/jack-capture-0.9.73/jack_capture.c:2582:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(base_filename, F_OK)==0){ data/jack-capture-0.9.73/jack_capture.c:2813:5: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp (org_argv[0], (char *const *) org_argv); data/jack-capture-0.9.73/jack_capture_gui2.cpp:36:166: [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 OPTARGS_BEGIN(das_usage) {int lokke;const char *usage=das_usage;for(lokke=1;lokke<argc;lokke++){char *a=argv[lokke];if(!strcmp("--help",a)||!strcmp("-h",a)){fprintf(stderr,usage);return 0; data/jack-capture-0.9.73/jack_capture_gui2.cpp:39:27: [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 OPTARGS_END }else{fprintf(stderr,usage);return(-1);}}} data/jack-capture-0.9.73/jack_capture_gui2.cpp:152:25: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. readports = popen("jack_lsp", "r"); data/jack-capture-0.9.73/jack_capture_gui2.cpp:188:13: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (system(" pidof jackd.bin >/dev/null") != 0) data/jack-capture-0.9.73/jack_capture_gui2.cpp:314:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(base_filename,"%s/session%d.mp3",getenv("HOME"),countfile); data/jack-capture-0.9.73/jack_capture_gui2.cpp:316:24: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if(access(base_filename,F_OK)) break; data/jack-capture-0.9.73/jack_capture_gui2.cpp:481:25: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(base_filename,"%s/session%d.mp3",getenv("HOME"),countfile); data/jack-capture-0.9.73/jack_capture_gui2.cpp:483:28: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if(access(base_filename,F_OK)) break; data/jack-capture-0.9.73/jack_capture_gui2.cpp:806:9: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system("mkdir $HOME/.jack_capture" ); data/jack-capture-0.9.73/jack_capture_gui2.cpp:872:17: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. readports = popen("jack_lsp -t", "r"); data/jack-capture-0.9.73/jack_capture_gui2.cpp:881:27: [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. if ((isn == -1) ) snprintf(bufer1, 100, e.c_str()); data/jack-capture-0.9.73/jack_capture_gui2.cpp:897:9: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (system(" ps xa | grep -v grep | grep \"jack_capture \" > /dev/null") == 0) data/jack-capture-0.9.73/jack_capture_gui2.cpp:903:2: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system(" killall jack_capture 2> /dev/null"); data/jack-capture-0.9.73/jack_capture_gui2.cpp:1003:22: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. control_stream = popen (capturas, "w"); data/jack-capture-0.9.73/jack_capture_gui2.cpp:1008:9: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (system("sleep 1\n ps xa | grep -v grep | grep \"jack_capture \" > /dev/null") != 0) data/jack-capture-0.9.73/jack_capture_gui2.cpp:1070:13: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (system(" ps xa | grep -v grep | grep \"jack_capture \" > /dev/null") == 0) data/jack-capture-0.9.73/jack_capture_gui2.cpp:1195:17: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. readports = popen(b, "r"); data/jack-capture-0.9.73/jack_capture_gui2.cpp:1422:21: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. readports = popen("jack_lsp -t", "r"); data/jack-capture-0.9.73/jack_capture_gui2.cpp:1431:31: [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. if ((isn == -1) ) snprintf(bufer1, 100, e.c_str()); data/jack-capture-0.9.73/jack_capture_gui2.cpp:1452:21: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. readports = popen("jack_lsp -t", "r"); data/jack-capture-0.9.73/jack_capture_gui2.cpp:1461:31: [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. if ((isn == -1) ) snprintf(bufer1, 100, e.c_str()); data/jack-capture-0.9.73/jack_capture.c:2524:6: [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("HOME")==NULL) data/jack-capture-0.9.73/jack_capture.c:2527:36: [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. FILE *file = fopen(string_concat(getenv("HOME"), "/.jack_capture/config"),"r"); data/jack-capture-0.9.73/jack_capture.c:2551:33: [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. value = string_concat(getenv("HOME"),&value[1]); data/jack-capture-0.9.73/jack_capture_gui2.cpp:314:62: [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. sprintf(base_filename,"%s/session%d.mp3",getenv("HOME"),countfile); data/jack-capture-0.9.73/jack_capture_gui2.cpp:481:66: [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. sprintf(base_filename,"%s/session%d.mp3",getenv("HOME"),countfile); data/jack-capture-0.9.73/jack_capture_gui2.cpp:800:12: [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. home = getenv ("HOME"); data/jack-capture-0.9.73/jack_capture_gui2.cpp:913:12: [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. home = getenv ("HOME"); data/jack-capture-0.9.73/jack_capture_gui2.cpp:938:16: [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. home = getenv ("HOME"); data/jack-capture-0.9.73/jack_capture_gui2.cpp:1047:12: [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. home = getenv ("HOME"); data/jack-capture-0.9.73/jack_capture_gui2.cpp:1099:20: [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. home = getenv ("HOME"); data/jack-capture-0.9.73/jack_capture_gui2.cpp:1886:12: [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. home = getenv ("HOME"); data/jack-capture-0.9.73/jack_capture.c:624: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 vol[vu_len+50]; data/jack-capture-0.9.73/jack_capture.c:726:5: [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 buffer_string[1000]; data/jack-capture-0.9.73/jack_capture.c:728:7: [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(buffer_string,"%.2fs./%.2fs",bufleft,buflen); data/jack-capture-0.9.73/jack_capture.c:769:8: [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 message_string[5000]={0}; data/jack-capture-0.9.73/jack_capture.c:985:16: [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). if((fd = open("/dev/null", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR))==-1){ data/jack-capture-0.9.73/jack_capture.c:1133:13: [2] (misc) fopen: 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). mp3file = fopen(filename,"w"); data/jack-capture-0.9.73/jack_capture.c:1530:20: [2] (misc) fopen: 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). FILE *file = fopen(string_concat(filename, ".tme"),"w"); data/jack-capture-0.9.73/jack_capture.c:1536: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 tme[64]; struct tm time; data/jack-capture-0.9.73/jack_capture.c:1786:5: [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 *argv[100+num_channels]; data/jack-capture-0.9.73/jack_capture.c:1805:16: [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). if((fd = open("/dev/null", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR))==-1){ data/jack-capture-0.9.73/jack_capture.c:1831:5: [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 portname[5000]; data/jack-capture-0.9.73/jack_capture.c:2086: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. char name[500]; data/jack-capture-0.9.73/jack_capture.c:2087:7: [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(name,"input%d",ch+1); data/jack-capture-0.9.73/jack_capture.c:2165: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 gakk[64]; data/jack-capture-0.9.73/jack_capture.c:2405:18: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). osc_port=atoi(OPTARG_GETSTRING()); data/jack-capture-0.9.73/jack_capture.c:2527:16: [2] (misc) fopen: 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). FILE *file = fopen(string_concat(getenv("HOME"), "/.jack_capture/config"),"r"); data/jack-capture-0.9.73/jack_capture_gui2.cpp:133:13: [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 bufer[256]; data/jack-capture-0.9.73/jack_capture_gui2.cpp:312:19: [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 base_filename[5000]; data/jack-capture-0.9.73/jack_capture_gui2.cpp:479:23: [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 base_filename[5000]; data/jack-capture-0.9.73/jack_capture_gui2.cpp:798:5: [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 dirname[256]; data/jack-capture-0.9.73/jack_capture_gui2.cpp:799:5: [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 rcfilename[256]; data/jack-capture-0.9.73/jack_capture_gui2.cpp:869:5: [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 bufer[100]; data/jack-capture-0.9.73/jack_capture_gui2.cpp:870:5: [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 bufer1[100]; data/jack-capture-0.9.73/jack_capture_gui2.cpp:912:5: [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 gfilename[256]; data/jack-capture-0.9.73/jack_capture_gui2.cpp:937: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. char gfilename[256]; data/jack-capture-0.9.73/jack_capture_gui2.cpp:1045:5: [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 rcfilename[256]; data/jack-capture-0.9.73/jack_capture_gui2.cpp:1098:13: [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 gfilename[256]; data/jack-capture-0.9.73/jack_capture_gui2.cpp:1182:5: [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 bufer[256]; data/jack-capture-0.9.73/jack_capture_gui2.cpp:1419: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. char bufer[100]; data/jack-capture-0.9.73/jack_capture_gui2.cpp:1420: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. char bufer1[100]; data/jack-capture-0.9.73/jack_capture_gui2.cpp:1449: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. char bufer[100]; data/jack-capture-0.9.73/jack_capture_gui2.cpp:1450: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. char bufer1[100]; data/jack-capture-0.9.73/jack_capture_gui2.cpp:1881:5: [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 rcfilename[256]; data/jack-capture-0.9.73/osc.c:83: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 tmp[8]; data/jack-capture-0.9.73/jack_capture.c:466:11: [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). if(name[strlen(name)-1]=='*'){ data/jack-capture-0.9.73/jack_capture.c:468:13: [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). pattern[strlen(name)-1]=0; data/jack-capture-0.9.73/jack_capture.c:564: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(n*1000); data/jack-capture-0.9.73/jack_capture.c:729:22: [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). int len_buffer=strlen(buffer_string); data/jack-capture-0.9.73/jack_capture.c:1162:28: [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). filename=my_calloc(1,strlen(base_filename)+500); data/jack-capture-0.9.73/jack_capture.c:1293:28: [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). filename_new=my_calloc(1,strlen(base_filename)+500); data/jack-capture-0.9.73/jack_capture.c:2473:20: [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). char *ret=malloc(strlen(s1)+strlen(s2)+4); data/jack-capture-0.9.73/jack_capture.c:2473:31: [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). char *ret=malloc(strlen(s1)+strlen(s2)+4); data/jack-capture-0.9.73/jack_capture.c:2509:11: [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). int pos=strlen(ret)-1; data/jack-capture-0.9.73/jack_capture.c:2545:65: [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). char *value = strip_whitespace(substring(line,split_pos+1,strlen(line))); data/jack-capture-0.9.73/jack_capture.c:2546:10: [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). if(strlen(name)>0 && strlen(value)>0){ data/jack-capture-0.9.73/jack_capture.c:2546:28: [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). if(strlen(name)>0 && strlen(value)>0){ data/jack-capture-0.9.73/jack_capture.c:2746: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(50); // wait for terminal data/jack-capture-0.9.73/vringbuffer.c:241:7: [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(vrb->autoincrease_interval); ANALYSIS SUMMARY: Hits = 100 Lines analyzed = 5862 in approximately 0.17 seconds (35501 lines/second) Physical Source Lines of Code (SLOC) = 4229 Hits@level = [0] 93 [1] 14 [2] 34 [3] 11 [4] 41 [5] 0 Hits@level+ = [0+] 193 [1+] 100 [2+] 86 [3+] 52 [4+] 41 [5+] 0 Hits/KSLOC@level+ = [0+] 45.6373 [1+] 23.6463 [2+] 20.3358 [3+] 12.2961 [4+] 9.69496 [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.