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/jackeq-0.5.9/src/djeq-ui.h Examining data/jackeq-0.5.9/src/debug.h Examining data/jackeq-0.5.9/src/interface.h Examining data/jackeq-0.5.9/src/gtkknob.c Examining data/jackeq-0.5.9/src/plugin.c Examining data/jackeq-0.5.9/src/callbacks.h Examining data/jackeq-0.5.9/src/master-ui.c Examining data/jackeq-0.5.9/src/main.h Examining data/jackeq-0.5.9/src/aux-ui.h Examining data/jackeq-0.5.9/src/callbacks_help.h Examining data/jackeq-0.5.9/src/intrim.h Examining data/jackeq-0.5.9/src/db.h Examining data/jackeq-0.5.9/src/process.c Examining data/jackeq-0.5.9/src/interface.c Examining data/jackeq-0.5.9/src/master-ui.h Examining data/jackeq-0.5.9/src/djeq.h Examining data/jackeq-0.5.9/src/process.h Examining data/jackeq-0.5.9/src/help.h Examining data/jackeq-0.5.9/src/gtkmeterscale.c Examining data/jackeq-0.5.9/src/jackstatus.h Examining data/jackeq-0.5.9/src/gtkmeter1.c Examining data/jackeq-0.5.9/src/spline.c Examining data/jackeq-0.5.9/src/aux-ui.c Examining data/jackeq-0.5.9/src/support.h Examining data/jackeq-0.5.9/src/callbacks.c Examining data/jackeq-0.5.9/src/plugin.h Examining data/jackeq-0.5.9/src/io-menu.c Examining data/jackeq-0.5.9/src/monitor-ui.c Examining data/jackeq-0.5.9/src/gtkknob.h Examining data/jackeq-0.5.9/src/io-menu.h Examining data/jackeq-0.5.9/src/status-ui.c Examining data/jackeq-0.5.9/src/help.c Examining data/jackeq-0.5.9/src/monitor-ui.h Examining data/jackeq-0.5.9/src/support.c Examining data/jackeq-0.5.9/src/gtkmeterscale.h Examining data/jackeq-0.5.9/src/djeq-ui.c Examining data/jackeq-0.5.9/src/intrim.c Examining data/jackeq-0.5.9/src/gtkmeter.c Examining data/jackeq-0.5.9/src/gtkmeter.h Examining data/jackeq-0.5.9/src/main.c Examining data/jackeq-0.5.9/acconfig.h Examining data/jackeq-0.5.9/config.h FINAL RESULTS: data/jackeq-0.5.9/src/io-menu.c:69:5: [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. vsnprintf(buffer, sizeof(buffer), fmt, ap); data/jackeq-0.5.9/src/main.c:97:5: [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(PACKAGE " " VERSION "\n"); data/jackeq-0.5.9/src/main.c:173:5: [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. snprintf(title, sizeof(title), PACKAGE " " VERSION); data/jackeq-0.5.9/src/main.c:104:16: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt_long(argc, argv, options, long_options, &option_index)) != EOF) { data/jackeq-0.5.9/src/main.c:158:26: [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. rcfile_size = strlen(getenv("HOME")) + strlen(JACKHOME) + strlen(JACKRC) + 3; data/jackeq-0.5.9/src/main.c:160:47: [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. snprintf(rcfile, rcfile_size, "%s/%s/%s", getenv("HOME"), JACKHOME, JACKRC); data/jackeq-0.5.9/src/main.c:184:43: [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. g_snprintf(filepath, 255, "%s/%s/%s", getenv("HOME"), JACKHOME, JACKCONF); data/jackeq-0.5.9/src/plugin.c:13: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("LADSPA_PATH")) { data/jackeq-0.5.9/src/plugin.c:14:17: [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. plugin_path = getenv("LADSPA_PATH"); data/jackeq-0.5.9/src/aux-ui.c:26: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 name[256], lname[256], rname[256]; data/jackeq-0.5.9/src/callbacks.c:226: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 name[256]; data/jackeq-0.5.9/src/callbacks.c:244: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 name[256]; data/jackeq-0.5.9/src/callbacks.c:262: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 name[256]; data/jackeq-0.5.9/src/callbacks.c:279: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 name[256]; data/jackeq-0.5.9/src/callbacks.c:298: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 name[256]; data/jackeq-0.5.9/src/callbacks.c:318: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 name[256]; data/jackeq-0.5.9/src/callbacks.c:356: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 name[256]; data/jackeq-0.5.9/src/callbacks.c:374: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 name[256]; data/jackeq-0.5.9/src/callbacks.c:393: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 name[256]; data/jackeq-0.5.9/src/callbacks.c:411: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 name[256]; data/jackeq-0.5.9/src/callbacks.c:453: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 name[256]; data/jackeq-0.5.9/src/djeq-ui.c:30: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 name[256], lname[256], rname[256]; data/jackeq-0.5.9/src/gtkmeter.c:221: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 text[2]; data/jackeq-0.5.9/src/gtkmeter.c:639: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 text[3]; data/jackeq-0.5.9/src/gtkmeter1.c:495: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 text[128]; data/jackeq-0.5.9/src/gtkmeterscale.c:296: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 text[128]; data/jackeq-0.5.9/src/intrim.c:83: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 tmp[256]; data/jackeq-0.5.9/src/intrim.c:90:2: [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(tmp, "centre"); data/jackeq-0.5.9/src/io-menu.c:66: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[300]; data/jackeq-0.5.9/src/io-menu.c:271: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 name[256]; data/jackeq-0.5.9/src/main.c:65: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 *rcfile, title[128]; data/jackeq-0.5.9/src/main.c:161:15: [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(rcfile, O_RDONLY)) >= 0) { data/jackeq-0.5.9/src/main.c:197: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 name[10]; data/jackeq-0.5.9/src/main.c:260: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 name[255],channelName[255], *conffile, vname[5]; data/jackeq-0.5.9/src/main.c:417: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 name[256],channelName[255], vname[5]; data/jackeq-0.5.9/src/master-ui.c:25: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 name[10]; data/jackeq-0.5.9/src/plugin.c:24: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 path[512]; data/jackeq-0.5.9/src/status-ui.c:33: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 focus_string[20]; data/jackeq-0.5.9/src/main.c:158:19: [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). rcfile_size = strlen(getenv("HOME")) + strlen(JACKHOME) + strlen(JACKRC) + 3; data/jackeq-0.5.9/src/main.c:158:44: [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). rcfile_size = strlen(getenv("HOME")) + strlen(JACKHOME) + strlen(JACKRC) + 3; data/jackeq-0.5.9/src/main.c:158:63: [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). rcfile_size = strlen(getenv("HOME")) + strlen(JACKHOME) + strlen(JACKRC) + 3; data/jackeq-0.5.9/src/status-ui.c:95:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(focus_string, string, sizeof(focus_string)); ANALYSIS SUMMARY: Hits = 42 Lines analyzed = 9613 in approximately 0.34 seconds (28066 lines/second) Physical Source Lines of Code (SLOC) = 6848 Hits@level = [0] 91 [1] 4 [2] 29 [3] 6 [4] 3 [5] 0 Hits@level+ = [0+] 133 [1+] 42 [2+] 38 [3+] 9 [4+] 3 [5+] 0 Hits/KSLOC@level+ = [0+] 19.4217 [1+] 6.13318 [2+] 5.54907 [3+] 1.31425 [4+] 0.438084 [5+] 0 Dot directories skipped = 2 (--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.