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/icecast2-2.4.4/src/format_ogg.h Examining data/icecast2-2.4.4/src/md5.c Examining data/icecast2-2.4.4/src/logging.h Examining data/icecast2-2.4.4/src/cfgfile.h Examining data/icecast2-2.4.4/src/format_mp3.c Examining data/icecast2-2.4.4/src/connection.c Examining data/icecast2-2.4.4/src/format_theora.h Examining data/icecast2-2.4.4/src/fserve.h Examining data/icecast2-2.4.4/src/auth_htpasswd.c Examining data/icecast2-2.4.4/src/stats.h Examining data/icecast2-2.4.4/src/admin.c Examining data/icecast2-2.4.4/src/format_midi.c Examining data/icecast2-2.4.4/src/slave.c Examining data/icecast2-2.4.4/src/yp.c Examining data/icecast2-2.4.4/src/auth_htpasswd.h Examining data/icecast2-2.4.4/src/source.c Examining data/icecast2-2.4.4/src/compat.h Examining data/icecast2-2.4.4/src/fserve.c Examining data/icecast2-2.4.4/src/format_ebml.c Examining data/icecast2-2.4.4/src/client.c Examining data/icecast2-2.4.4/src/client.h Examining data/icecast2-2.4.4/src/util.c Examining data/icecast2-2.4.4/src/yp.h Examining data/icecast2-2.4.4/src/format_ogg.c Examining data/icecast2-2.4.4/src/net/sock.h Examining data/icecast2-2.4.4/src/net/sock.c Examining data/icecast2-2.4.4/src/net/resolver.c Examining data/icecast2-2.4.4/src/net/test_resolver.c Examining data/icecast2-2.4.4/src/net/resolver.h Examining data/icecast2-2.4.4/src/format_vorbis.c Examining data/icecast2-2.4.4/src/format.c Examining data/icecast2-2.4.4/src/admin.h Examining data/icecast2-2.4.4/src/global.h Examining data/icecast2-2.4.4/src/auth_url.c Examining data/icecast2-2.4.4/src/auth.c Examining data/icecast2-2.4.4/src/auth.h Examining data/icecast2-2.4.4/src/format_kate.h Examining data/icecast2-2.4.4/src/format_speex.h Examining data/icecast2-2.4.4/src/stats.c Examining data/icecast2-2.4.4/src/format_theora.c Examining data/icecast2-2.4.4/src/format_skeleton.h Examining data/icecast2-2.4.4/src/event.h Examining data/icecast2-2.4.4/src/md5.h Examining data/icecast2-2.4.4/src/format_mp3.h Examining data/icecast2-2.4.4/src/format_midi.h Examining data/icecast2-2.4.4/src/global.c Examining data/icecast2-2.4.4/src/main.c Examining data/icecast2-2.4.4/src/format_kate.c Examining data/icecast2-2.4.4/src/source.h Examining data/icecast2-2.4.4/src/format_vorbis.h Examining data/icecast2-2.4.4/src/format_flac.h Examining data/icecast2-2.4.4/src/format.h Examining data/icecast2-2.4.4/src/format_opus.c Examining data/icecast2-2.4.4/src/logging.c Examining data/icecast2-2.4.4/src/sighandler.c Examining data/icecast2-2.4.4/src/refbuf.c Examining data/icecast2-2.4.4/src/xslt.h Examining data/icecast2-2.4.4/src/format_skeleton.c Examining data/icecast2-2.4.4/src/httpp/httpp.c Examining data/icecast2-2.4.4/src/httpp/httpp.h Examining data/icecast2-2.4.4/src/xslt.c Examining data/icecast2-2.4.4/src/timing/timing.c Examining data/icecast2-2.4.4/src/timing/timing.h Examining data/icecast2-2.4.4/src/sighandler.h Examining data/icecast2-2.4.4/src/log/log.c Examining data/icecast2-2.4.4/src/log/log.h Examining data/icecast2-2.4.4/src/log/test.c Examining data/icecast2-2.4.4/src/auth_url.h Examining data/icecast2-2.4.4/src/refbuf.h Examining data/icecast2-2.4.4/src/util.h Examining data/icecast2-2.4.4/src/slave.h Examining data/icecast2-2.4.4/src/format_ebml.h Examining data/icecast2-2.4.4/src/thread/thread.h Examining data/icecast2-2.4.4/src/thread/thread.c Examining data/icecast2-2.4.4/src/cfgfile.c Examining data/icecast2-2.4.4/src/format_opus.h Examining data/icecast2-2.4.4/src/format_flac.c Examining data/icecast2-2.4.4/src/event.c Examining data/icecast2-2.4.4/src/format_speex.c Examining data/icecast2-2.4.4/src/avl/avl.c Examining data/icecast2-2.4.4/src/avl/test.c Examining data/icecast2-2.4.4/src/avl/avl.h Examining data/icecast2-2.4.4/src/connection.h FINAL RESULTS: data/icecast2-2.4.4/src/admin.c:43:9: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/admin.c:43:18: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/auth_htpasswd.c:39:9: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/auth_htpasswd.c:39:18: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/auth_url.c:73:9: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/auth_url.c:73:18: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/avl/test.c:5:9: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/avl/test.c:5:18: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/client.c:44:9: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/client.c:44:18: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/connection.c:35:9: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/connection.c:35:18: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/format.c:52:9: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/format.c:52:18: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/format_mp3.c:47:9: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/format_mp3.c:47:18: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/format_ogg.c:50:9: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/format_ogg.c:50:18: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/fserve.c:41:9: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/fserve.c:41:18: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/log/log.c:40:9: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/log/log.c:40:18: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/log/log.c:41: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/icecast2-2.4.4/src/logging.c:35:9: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/logging.c:35:18: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/logging.c:36: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/icecast2-2.4.4/src/logging.c:101:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(buffer, timezone_string); data/icecast2-2.4.4/src/logging.c:209: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 (line, sizeof (line), fmt, ap); data/icecast2-2.4.4/src/main.c:29:9: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/main.c:29:18: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/net/sock.c:50: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/icecast2-2.4.4/src/net/sock.c:409:15: [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. ret = vsnprintf (buff, len, fmt, ap_local); data/icecast2-2.4.4/src/net/sock.c:430:11: [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. len = vsnprintf (buff, sizeof (buffer), fmt, ap); data/icecast2-2.4.4/src/net/sock.c:442:23: [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. len = vsnprintf (buff, len, fmt, ap_retry); data/icecast2-2.4.4/src/slave.c:35:9: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/slave.c:35:18: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/source.c:37:9: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/source.c:37:18: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/source.c:1369:25: [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(command, R_OK|X_OK) != 0) { data/icecast2-2.4.4/src/source.c:1376:21: [4] (shell) execl: 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. execl(command, command, mountpoint, (char *)NULL); data/icecast2-2.4.4/src/stats.c:46: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/icecast2-2.4.4/src/stats.c:47:9: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/stats.c:47:18: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/stats.c:272:11: [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. ret = vsnprintf(buf, sizeof(buf), format, val); data/icecast2-2.4.4/src/stats.c:471:9: [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 (str, 16, "%" PRId64, value); data/icecast2-2.4.4/src/util.c:34:9: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/util.c:34:18: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/util.c:239:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (fullpath, "%s%s", webroot, uri); data/icecast2-2.4.4/src/util.c:536:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(r, name); data/icecast2-2.4.4/src/util.c:538:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(r, value); data/icecast2-2.4.4/src/util.c:757:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(res, "%s", dict->key); data/icecast2-2.4.4/src/util.c:765:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(res + strlen(res), "%c%s", delim, dict->key); data/icecast2-2.4.4/src/util.c:782:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(res + strlen(res), "=%s", enc); data/icecast2-2.4.4/src/xslt.c:38:9: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/xslt.c:38:18: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/yp.c:35:9: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/yp.c:35:18: [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. #define snprintf _snprintf data/icecast2-2.4.4/src/yp.c:448:14: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (song, "%s%s%s", artist, separator, title); data/icecast2-2.4.4/src/cfgfile.h:207:9: [3] (misc) chroot: chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22). Make sure the program immediately chdir("/"), closes file descriptors, and drops root privileges, and that all necessary files (and no more!) are in the new root. int chroot; data/icecast2-2.4.4/src/log/log.c:162:5: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(&_logger_mutex); data/icecast2-2.4.4/src/log/log.c:647:5: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&_logger_mutex); data/icecast2-2.4.4/src/main.c:384:14: [3] (misc) chroot: chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22). Make sure the program immediately chdir("/"), closes file descriptors, and drops root privileges, and that all necessary files (and no more!) are in the new root. if (conf->chroot) data/icecast2-2.4.4/src/main.c:391:11: [3] (misc) chroot: chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22). Make sure the program immediately chdir("/"), closes file descriptors, and drops root privileges, and that all necessary files (and no more!) are in the new root. if(chroot(conf->base_dir)) data/icecast2-2.4.4/src/admin.c:204: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 buf[22]; data/icecast2-2.4.4/src/admin.c:637: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 buf[255]; data/icecast2-2.4.4/src/admin.c:699: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 buf[22]; data/icecast2-2.4.4/src/admin.c:902: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 buf[50] = ""; data/icecast2-2.4.4/src/admin.c:906:10: [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). id = atoi(idtext); data/icecast2-2.4.4/src/auth.c:630:43: [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). auth->allow_duplicate_users = atoi ((char*)options->value); data/icecast2-2.4.4/src/auth_htpasswd.c:74:14: [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. unsigned char digest[16]; data/icecast2-2.4.4/src/auth_htpasswd.c:112: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 line [MAX_LINE_LEN]; data/icecast2-2.4.4/src/auth_htpasswd.c:135:18: [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). passwdfile = fopen (htpasswd->filename, "rb"); data/icecast2-2.4.4/src/auth_htpasswd.c:165:9: [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 (entry->name, line, len); data/icecast2-2.4.4/src/auth_htpasswd.c:291:18: [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). passwdfile = fopen(state->filename, "ab"); data/icecast2-2.4.4/src/auth_htpasswd.c:319: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 line[MAX_LINE_LEN]; data/icecast2-2.4.4/src/auth_htpasswd.c:338:18: [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). passwdfile = fopen(state->filename, "rb"); data/icecast2-2.4.4/src/auth_htpasswd.c:348:15: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). snprintf (tmpfile, tmpfile_len, "%s.tmp", state->filename); data/icecast2-2.4.4/src/auth_htpasswd.c:349:15: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). if (stat (tmpfile, &file_info) == 0) data/icecast2-2.4.4/src/auth_htpasswd.c:351:74: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). ICECAST_LOG_WARN("temp file \"%s\" exists, rejecting operation", tmpfile); data/icecast2-2.4.4/src/auth_htpasswd.c:352:15: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). free (tmpfile); data/icecast2-2.4.4/src/auth_htpasswd.c:358:22: [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). tmp_passwdfile = fopen(tmpfile, "wb"); data/icecast2-2.4.4/src/auth_htpasswd.c:358:28: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). tmp_passwdfile = fopen(tmpfile, "wb"); data/icecast2-2.4.4/src/auth_htpasswd.c:362:17: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). tmpfile, strerror(errno)); data/icecast2-2.4.4/src/auth_htpasswd.c:364:14: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). free(tmpfile); data/icecast2-2.4.4/src/auth_htpasswd.c:397:17: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). tmpfile, state->filename, strerror(errno)); data/icecast2-2.4.4/src/auth_htpasswd.c:400:20: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). if (rename(tmpfile, state->filename) != 0) { data/icecast2-2.4.4/src/auth_htpasswd.c:402:21: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). tmpfile, state->filename, strerror(errno)); data/icecast2-2.4.4/src/auth_htpasswd.c:405:10: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). free(tmpfile); data/icecast2-2.4.4/src/auth_url.c:104: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 errormsg [CURL_ERROR_SIZE]; data/icecast2-2.4.4/src/auth_url.c:181:17: [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(url->errormsg, input, copy_len); data/icecast2-2.4.4/src/auth_url.c:460: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 post [4096]; data/icecast2-2.4.4/src/auth_url.c:519: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 post [4096]; data/icecast2-2.4.4/src/auth_url.c:575: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 post [4096]; data/icecast2-2.4.4/src/avl/avl.c:1072: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 balance_chars[3] = {'\\', '-', '/'}; data/icecast2-2.4.4/src/avl/avl.c:1119: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 buffer[AVL_KEY_PRINTER_BUFLEN]; data/icecast2-2.4.4/src/avl/test.c:21:21: [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). max_nodes = atoi(argv[1]); data/icecast2-2.4.4/src/cfgfile.c:399: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(&_current_configuration, config, sizeof(ice_config_t)); data/icecast2-2.4.4/src/cfgfile.c:485:40: [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). configuration->ice_login = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:489:40: [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). configuration->fileserve = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:493:40: [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). configuration->on_demand = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:506:39: [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). configuration->port = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:507:52: [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). configuration->listen_sock->port = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:527:49: [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). configuration->master_server_port = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:531:53: [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). configuration->master_update_interval = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:599:43: [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). configuration->client_limit = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:603:43: [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). configuration->source_limit = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:607:47: [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). configuration->queue_size_limit = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:611:46: [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). configuration->threadpool_size = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:615:45: [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). configuration->client_timeout = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:619:45: [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). configuration->header_timeout = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:623:45: [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). configuration->source_timeout = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:627:17: [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). if (atoi(tmp) == 0) data/icecast2-2.4.4/src/cfgfile.c:632:41: [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). configuration->burst_size = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:701:41: [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). mount->fallback_when_full = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:706:36: [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). mount->max_listeners = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:715:40: [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). mount->mp3_meta_interval = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:720:40: [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). mount->fallback_override = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:725:31: [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). mount->no_mount = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:730:32: [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). mount->yp_public = atoi(tmp) == 0 ? -1 : 0; data/icecast2-2.4.4/src/cfgfile.c:735:29: [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). mount->hidden = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:751:44: [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). mount->max_listener_duration = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:756:39: [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). mount->queue_size_limit = atoi (tmp); data/icecast2-2.4.4/src/cfgfile.c:763:41: [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). mount->source_timeout = atoi (tmp); data/icecast2-2.4.4/src/cfgfile.c:768:33: [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). mount->burst_size = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:790:32: [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). mount->yp_public = atoi (tmp); data/icecast2-2.4.4/src/cfgfile.c:864:22: [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). status = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:928:31: [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). relay->port = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:946:34: [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). relay->mp3metadata = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:961:32: [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). relay->on_demand = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:991:43: [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). configuration->port = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:992:34: [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). listener->port = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:1000:29: [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). listener->ssl = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:1005:42: [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). listener->shoutcast_compat = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:1020:35: [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). listener->so_sndbuf = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:1107:17: [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). atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:1114:17: [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). atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:1196:31: [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). alias->port = atoi(temp); data/icecast2-2.4.4/src/cfgfile.c:1243:38: [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). configuration->logsize = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:1247:38: [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). configuration->loglevel = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:1251:41: [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). configuration->logarchive = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:1269:36: [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). configuration->chroot = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.c:1313:38: [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). server->touch_interval = atoi(tmp); data/icecast2-2.4.4/src/cfgfile.h:211: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 *yp_url[MAX_YP_DIRECTORIES]; data/icecast2-2.4.4/src/client.c:169:9: [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 (buf, client->refbuf->data, len); data/icecast2-2.4.4/src/connection.c:337: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 line [MAX_LINE_LEN]; data/icecast2-2.4.4/src/connection.c:359: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 = fopen (cache->filename, "r"); data/icecast2-2.4.4/src/format_ebml.c:353:9: [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(buffer, ebml->buffer, to_read); data/icecast2-2.4.4/src/format_ebml.c:371:13: [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(buffer, ebml->header, to_read); data/icecast2-2.4.4/src/format_ebml.c:433:9: [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(ebml->header + ebml->header_position, ebml->input_buffer, len); data/icecast2-2.4.4/src/format_ebml.c:438:9: [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(ebml->buffer + ebml->position, ebml->input_buffer, len); data/icecast2-2.4.4/src/format_ebml.c:453:17: [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(ebml->buffer, ebml->input_buffer + b, len - b); data/icecast2-2.4.4/src/format_mp3.c:106: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 (meta->data, "\001StreamTitle='';", 17); data/icecast2-2.4.4/src/format_mp3.c:113:43: [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). state->inline_metadata_interval = atoi (metadata); data/icecast2-2.4.4/src/format_mp3.c:189:17: [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 (p, metadata+13, len); data/icecast2-2.4.4/src/format_mp3.c:221:28: [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). int interval = atoi (metadata); data/icecast2-2.4.4/src/format_mp3.c:602:13: [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 (source_mp3->build_metadata + data/icecast2-2.4.4/src/format_mp3.c:609:9: [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 (source_mp3->build_metadata + source_mp3->build_metadata_offset, data/icecast2-2.4.4/src/format_mp3.c:621:13: [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 (meta->data, source_mp3->build_metadata, data/icecast2-2.4.4/src/format_mp3.c:687:21: [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). if (metadata && atoi(metadata)) data/icecast2-2.4.4/src/format_mp3.h:39: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 build_metadata[4081]; data/icecast2-2.4.4/src/format_ogg.c:80: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 (refbuf->data, page->header, page->header_len); data/icecast2-2.4.4/src/format_ogg.c:81: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 (refbuf->data+page->header_len, page->body, page->body_len); data/icecast2-2.4.4/src/format_ogg.c:285: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 codec_names [100] = ""; data/icecast2-2.4.4/src/format_vorbis.c:113:9: [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 (next, packet, sizeof (ogg_packet)); data/icecast2-2.4.4/src/format_vorbis.c:117:9: [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 (next->packet, packet->packet, next->bytes); data/icecast2-2.4.4/src/format_vorbis.c:405: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 (vorbis->bos_page.header, page->header, page->header_len); data/icecast2-2.4.4/src/format_vorbis.c:409: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 (vorbis->bos_page.body, page->body, page->body_len); data/icecast2-2.4.4/src/fserve.c:223:9: [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(&realfds, &fds, sizeof(fd_set)); data/icecast2-2.4.4/src/fserve.c:532:12: [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 = fopen (fullpath, "rb"); data/icecast2-2.4.4/src/fserve.c:722: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 line[4096]; data/icecast2-2.4.4/src/fserve.c:729: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). mimefile = fopen (config->mimetypes_fn, "r"); data/icecast2-2.4.4/src/httpp/httpp.c:134: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 *line[MAX_HEADERS]; data/icecast2-2.4.4/src/httpp/httpp.c:144: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(data, http_data, len); data/icecast2-2.4.4/src/httpp/httpp.c:176:12: [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). code = atoi(resp_code); data/icecast2-2.4.4/src/httpp/httpp.c:290: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 *line[MAX_HEADERS]; /* limited to 32 lines, should be more than enough */ data/icecast2-2.4.4/src/httpp/httpp.c:304: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(data, http_data, len); data/icecast2-2.4.4/src/log/log.c:101:17: [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 new_name [4096]; data/icecast2-2.4.4/src/log/log.c:107:21: [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 timestamp [128]; data/icecast2-2.4.4/src/log/log.c:122:38: [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). loglist [id] . logfile = fopen (loglist [id] . filename, "a"); data/icecast2-2.4.4/src/log/log.c:193:12: [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 = fopen(filename, "a"); data/icecast2-2.4.4/src/log/log.c:428: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 buf[80]; data/icecast2-2.4.4/src/log/log.c:473:33: [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). block_len = atoi(format); data/icecast2-2.4.4/src/log/log.c:556: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 pre[256]; data/icecast2-2.4.4/src/log/log.c:557: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 line[LOG_MAXLINELEN]; data/icecast2-2.4.4/src/log/log.c:587: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 line[LOG_MAXLINELEN]; data/icecast2-2.4.4/src/logging.c:122: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 datebuf[128]; data/icecast2-2.4.4/src/logging.c:174: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 datebuf[128]; data/icecast2-2.4.4/src/logging.c:204: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 line [200]; data/icecast2-2.4.4/src/logging.c:221: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 fn_error[FILENAME_MAX]; data/icecast2-2.4.4/src/logging.c:232: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 fn_error[FILENAME_MAX]; data/icecast2-2.4.4/src/logging.c:242: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 fn_error[FILENAME_MAX]; data/icecast2-2.4.4/src/main.c:215: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 fn_error[FILENAME_MAX]; data/icecast2-2.4.4/src/main.c:216: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 fn_access[FILENAME_MAX]; data/icecast2-2.4.4/src/main.c:217: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 fn_playlist[FILENAME_MAX]; data/icecast2-2.4.4/src/main.c:218: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 buf[1024]; data/icecast2-2.4.4/src/main.c:325:29: [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 (pidfile && (f = fopen (config->pidfile, "w")) != NULL) data/icecast2-2.4.4/src/main.c:437: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 filename[512]; data/icecast2-2.4.4/src/main.c:438: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 pbuf[1024]; data/icecast2-2.4.4/src/md5.c:107:4: [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(p, buf, len); data/icecast2-2.4.4/src/md5.c:111: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(p, buf, t); data/icecast2-2.4.4/src/md5.c:121: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(ctx->in, buf, 64); data/icecast2-2.4.4/src/md5.c:129: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(ctx->in, buf, len); data/icecast2-2.4.4/src/md5.c:136:24: [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. void MD5Final(unsigned char digest[HASH_LEN], struct MD5Context *ctx) data/icecast2-2.4.4/src/md5.c:176: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(digest, ctx->buf, HASH_LEN); data/icecast2-2.4.4/src/md5.h:24:14: [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. unsigned char in[64]; data/icecast2-2.4.4/src/md5.h:30:24: [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. void MD5Final(unsigned char digest[HASH_LEN], struct MD5Context *context); data/icecast2-2.4.4/src/net/sock.c:57:27: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define va_copy(ap1, ap2) memcpy(&ap1, &ap2, sizeof(va_list)) data/icecast2-2.4.4/src/net/sock.c:110: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 temp[1024]; data/icecast2-2.4.4/src/net/sock.c:423: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 [1024], *buff = buffer; data/icecast2-2.4.4/src/net/sock.c:595: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 service[8]; data/icecast2-2.4.4/src/net/sock.c:637: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 service[8]; data/icecast2-2.4.4/src/net/sock.c:709: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 service [10]; data/icecast2-2.4.4/src/net/sock.c:760: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 ip[MAX_ADDR_LEN]; data/icecast2-2.4.4/src/net/sock.c:780: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(&server.sin_addr, &sin.sin_addr, sizeof(struct sockaddr_in)); data/icecast2-2.4.4/src/net/sock.c:862: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 ip[MAX_ADDR_LEN]; data/icecast2-2.4.4/src/net/test_resolver.c:8: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 buff[1024]; data/icecast2-2.4.4/src/slave.c:169: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 header[4096]; data/icecast2-2.4.4/src/slave.c:259:24: [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). port = atoi (uri+len+1); data/icecast2-2.4.4/src/slave.c:610: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 buf[256]; data/icecast2-2.4.4/src/source.c:598: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[PATH_MAX]; data/icecast2-2.4.4/src/source.c:612:12: [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). return fopen (filename, "ab"); data/icecast2-2.4.4/src/source.c:977: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 name[100], value[200]; data/icecast2-2.4.4/src/source.c:1039:15: [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). val = atoi (str); data/icecast2-2.4.4/src/source.c:1188:17: [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). f = fopen (path, "rb"); data/icecast2-2.4.4/src/source.c:1268: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 buf [10]; data/icecast2-2.4.4/src/source.c:1338:9: [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). i = open("/dev/null", O_RDWR); data/icecast2-2.4.4/src/source.c:1418: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 = fopen (path, "rb"); data/icecast2-2.4.4/src/stats.c:265: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 buf[1024]; data/icecast2-2.4.4/src/stats.c:455:25: [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). value = atoi (node->value)+1; data/icecast2-2.4.4/src/stats.c:458:25: [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). value = atoi (node->value)-1; data/icecast2-2.4.4/src/stats.c:461:25: [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). value = atoi (node->value)+atoi (event->value); data/icecast2-2.4.4/src/stats.c:461:44: [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). value = atoi (node->value)+atoi (event->value); data/icecast2-2.4.4/src/stats.c:592: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 tzbuffer[32]; data/icecast2-2.4.4/src/stats.c:593: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 timebuffer[128]; data/icecast2-2.4.4/src/stats.c:639: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[100]; data/icecast2-2.4.4/src/stats.c:648: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[100]; data/icecast2-2.4.4/src/stats.c: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 buf [200]; data/icecast2-2.4.4/src/thread/thread.c:570: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 name[40]; data/icecast2-2.4.4/src/util.c:245: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 hexchars[16] = { data/icecast2-2.4.4/src/util.c:249: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 safechars[256] = { data/icecast2-2.4.4/src/util.c:381: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 base64table[64] = { data/icecast2-2.4.4/src/util.c:388:15: [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 signed char base64decode[256] = { data/icecast2-2.4.4/src/util.c:462:12: [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. signed char vals[4]; data/icecast2-2.4.4/src/util.c:537:9: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(r, ": "); data/icecast2-2.4.4/src/util.c:539:9: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(r, "\r\n"); data/icecast2-2.4.4/src/util.c:572: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 currenttime_buffer[80]; data/icecast2-2.4.4/src/util.c:573: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 status_buffer[80]; data/icecast2-2.4.4/src/util.c:574: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 contenttype_buffer[80]; data/icecast2-2.4.4/src/util.c:803:6: [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 (result, tm, sizeof (*result)); data/icecast2-2.4.4/src/yp.c:51: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 curl_error[CURL_ERROR_SIZE]; data/icecast2-2.4.4/src/yp.c:460:21: [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). listeners = atoi (val); data/icecast2-2.4.4/src/yp.c:464:58: [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). if (val == NULL || strcmp (val, "unlimited") == 0 || atoi(val) < 0) data/icecast2-2.4.4/src/yp.c:467:25: [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). max_listeners = atoi (val); data/icecast2-2.4.4/src/admin.c:332:38: [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). fullpath_xslt_template_len = strlen (config->adminroot_dir) + data/icecast2-2.4.4/src/admin.c:333: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). strlen (xslt_template) + 2; data/icecast2-2.4.4/src/admin.c:625:27: [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). client->refbuf->len = strlen (client->refbuf->data); data/icecast2-2.4.4/src/admin.c:780:27: [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). client->refbuf->len = strlen (client->refbuf->data); data/icecast2-2.4.4/src/admin.c:1093: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). client->refbuf->len = strlen (client->refbuf->data); data/icecast2-2.4.4/src/auth_htpasswd.c:162: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). len = strlen (line) + 1; data/icecast2-2.4.4/src/auth_htpasswd.c:210:49: [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). hashed_pw = get_hash (client->password, strlen (client->password)); data/icecast2-2.4.4/src/auth_htpasswd.c:301:42: [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). hashed_password = get_hash(password, strlen(password)); data/icecast2-2.4.4/src/auth_htpasswd.c:346: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). tmpfile_len = strlen(state->filename) + 6; data/icecast2-2.4.4/src/auth_url.c:271: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). size_t len = strlen (client->username) + strlen (client->password) + 2; data/icecast2-2.4.4/src/auth_url.c:271:58: [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 len = strlen (client->username) + strlen (client->password) + 2; data/icecast2-2.4.4/src/auth_url.c:412: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). size_t len = strlen (client->username) + strlen (client->password) + 2; data/icecast2-2.4.4/src/auth_url.c:412:58: [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 len = strlen (client->username) + strlen (client->password) + 2; data/icecast2-2.4.4/src/auth_url.c:735:37: [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). url_info->auth_header_len = strlen (url_info->auth_header); data/icecast2-2.4.4/src/auth_url.c:737:42: [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). url_info->timelimit_header_len = strlen (url_info->timelimit_header); data/icecast2-2.4.4/src/auth_url.c:752: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). int len = strlen (url_info->username) + strlen (url_info->password) + 2; data/icecast2-2.4.4/src/auth_url.c:752:49: [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 = strlen (url_info->username) + strlen (url_info->password) + 2; data/icecast2-2.4.4/src/cfgfile.c:1165:43: [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(configuration->webroot_dir[strlen(configuration->webroot_dir)-1] == '/') data/icecast2-2.4.4/src/cfgfile.c:1166: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). configuration->webroot_dir[strlen(configuration->webroot_dir)-1] = 0; data/icecast2-2.4.4/src/cfgfile.c:1175:45: [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(configuration->adminroot_dir[strlen(configuration->adminroot_dir)-1] == '/') data/icecast2-2.4.4/src/cfgfile.c:1176:46: [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). configuration->adminroot_dir[strlen(configuration->adminroot_dir)-1] = 0; data/icecast2-2.4.4/src/client.c:178:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes = client->con->read (client->con, buf, len); data/icecast2-2.4.4/src/client.c:207:27: [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). client->refbuf->len = strlen (client->refbuf->data); data/icecast2-2.4.4/src/client.c:215:24: [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). const size_t len = strlen(str); data/icecast2-2.4.4/src/client.c:250: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). client_send_bytes(client, message, strlen(message)); data/icecast2-2.4.4/src/connection.c:552:32: [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). memmove (ip, ip+7, strlen (ip+7)+1); data/icecast2-2.4.4/src/connection.c:1108:23: [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). ok->len = strlen (ok->data); data/icecast2-2.4.4/src/connection.c:1137:27: [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). client->refbuf->len = strlen (client->refbuf->data); data/icecast2-2.4.4/src/connection.c:1279: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). http_compliant_len = 20 + strlen (shoutcast_mount) + node->offset; data/icecast2-2.4.4/src/connection.c:1285:46: [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 (httpp_parse (parser, http_compliant, strlen(http_compliant))) data/icecast2-2.4.4/src/connection.h:55:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int (*read)(struct connection_tag *handle, void *buf, size_t len); data/icecast2-2.4.4/src/format_mp3.c:253: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). len += strlen (source_mp3->url_artist); data/icecast2-2.4.4/src/format_mp3.c:255: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). len += strlen (source_mp3->url_title); data/icecast2-2.4.4/src/format_mp3.c:265: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). len += strlen (source_mp3->url) + strlen (streamurl) + 2; data/icecast2-2.4.4/src/format_mp3.c:265:43: [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). len += strlen (source_mp3->url) + strlen (streamurl) + 2; data/icecast2-2.4.4/src/format_ogg.c:291: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). len += strlen(artist) + strlen(title) + 3; data/icecast2-2.4.4/src/format_ogg.c:291:37: [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). len += strlen(artist) + strlen(title) + 3; data/icecast2-2.4.4/src/format_ogg.c:297: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). len += strlen(artist); data/icecast2-2.4.4/src/format_ogg.c:306: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). len += strlen (title); data/icecast2-2.4.4/src/format_ogg.c:324:23: [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 = strlen (codec_names); data/icecast2-2.4.4/src/fserve.c:492: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). httpclient->refbuf->len = strlen (httpclient->refbuf->data); data/icecast2-2.4.4/src/httpp/httpp.c:104: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). slen = strlen(line[l]); data/icecast2-2.4.4/src/httpp/httpp.c:152:12: [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). slen = strlen(line[0]); data/icecast2-2.4.4/src/httpp/httpp.c:205: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). int len = strlen(src); data/icecast2-2.4.4/src/httpp/httpp.c:264: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). len = strlen(query); data/icecast2-2.4.4/src/httpp/httpp.c:317:12: [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). slen = strlen(line[0]); data/icecast2-2.4.4/src/httpp/httpp.c:358:24: [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 (uri != NULL && strlen(uri) > 0) { data/icecast2-2.4.4/src/httpp/httpp.c:376: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). if ((strlen(version) > 0) && (strlen(&tmp[1]) > 0)) { data/icecast2-2.4.4/src/httpp/httpp.c:376: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 ((strlen(version) > 0) && (strlen(&tmp[1]) > 0)) { data/icecast2-2.4.4/src/log/log.c:369: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). entry->len = strlen (pre) + strlen (line) + 2; data/icecast2-2.4.4/src/log/log.c:369: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). entry->len = strlen (pre) + strlen (line) + 2; data/icecast2-2.4.4/src/log/log.c:519:37: [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). block_len = strlen(arg); data/icecast2-2.4.4/src/main.c:187:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(filename, argv[i + 1], size-1); data/icecast2-2.4.4/src/net/resolver.c:92:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buff, ip, len); data/icecast2-2.4.4/src/net/resolver.c:123:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buff, name, len); data/icecast2-2.4.4/src/net/resolver.c:155:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buff, ip, len); data/icecast2-2.4.4/src/net/resolver.c:165:19: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). ret = strncpy (buff, host->h_name, len); data/icecast2-2.4.4/src/net/resolver.c:181:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buff, name, len); data/icecast2-2.4.4/src/net/resolver.c:190:15: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). ret = strncpy(buff, temp, len); data/icecast2-2.4.4/src/net/sock.c:371:42: [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 (sock_write_bytes(sock, buff, strlen(buff)) > 0); data/icecast2-2.4.4/src/net/sock.c:945:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ip, inet_ntoa(sa.sin_addr), len); data/icecast2-2.4.4/src/slave.c:179:24: [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). unsigned len = strlen(relay->username) + strlen(relay->password) + 2; data/icecast2-2.4.4/src/slave.c:179:50: [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). unsigned len = strlen(relay->username) + strlen(relay->password) + 2; data/icecast2-2.4.4/src/slave.c:185: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). len = strlen (esc_authorisation) + 24; data/icecast2-2.4.4/src/slave.c:232:53: [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 (! httpp_parse_response (parser, header, strlen(header), relay->localmount)) data/icecast2-2.4.4/src/slave.c:262:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (server, uri, len); data/icecast2-2.4.4/src/slave.c:640: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). len = strlen(username) + strlen(password) + 2; data/icecast2-2.4.4/src/slave.c:640: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). len = strlen(username) + strlen(password) + 2; data/icecast2-2.4.4/src/slave.c:663: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). if (!strlen(buf)) data/icecast2-2.4.4/src/slave.c:669: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). if (!strlen(buf)) data/icecast2-2.4.4/src/source.c:627:23: [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). listen_url_size = strlen("http://") + strlen(config->hostname) + data/icecast2-2.4.4/src/source.c:627:43: [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). listen_url_size = strlen("http://") + strlen(config->hostname) + data/icecast2-2.4.4/src/source.c:628: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). strlen(":") + 6 + strlen(source->mount) + 1; data/icecast2-2.4.4/src/source.c:628:27: [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(":") + 6 + strlen(source->mount) + 1; data/icecast2-2.4.4/src/source.c:969: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). len = strlen (start); data/icecast2-2.4.4/src/source.c:1179: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). unsigned int len = strlen (config->webroot_dir) + data/icecast2-2.4.4/src/source.c:1180: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). strlen (mountinfo->intro_filename) + 2; data/icecast2-2.4.4/src/source.c:1409: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). len = strlen (config->webroot_dir) + strlen (mount) + 1; data/icecast2-2.4.4/src/source.c:1409:47: [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). len = strlen (config->webroot_dir) + strlen (mount) + 1; data/icecast2-2.4.4/src/stats.c:231:56: [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). xmlBufferAdd (raw, (const xmlChar *)value, strlen (value)); data/icecast2-2.4.4/src/stats.c:1065: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 (remaining <= strlen (source->source) + 3) data/icecast2-2.4.4/src/util.c:153:36: [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 (strncmp(p2, "xsl", strlen("xsl")) == 0) { data/icecast2-2.4.4/src/util.c:159:36: [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 (strncmp(p2, "htm", strlen("htm")) == 0) { data/icecast2-2.4.4/src/util.c:165:37: [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 (strncmp(p2, "html", strlen("html")) == 0) { data/icecast2-2.4.4/src/util.c:237:23: [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). fullpath = malloc(strlen(uri) + strlen(webroot) + 1); data/icecast2-2.4.4/src/util.c:237:37: [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). fullpath = malloc(strlen(uri) + strlen(webroot) + 1); data/icecast2-2.4.4/src/util.c:278: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). len = strlen(src); data/icecast2-2.4.4/src/util.c:298: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). int len = strlen(src); data/icecast2-2.4.4/src/util.c:367: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 (len = strlen(path); len > 0 && path[len-1] == '.'; len--) data/icecast2-2.4.4/src/util.c:425: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). int len = strlen(data); data/icecast2-2.4.4/src/util.c:459: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). int len = strlen (data); data/icecast2-2.4.4/src/util.c:533: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). headerlen = strlen(name) + strlen(value) + 4; data/icecast2-2.4.4/src/util.c:533:36: [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). headerlen = strlen(name) + strlen(value) + 4; data/icecast2-2.4.4/src/util.c:582: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). offset = strlen (out); data/icecast2-2.4.4/src/util.c:754:32: [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 (!(res = malloc(strlen(dict->key) + 1))) { data/icecast2-2.4.4/src/util.c:760:38: [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 (!(tmp = realloc(res, strlen(res) + strlen(dict->key) + 2))) { data/icecast2-2.4.4/src/util.c:760:52: [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 (!(tmp = realloc(res, strlen(res) + strlen(dict->key) + 2))) { data/icecast2-2.4.4/src/util.c:765:27: [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). sprintf(res + strlen(res), "%c%s", delim, dict->key); data/icecast2-2.4.4/src/util.c:776: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 (!(tmp = realloc(res, strlen(res) + strlen(enc) + 2))) { data/icecast2-2.4.4/src/util.c:776: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). if (!(tmp = realloc(res, strlen(res) + strlen(enc) + 2))) { data/icecast2-2.4.4/src/util.c:782:23: [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). sprintf(res + strlen(res), "=%s", enc); data/icecast2-2.4.4/src/util.c:852: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). size_t len = strlen(buf); data/icecast2-2.4.4/src/xslt.c:240:27: [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 full_len = strlen (mediatype) + len + 1024; data/icecast2-2.4.4/src/xslt.c:279: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). refbuf->len = strlen (refbuf->data); data/icecast2-2.4.4/src/yp.c:445: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). song = malloc (strlen (artist) + strlen (title) + strlen (separator) +1); data/icecast2-2.4.4/src/yp.c:445:43: [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). song = malloc (strlen (artist) + strlen (title) + strlen (separator) +1); data/icecast2-2.4.4/src/yp.c:445:60: [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). song = malloc (strlen (artist) + strlen (title) + strlen (separator) +1); ANALYSIS SUMMARY: Hits = 360 Lines analyzed = 25049 in approximately 0.65 seconds (38364 lines/second) Physical Source Lines of Code (SLOC) = 18826 Hits@level = [0] 168 [1] 107 [2] 190 [3] 5 [4] 58 [5] 0 Hits@level+ = [0+] 528 [1+] 360 [2+] 253 [3+] 63 [4+] 58 [5+] 0 Hits/KSLOC@level+ = [0+] 28.0463 [1+] 19.1225 [2+] 13.4389 [3+] 3.34644 [4+] 3.08085 [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.