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/ezstream-1.0.1/compat/strlcat.c Examining data/ezstream-1.0.1/compat/strlcpy.c Examining data/ezstream-1.0.1/compat/strtonum.c Examining data/ezstream-1.0.1/compat/getopt.c Examining data/ezstream-1.0.1/compat/reallocarray.c Examining data/ezstream-1.0.1/compat/compat.h Examining data/ezstream-1.0.1/src/ezstream.c Examining data/ezstream-1.0.1/src/cfgfile_xml.c Examining data/ezstream-1.0.1/src/cfg_private.h Examining data/ezstream-1.0.1/src/cfg_intake.h Examining data/ezstream-1.0.1/src/cfg_server.c Examining data/ezstream-1.0.1/src/ezconfig0.h Examining data/ezstream-1.0.1/src/stream.c Examining data/ezstream-1.0.1/src/cmdline.h Examining data/ezstream-1.0.1/src/util.c Examining data/ezstream-1.0.1/src/cfg_decoder.h Examining data/ezstream-1.0.1/src/playlist.h Examining data/ezstream-1.0.1/src/attributes.h Examining data/ezstream-1.0.1/src/playlist.c Examining data/ezstream-1.0.1/src/log.c Examining data/ezstream-1.0.1/src/cfg_intake.c Examining data/ezstream-1.0.1/src/log.h Examining data/ezstream-1.0.1/src/cfg_decoder.c Examining data/ezstream-1.0.1/src/ezconfig0.c Examining data/ezstream-1.0.1/src/cfgfile_xml.h Examining data/ezstream-1.0.1/src/cfg_server.h Examining data/ezstream-1.0.1/src/cfg_stream.h Examining data/ezstream-1.0.1/src/cfg_encoder.h Examining data/ezstream-1.0.1/src/cmdline.c Examining data/ezstream-1.0.1/src/xalloc.c Examining data/ezstream-1.0.1/src/util.h Examining data/ezstream-1.0.1/src/cfg_stream.c Examining data/ezstream-1.0.1/src/ezstream-cfgmigrate.c Examining data/ezstream-1.0.1/src/cfg.c Examining data/ezstream-1.0.1/src/mdata.h Examining data/ezstream-1.0.1/src/ezstream.h Examining data/ezstream-1.0.1/src/xalloc.h Examining data/ezstream-1.0.1/src/cfg.h Examining data/ezstream-1.0.1/src/mdata.c Examining data/ezstream-1.0.1/src/cfg_encoder.c Examining data/ezstream-1.0.1/src/stream.h Examining data/ezstream-1.0.1/tests/check_mdata.c Examining data/ezstream-1.0.1/tests/check_cfg_encoder.c Examining data/ezstream-1.0.1/tests/check_util.c Examining data/ezstream-1.0.1/tests/check_playlist.c Examining data/ezstream-1.0.1/tests/check_cfg_intake.c Examining data/ezstream-1.0.1/tests/check_log.c Examining data/ezstream-1.0.1/tests/check_cfg_server.c Examining data/ezstream-1.0.1/tests/check_stream.c Examining data/ezstream-1.0.1/tests/check_cfg.c Examining data/ezstream-1.0.1/tests/check_cfg.h Examining data/ezstream-1.0.1/tests/check_cmdline.c Examining data/ezstream-1.0.1/tests/check_cfg_stream.c Examining data/ezstream-1.0.1/tests/check_cfg_decoder.c Examining data/ezstream-1.0.1/tests/check_cfgfile_xml.c Examining data/ezstream-1.0.1/tests/check_xalloc.c FINAL RESULTS: data/ezstream-1.0.1/src/ezstream.c:318:16: [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. if ((filep = popen(pCommandString, "r")) == NULL) { data/ezstream-1.0.1/src/log.c:34:22: [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. ATTRIBUTE_FORMAT(printf, 2, 3); data/ezstream-1.0.1/src/log.h:40:22: [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. ATTRIBUTE_FORMAT(printf, 1, 2); data/ezstream-1.0.1/src/log.h:43:22: [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. ATTRIBUTE_FORMAT(printf, 1, 2); data/ezstream-1.0.1/src/log.h:46:22: [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. ATTRIBUTE_FORMAT(printf, 1, 2); data/ezstream-1.0.1/src/log.h:49:22: [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. ATTRIBUTE_FORMAT(printf, 1, 2); data/ezstream-1.0.1/src/log.h:52:22: [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. ATTRIBUTE_FORMAT(printf, 1, 2); data/ezstream-1.0.1/src/log.h:55:22: [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. ATTRIBUTE_FORMAT(printf, 1, 2); data/ezstream-1.0.1/src/mdata.c:227:12: [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. if ((fp = popen(cmd, "r")) == NULL) { data/ezstream-1.0.1/src/mdata.c:300:10: [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 (0 > access(filename, R_OK)) { data/ezstream-1.0.1/src/playlist.c:126:15: [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. if ((filep = popen(pl->filename, "r")) == NULL) { data/ezstream-1.0.1/src/stream.c:140:11: [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 (0 > access(cfg_server_get_ca_dir(cfg_server), R_OK|X_OK)) { data/ezstream-1.0.1/src/stream.c:154:11: [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 (0 > access(cfg_server_get_ca_file(cfg_server), R_OK)) { data/ezstream-1.0.1/src/stream.c:168:11: [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 (0 > access(cfg_server_get_client_cert(cfg_server), R_OK)) { data/ezstream-1.0.1/tests/check_util.c:38:19: [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. ck_assert_int_ne(access(BUILDDIR "/check_util-write_pid_file.pid", F_OK), 0); data/ezstream-1.0.1/compat/compat.h:17:5: [3] (buffer) getopt: 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. int getopt(int, char * const *, const char *); data/ezstream-1.0.1/compat/getopt.c:308:22: [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. posixly_correct = (getenv("POSIXLY_CORRECT") != NULL); data/ezstream-1.0.1/compat/getopt.c:482:1: [3] (buffer) getopt: 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. getopt(int nargc, char * const *nargv, const char *options) data/ezstream-1.0.1/compat/getopt.c:501:1: [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. getopt_long(int nargc, char * const *nargv, const char *options, data/ezstream-1.0.1/src/cmdline.c:88:8: [3] (buffer) getopt: 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. ch = getopt(argc, argv, OPTSTRING); data/ezstream-1.0.1/src/ezstream-cfgmigrate.c:80:8: [3] (buffer) getopt: 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. ch = getopt(argc, argv, OPTSTRING); data/ezstream-1.0.1/src/playlist.c:111:22: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. ret = (unsigned int)random(); data/ezstream-1.0.1/src/playlist.c:167:2: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srandom((unsigned int)time(NULL)); data/ezstream-1.0.1/compat/getopt.c:148:6: [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 **) nargv)[pos] = nargv[cstart]; data/ezstream-1.0.1/compat/getopt.c:150:6: [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 **)nargv)[cstart] = swap; data/ezstream-1.0.1/src/cfg.c:67:2: [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(a, b, sizeof(*a)); data/ezstream-1.0.1/src/cfg.c:68:2: [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(b, &tmp, sizeof(*b)); data/ezstream-1.0.1/src/cfg_intake.c:35: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 filename[PATH_MAX]; data/ezstream-1.0.1/src/cfg_private.h:33: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 name[PATH_MAX]; data/ezstream-1.0.1/src/cfg_private.h:35: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 config_file[PATH_MAX]; data/ezstream-1.0.1/src/cfg_private.h:36: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 pid_file[PATH_MAX]; data/ezstream-1.0.1/src/cfg_private.h:49: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 program[PATH_MAX]; data/ezstream-1.0.1/src/cfg_server.c:36: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 hostname[NI_MAXHOST]; data/ezstream-1.0.1/src/cfg_server.c:38: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 user[UCREDS_SIZE]; data/ezstream-1.0.1/src/cfg_server.c:39: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 password[UCREDS_SIZE]; data/ezstream-1.0.1/src/cfg_server.c:41: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 tls_cipher_suite[CSUITE_SIZE]; data/ezstream-1.0.1/src/cfg_server.c:42: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 ca_dir[PATH_MAX]; data/ezstream-1.0.1/src/cfg_server.c:43: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 ca_file[PATH_MAX]; data/ezstream-1.0.1/src/cfg_server.c:44: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 client_cert[PATH_MAX]; data/ezstream-1.0.1/src/ezstream-cfgmigrate.c:183: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 strbuf[BUFSIZ]; data/ezstream-1.0.1/src/ezstream.c:150: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 buf[BUFSIZ]; data/ezstream-1.0.1/src/ezstream.c:220: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 extension[25]; data/ezstream-1.0.1/src/ezstream.c:306:14: [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(_PATH_DEVNULL, O_RDWR, 0)) == -1) { data/ezstream-1.0.1/src/ezstream.c:345:15: [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). if ((filep = fopen(filename, "rb")) == NULL) { data/ezstream-1.0.1/src/ezstream.c:394: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. static char str[25]; data/ezstream-1.0.1/src/ezstream.c:414: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 buff[4096]; data/ezstream-1.0.1/src/ezstream.c:648: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 lastSong[PATH_MAX]; data/ezstream-1.0.1/src/log.c:116: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 errbuf[1024]; data/ezstream-1.0.1/src/mdata.c:203: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 cmd[PATH_MAX + sizeof(" artist")]; data/ezstream-1.0.1/src/mdata.c:204: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 buf[BUFSIZ]; data/ezstream-1.0.1/src/playlist.c:121: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 buf[PATH_MAX + 1]; data/ezstream-1.0.1/src/playlist.c:180: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 buf[PATH_MAX]; data/ezstream-1.0.1/src/playlist.c:185: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). if ((filep = fopen(filename, "r")) == NULL) { data/ezstream-1.0.1/src/playlist.c:205: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 skip_buf[2]; data/ezstream-1.0.1/src/stream.c:445: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 buf[BUFSIZ]; data/ezstream-1.0.1/src/util.c:63: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 buf[BUFSIZ], *bp; data/ezstream-1.0.1/src/util.c:108: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(op, buf, count); data/ezstream-1.0.1/src/util.c:182:30: [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). if (NULL == (pidfile_file = fopen(pidfile_path, "w"))) { data/ezstream-1.0.1/tests/check_cfg.h:67: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 buf[length + 1]; \ data/ezstream-1.0.1/tests/check_cfg.h:82: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 buf[length + 1]; \ data/ezstream-1.0.1/tests/check_cfgfile_xml.c:33: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(testfile, O_CREAT|O_EXCL|O_WRONLY, S_IRUSR|S_IWUSR); data/ezstream-1.0.1/tests/check_mdata.c:146: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 buf[BUFSIZ]; data/ezstream-1.0.1/tests/check_util.c:27:14: [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). pidfile_2 = fopen(BUILDDIR "/check_util-write_pid_file2.pid", "w"); data/ezstream-1.0.1/compat/getopt.c:180: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). current_argv_len = strlen(current_argv); data/ezstream-1.0.1/compat/getopt.c:188:7: [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(long_options[i].name) == current_argv_len) { data/ezstream-1.0.1/compat/strlcat.c:46:17: [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). return(dlen + strlen(src)); data/ezstream-1.0.1/src/cfg_private.h:153:8: [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). c += strlen((p)); \ data/ezstream-1.0.1/src/ezconfig0.c:193:9: [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(STD_CHAR(ls_xmlContentPtr)) > PATH_MAX - 1) { data/ezstream-1.0.1/src/ezconfig0.c:212:9: [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(STD_CHAR(ls_xmlContentPtr)) > PATH_MAX - 1) { data/ezstream-1.0.1/src/ezconfig0.c:661:8: [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). p += strlen(TRACK_PLACEHOLDER); data/ezstream-1.0.1/src/ezconfig0.c:670:8: [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). p += strlen(METADATA_PLACEHOLDER); data/ezstream-1.0.1/src/ezconfig0.c:678:8: [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). p += strlen(ARTIST_PLACEHOLDER); data/ezstream-1.0.1/src/ezconfig0.c:686:8: [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). p += strlen(TITLE_PLACEHOLDER); data/ezstream-1.0.1/src/ezconfig0.c:721:8: [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). p += strlen(METADATA_PLACEHOLDER); data/ezstream-1.0.1/src/ezconfig0.c:729:8: [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). p += strlen(ARTIST_PLACEHOLDER); data/ezstream-1.0.1/src/ezconfig0.c:737:8: [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). p += strlen(TITLE_PLACEHOLDER); data/ezstream-1.0.1/src/ezconfig0.c:761:8: [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). p += strlen(TRACK_PLACEHOLDER); data/ezstream-1.0.1/src/ezconfig0.c:769:8: [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). p += strlen(STRING_PLACEHOLDER); data/ezstream-1.0.1/src/ezconfig0.c:777:8: [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). p += strlen(ARTIST_PLACEHOLDER); data/ezstream-1.0.1/src/ezconfig0.c:785:8: [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). p += strlen(TITLE_PLACEHOLDER); data/ezstream-1.0.1/src/ezstream-cfgmigrate.c:122:34: [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 (strncasecmp(url, "http://", strlen("http://")) != 0) { data/ezstream-1.0.1/src/ezstream-cfgmigrate.c:128: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). p1 = url + strlen("http://"); data/ezstream-1.0.1/src/ezstream-cfgmigrate.c:151: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). mountsiz = strlen(p3) + 1; data/ezstream-1.0.1/src/ezstream-cfgmigrate.c:185:30: [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 (NULL == ez->URL || 0 == strlen(ez->URL)) { data/ezstream-1.0.1/src/ezstream.c:189:17: [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). cmd_str_size = strlen(dec_str) + 1; data/ezstream-1.0.1/src/ezstream.c:195: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). cmd_str_size += strlen(" | ") + strlen(enc_str); data/ezstream-1.0.1/src/ezstream.c:195:35: [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). cmd_str_size += strlen(" | ") + strlen(enc_str); data/ezstream-1.0.1/src/ezstream.c:264:6: [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(extension) == 0) { data/ezstream-1.0.1/src/mdata.c:110:6: [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(p1) == 0) data/ezstream-1.0.1/src/mdata.c:128:15: [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). str_size += strlen(md->artist); data/ezstream-1.0.1/src/mdata.c:131: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). str_size += strlen(" - "); data/ezstream-1.0.1/src/mdata.c:132:15: [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). str_size += strlen(md->title); data/ezstream-1.0.1/src/mdata.c:136: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). str_size += strlen(" - "); data/ezstream-1.0.1/src/mdata.c:137:15: [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). str_size += strlen(md->album); data/ezstream-1.0.1/src/mdata.c:147:7: [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(str)) data/ezstream-1.0.1/src/mdata.c:152:7: [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(str)) data/ezstream-1.0.1/src/mdata.c:170: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). tmpstr = xcalloc(strlen(str) + 1, sizeof(char)); data/ezstream-1.0.1/src/mdata.c:184:6: [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(tmpstr) > 0 && tmpstr[strlen(tmpstr) - 1] == ' ') data/ezstream-1.0.1/src/mdata.c:184:35: [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(tmpstr) > 0 && tmpstr[strlen(tmpstr) - 1] == ' ') data/ezstream-1.0.1/src/mdata.c:185: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). tmpstr[strlen(tmpstr) - 1] = '\0'; data/ezstream-1.0.1/src/mdata.c:188:29: [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). *s = xreallocarray(tmpstr, strlen(tmpstr) + 1, sizeof(*tmpstr)); data/ezstream-1.0.1/src/mdata.c:255:6: [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(buf) == sizeof(buf) - 1) data/ezstream-1.0.1/src/mdata.c:326: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 (0 < strlen(str)) data/ezstream-1.0.1/src/mdata.c:329: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 (0 < strlen(str)) data/ezstream-1.0.1/src/mdata.c:332: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 (0 < strlen(str)) data/ezstream-1.0.1/src/mdata.c:381: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 (0 == strlen(artist)) data/ezstream-1.0.1/src/mdata.c:386: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 (0 == strlen(album)) data/ezstream-1.0.1/src/mdata.c:391: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 (0 == strlen(title)) data/ezstream-1.0.1/src/mdata.c:396: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 (0 == strlen(songinfo)) data/ezstream-1.0.1/src/mdata.c:497: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). ret = (int)strlen(str); data/ezstream-1.0.1/src/playlist.c:147:6: [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(buf) == sizeof(buf) - 1) { data/ezstream-1.0.1/src/playlist.c:204:7: [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(buf) == sizeof(buf) - 1) { data/ezstream-1.0.1/src/util.c:81:14: [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). input_len = strlen(input); data/ezstream-1.0.1/src/util.c:219: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). size_t slen = strlen(s); data/ezstream-1.0.1/src/util.c:220:18: [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). size_t sublen = strlen(sub); data/ezstream-1.0.1/src/util.c:279:21: [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). size_t out_size = strlen(in) + 1; data/ezstream-1.0.1/src/util.c:291:39: [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 (0 == strncmp(&out[i], d->from, strlen(d->from))) { data/ezstream-1.0.1/src/util.c:295:15: [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). buf_len = strlen(&out[i]) + strlen(d->to) data/ezstream-1.0.1/src/util.c:295:33: [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). buf_len = strlen(&out[i]) + strlen(d->to) data/ezstream-1.0.1/src/util.c:296: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). - strlen(d->from); data/ezstream-1.0.1/src/util.c:299:25: [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). d->to, &out[i + strlen(d->from)]); data/ezstream-1.0.1/src/xalloc.c:79: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). file, line, strlen(str) + 1); data/ezstream-1.0.1/tests/check_mdata.c:154:29: [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). ck_assert_int_eq(ret, (int)strlen(buf)); ANALYSIS SUMMARY: Hits = 123 Lines analyzed = 12353 in approximately 0.38 seconds (32730 lines/second) Physical Source Lines of Code (SLOC) = 9647 Hits@level = [0] 127 [1] 60 [2] 40 [3] 8 [4] 15 [5] 0 Hits@level+ = [0+] 250 [1+] 123 [2+] 63 [3+] 23 [4+] 15 [5+] 0 Hits/KSLOC@level+ = [0+] 25.9148 [1+] 12.7501 [2+] 6.53053 [3+] 2.38416 [4+] 1.55489 [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.