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/conserver-8.2.4/autologin/autologin.c Examining data/conserver-8.2.4/autologin/main.c Examining data/conserver-8.2.4/autologin/main.h Examining data/conserver-8.2.4/compat.h Examining data/conserver-8.2.4/conserver/access.c Examining data/conserver-8.2.4/conserver/access.h Examining data/conserver-8.2.4/conserver/client.c Examining data/conserver-8.2.4/conserver/client.h Examining data/conserver-8.2.4/conserver/consent.c Examining data/conserver-8.2.4/conserver/consent.h Examining data/conserver-8.2.4/conserver/convert.c Examining data/conserver-8.2.4/conserver/cutil.c Examining data/conserver-8.2.4/conserver/cutil.h Examining data/conserver-8.2.4/conserver/fallback.c Examining data/conserver-8.2.4/conserver/group.c Examining data/conserver-8.2.4/conserver/group.h Examining data/conserver-8.2.4/conserver/main.c Examining data/conserver-8.2.4/conserver/main.h Examining data/conserver-8.2.4/conserver/master.c Examining data/conserver-8.2.4/conserver/master.h Examining data/conserver-8.2.4/conserver/readcfg.c Examining data/conserver-8.2.4/conserver/readcfg.h Examining data/conserver-8.2.4/conserver/version.h Examining data/conserver-8.2.4/console/console.c Examining data/conserver-8.2.4/console/getpassword.c Examining data/conserver-8.2.4/console/getpassword.h Examining data/conserver-8.2.4/console/readconf.c Examining data/conserver-8.2.4/console/readconf.h Examining data/conserver-8.2.4/contrib/chat/chat.c FINAL RESULTS: data/conserver-8.2.4/autologin/autologin.c:402:8: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. (void)chown(pcDevTty, wUid, wGid); data/conserver-8.2.4/autologin/autologin.c:403:8: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. (void)chmod(pcDevTty, (mode_t) TTYMODE); data/conserver-8.2.4/conserver/group.c:5181:5: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod(lstn_port.sun_path, 0666); data/conserver-8.2.4/conserver/master.c:809:5: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod(master_port.sun_path, 0666); data/conserver-8.2.4/autologin/autologin.c:120:8: [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). (void)strcat(pcCmd, pcCommand); data/conserver-8.2.4/autologin/autologin.c:135:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). pcLogin = strcpy(acLogin, pwd->pw_name); data/conserver-8.2.4/autologin/autologin.c:171:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pcDevTty, "/dev/%s", pcTty); data/conserver-8.2.4/autologin/autologin.c:407:2: [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(PATH_SU, "su", "-", pcLogin, pcCmd, (char *)0); data/conserver-8.2.4/autologin/autologin.c:409:2: [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(PATH_SU, "su", "-", pcLogin, (char *)0); data/conserver-8.2.4/conserver/access.h:38:16: [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. typedef struct access { data/conserver-8.2.4/conserver/access.h:42:12: [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. struct access *pACnext; /* next access list */ data/conserver-8.2.4/conserver/consent.c:1051:3: [4] (buffer) StrCpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). StrCpy(port.sun_path, pCE->uds, sizeof(port.sun_path)); data/conserver-8.2.4/conserver/convert.c:80:6: [4] (buffer) StrCpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). StrCpy(buf, save->string, sizeof(buf)); data/conserver-8.2.4/conserver/cutil.c:79:5: [4] (buffer) StrCpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). StrCpy(curtime, ctime(&tyme), sizeof(curtime)); data/conserver-8.2.4/conserver/cutil.c:352:6: [4] (buffer) StrCpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). StrCpy(buf, save->string, sizeof(buf)); data/conserver-8.2.4/conserver/cutil.c:493:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/conserver-8.2.4/conserver/cutil.c:508:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/conserver-8.2.4/conserver/cutil.c:524:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stdout, fmt, ap); data/conserver-8.2.4/conserver/cutil.c:543:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stdout, fmt, ap); data/conserver-8.2.4/conserver/cutil.c:622:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "CONSFILE-%s-%lu-%d.w", progname, data/conserver-8.2.4/conserver/cutil.c:626:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "[---- STARTED - %s ----]\n", data/conserver-8.2.4/conserver/cutil.c:630:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "CONSFILE-%s-%lu-%d.r", progname, data/conserver-8.2.4/conserver/cutil.c:634:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "[---- STARTED - %s ----]\n", data/conserver-8.2.4/conserver/cutil.c:667:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "CONSFILE-%s-%lu-%d.w", progname, data/conserver-8.2.4/conserver/cutil.c:671:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "[---- STARTED - %s ----]\n", data/conserver-8.2.4/conserver/cutil.c:675:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "CONSFILE-%s-%lu-%d.r", progname, data/conserver-8.2.4/conserver/cutil.c:679:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "[---- STARTED - %s ----]\n", data/conserver-8.2.4/conserver/cutil.c:758:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "CONSFILE-%s-%lu-%d.w", progname, data/conserver-8.2.4/conserver/cutil.c:762:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "[---- STARTED - %s ----]\n", data/conserver-8.2.4/conserver/cutil.c:766:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "CONSFILE-%s-%lu-%d.r", progname, data/conserver-8.2.4/conserver/cutil.c:770:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "[---- STARTED - %s ----]\n", data/conserver-8.2.4/conserver/cutil.c:3077:1: [4] (buffer) StrCpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). StrCpy(char *dst, const char *src, unsigned int size) data/conserver-8.2.4/conserver/cutil.c:3082:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(dst, src); data/conserver-8.2.4/conserver/cutil.h:215:13: [4] (buffer) StrCpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). extern void StrCpy(char *, const char *, unsigned int); data/conserver-8.2.4/conserver/fallback.c:210:12: [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 (-1 == access(acSlave, F_OK)) { data/conserver-8.2.4/conserver/group.c:805:18: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. encrypted = crypt(pcWord, salt); data/conserver-8.2.4/conserver/group.c:1503:7: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. crypt(pw_string, data/conserver-8.2.4/conserver/group.c:4951:2: [4] (buffer) StrCpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). StrCpy(pCL->actym, StrTime(&(pCL->tym)), sizeof(pCL->actym)); data/conserver-8.2.4/conserver/group.c:5160:5: [4] (buffer) StrCpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). StrCpy(lstn_port.sun_path, portPath->string, data/conserver-8.2.4/conserver/main.c:734:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(COPYRIGHT); data/conserver-8.2.4/conserver/main.c:1412:16: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. origuser = getlogin(); data/conserver-8.2.4/conserver/master.c:784:5: [4] (buffer) StrCpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). StrCpy(master_port.sun_path, portPath->string, data/conserver-8.2.4/conserver/readcfg.c:3486:19: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (pCL->fro == access) data/conserver-8.2.4/conserver/readcfg.c:3488:14: [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. pCL->fro = access; data/conserver-8.2.4/conserver/readcfg.c:3489:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access) { data/conserver-8.2.4/conserver/readcfg.c:3871:13: [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. ACCESS *access; data/conserver-8.2.4/conserver/readcfg.c:3910:18: [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. for (a = pa->access; a != (ACCESS *)0;) { data/conserver-8.2.4/conserver/readcfg.c:3935:40: [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. AccessAddACL(PARSERACCESS *pa, ACCESS *access) data/conserver-8.2.4/conserver/readcfg.c:3940:22: [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. for (ppa = &(pa->access); *ppa != (ACCESS *)0; data/conserver-8.2.4/conserver/readcfg.c:3952:13: [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. *new = *access; data/conserver-8.2.4/conserver/readcfg.c:4045:14: [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. for (a = p->access; a != (ACCESS *)0; a = a->pACnext) { data/conserver-8.2.4/conserver/readcfg.c:4062:16: [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. *ppa = p->access; data/conserver-8.2.4/conserver/readcfg.c:4131:19: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. for (a = pa->access; a != (ACCESS *)0; a = a->pACnext) { data/conserver-8.2.4/conserver/readcfg.c:4159:32: [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. ACCESS *a = parserAccessTemp->access; data/conserver-8.2.4/conserver/readcfg.c:4239:33: [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. for (ppa = &(parserAccessTemp->access); *ppa != (ACCESS *)0; data/conserver-8.2.4/console/console.c:402:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(COPYRIGHT); data/conserver-8.2.4/console/console.c:591:5: [4] (buffer) StrCpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). StrCpy(port.sun_path, portPath->string, sizeof(port.sun_path)); data/conserver-8.2.4/contrib/chat/chat.c:992:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(string, "%s^%c", meta, (int)c + '@'); data/conserver-8.2.4/contrib/chat/chat.c:994:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(string, "%s^?", meta); data/conserver-8.2.4/contrib/chat/chat.c:996:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(string, "%s%c", meta, c); data/conserver-8.2.4/contrib/chat/chat.c:1414:7: [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 (report_buffer, report_string[n]); data/conserver-8.2.4/contrib/chat/chat.c:1460:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(fail_reason = fail_buffer, abort_string[n]); data/conserver-8.2.4/autologin/main.c:23:1: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. getopt(int nargc, char **nargv, char *ostr) data/conserver-8.2.4/autologin/main.c:126:31: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while (EOF != (u_curopt = getopt(argc, argv, sbOpt))) { data/conserver-8.2.4/conserver/main.c:1288:24: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while (EOF != (i = getopt(argc, argv, acOpts))) { data/conserver-8.2.4/console/console.c:1965:19: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt(argc, argv, acOpts)) != EOF) { data/conserver-8.2.4/console/console.c:2202:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (((h = getenv("HOME")) == (char *)0) && data/conserver-8.2.4/console/console.c:2386:27: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (((config->username = getenv("LOGNAME")) == (char *)0) && data/conserver-8.2.4/console/console.c:2387:27: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ((config->username = getenv("USER")) == (char *)0) && data/conserver-8.2.4/console/readconf.c:258:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((term = getenv("TERM")) == (char *)0) { data/conserver-8.2.4/contrib/chat/chat.c:267:22: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((option = getopt(argc, argv, ":eEf:Ir:sSt:T:U:vV")) != -1) { data/conserver-8.2.4/contrib/chat/chat.c:699:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. phchar = getenv(env_str); data/conserver-8.2.4/autologin/autologin.c:100: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 my_hostname[MAXHOSTNAMELEN]; data/conserver-8.2.4/autologin/autologin.c:119:8: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void)strcpy(pcCmd, "-c "); data/conserver-8.2.4/autologin/autologin.c:128:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char acLogin[17]; data/conserver-8.2.4/autologin/autologin.c:313:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (-1 != (i = open("/dev/tty", 2, 0))) { data/conserver-8.2.4/autologin/autologin.c:321:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (0 != open(pcDevTty, O_RDWR, 0666)) { data/conserver-8.2.4/autologin/autologin.c:466:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fdUtmp = open(UTMP_FILE, O_RDWR, 0664)) < 0) { data/conserver-8.2.4/autologin/main.c:119:16: [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). extern int atoi(); data/conserver-8.2.4/autologin/main.h:5: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. extern char *progname, *au_terse[4], *u_help[9]; data/conserver-8.2.4/conserver/access.c:98:18: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int mask_bits = atoi(slash_posn + 1); data/conserver-8.2.4/conserver/access.c:135: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 host[NI_MAXHOST]; data/conserver-8.2.4/conserver/access.c:136: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 ipaddr[NI_MAXHOST]; data/conserver-8.2.4/conserver/access.c:324: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 addr[NI_MAXHOST]; data/conserver-8.2.4/conserver/client.c:200:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy[4]; data/conserver-8.2.4/conserver/client.c:279:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy[4]; data/conserver-8.2.4/conserver/client.c:498: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 addr[NI_MAXHOST]; data/conserver-8.2.4/conserver/client.h:70: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 actym[32]; /* pre-formatted time */ data/conserver-8.2.4/conserver/client.h:80: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 ic[2]; /* two character escape sequence */ data/conserver-8.2.4/conserver/consent.c:874: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 host[NI_MAXHOST]; data/conserver-8.2.4/conserver/consent.c:875: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 serv[NI_MAXSERV]; data/conserver-8.2.4/conserver/consent.c:960: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(&port.sin_addr.s_addr, hp->h_addr_list[0], data/conserver-8.2.4/conserver/consent.c:963:3: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(hp->h_addr_list[0], &port.sin_addr.s_addr, data/conserver-8.2.4/conserver/consent.c:1103:13: [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). (cofile = open(pCE->device, O_RDWR | O_NONBLOCK, 0600))) { data/conserver-8.2.4/conserver/consent.c:1156: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 b[1]; data/conserver-8.2.4/conserver/consent.c:1379: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(&(addrs[i]), he->h_addr_list[i], he->h_length); data/conserver-8.2.4/conserver/consent.c:1381:6: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(he->h_addr_list[i], &(addrs[i]), he->h_length); data/conserver-8.2.4/conserver/consent.h:42: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 acrate[8]; data/conserver-8.2.4/conserver/consent.h:183: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 acline[132 * 2 + 2]; /* max chars we will call a line */ data/conserver-8.2.4/conserver/convert.c:61: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. static char buf[1024]; data/conserver-8.2.4/conserver/convert.c:342:11: [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). bt = atoi(pcBreak); data/conserver-8.2.4/conserver/convert.c:483:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp = fopen(pcFile, "r")) == (FILE *)0) { data/conserver-8.2.4/conserver/cutil.c:34:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char myHostname[MAXHOSTNAME]; /* staff.cc.purdue.edu */ data/conserver-8.2.4/conserver/cutil.c:75: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. static char curtime[40]; /* just in case ctime() varies */ data/conserver-8.2.4/conserver/cutil.c:156:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(msg->string + msg->used - 1, str, len + 1); data/conserver-8.2.4/conserver/cutil.c:158:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(msg->string, str, len); data/conserver-8.2.4/conserver/cutil.c:161:2: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(str, msg->string + msg->used - 1, len + 1); data/conserver-8.2.4/conserver/cutil.c:163:2: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(str, msg->string, len); data/conserver-8.2.4/conserver/cutil.c:207: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(msg->string + (msg->used ? msg->used - 1 : 0), str, n); data/conserver-8.2.4/conserver/cutil.c:209:5: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(str, msg->string + (msg->used ? msg->used - 1 : 0), n); data/conserver-8.2.4/conserver/cutil.c:333: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. static char buf[1024]; data/conserver-8.2.4/conserver/cutil.c:621:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/conserver-8.2.4/conserver/cutil.c:625:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open(buf, O_WRONLY | O_CREAT | O_APPEND, 0644)) != -1) { data/conserver-8.2.4/conserver/cutil.c:633:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open(buf, O_WRONLY | O_CREAT | O_APPEND, 0644)) != -1) { data/conserver-8.2.4/conserver/cutil.c:666:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/conserver-8.2.4/conserver/cutil.c:670:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open(buf, O_WRONLY | O_CREAT | O_APPEND, 0644)) != -1) { data/conserver-8.2.4/conserver/cutil.c:678:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open(buf, O_WRONLY | O_CREAT | O_APPEND, 0644)) != -1) { data/conserver-8.2.4/conserver/cutil.c:741:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (-1 == (fd = open(path, flag, mode))) { data/conserver-8.2.4/conserver/cutil.c:757:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/conserver-8.2.4/conserver/cutil.c:761:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open(buf, O_WRONLY | O_CREAT | O_APPEND, 0644)) != -1) { data/conserver-8.2.4/conserver/cutil.c:769:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open(buf, O_WRONLY | O_CREAT | O_APPEND, 0644)) != -1) { data/conserver-8.2.4/conserver/cutil.c:1868:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&(myAddrs[0].s_addr), &bindAddr, sizeof(in_addr_t)); data/conserver-8.2.4/conserver/cutil.c:1870:2: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(&bindAddr, &(myAddrs[0].s_addr), sizeof(in_addr_t)); data/conserver-8.2.4/conserver/cutil.c:1979: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(&myAddrs[m], &(sin->sin_addr), sizeof(struct in_addr)); data/conserver-8.2.4/conserver/cutil.c:1981:6: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(&(sin->sin_addr), &myAddrs[m], sizeof(struct in_addr)); data/conserver-8.2.4/conserver/cutil.c:2005:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&(myAddrs[0].s_addr), &bindAddr, sizeof(in_addr_t)); data/conserver-8.2.4/conserver/cutil.c:2007:2: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(&bindAddr, &(myAddrs[0].s_addr), sizeof(in_addr_t)); data/conserver-8.2.4/conserver/cutil.c:2037:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&(myAddrs[count].s_addr), he->h_addr_list[count], data/conserver-8.2.4/conserver/cutil.c:2040:2: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(he->h_addr_list[count], &(myAddrs[count].s_addr), data/conserver-8.2.4/conserver/cutil.c:2186: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 data[256]; data/conserver-8.2.4/conserver/cutil.c:2251: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(buf, msg, len); data/conserver-8.2.4/conserver/cutil.c:2253:5: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(msg, buf, len); data/conserver-8.2.4/conserver/cutil.c:2580:30: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((FILE *)0 == (lfp = fopen(word->string, "r"))) { data/conserver-8.2.4/conserver/cutil.c:2833: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 *repfmt[256]; data/conserver-8.2.4/conserver/cutil.c:2948:11: [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). plen = atoi(r + 1); data/conserver-8.2.4/conserver/cutil.c:2983:11: [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). plen = atoi(r + 1); data/conserver-8.2.4/conserver/fallback.c:100:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open(clones[c], O_RDWR, 0)) >= 0) data/conserver-8.2.4/conserver/fallback.c:150:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((sfd = open(pcName, O_RDWR, 0)) < 0) { data/conserver-8.2.4/conserver/fallback.c:205:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (0 > (fd = open(acMaster, O_RDWR | O_NONBLOCK, 0))) { data/conserver-8.2.4/conserver/fallback.c:218:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((sfd = open(acSlave, O_RDWR, 0)) < 0) { data/conserver-8.2.4/conserver/group.c:647:16: [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. pcUser = ((char **)appdata_ptr)[0]; data/conserver-8.2.4/conserver/group.c:648:16: [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. pcWord = ((char **)appdata_ptr)[1]; data/conserver-8.2.4/conserver/group.c:705: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 *appdata[2]; data/conserver-8.2.4/conserver/group.c:1068: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 timestr[40]; data/conserver-8.2.4/conserver/group.c:1071: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[4096]; data/conserver-8.2.4/conserver/group.c:1459:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp = fopen(config->passwdfile, "r")) == (FILE *)0) { data/conserver-8.2.4/conserver/group.c:1966: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/conserver-8.2.4/conserver/group.c:2545: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. static char opt[128]; data/conserver-8.2.4/conserver/group.c:2559:38: [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. if (o < sizeof(telopts) / sizeof(char *)) data/conserver-8.2.4/conserver/group.c:2562:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(opt, "%d", o); data/conserver-8.2.4/conserver/group.c:2570: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 acIn[BUFSIZ], acInOrig[BUFSIZ]; data/conserver-8.2.4/conserver/group.c:2778: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 acInOrig[BUFSIZ]; data/conserver-8.2.4/conserver/group.c:2808: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 acInOrig[BUFSIZ]; data/conserver-8.2.4/conserver/group.c:2876:28: [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. if (n[j] == (unsigned char *)0) data/conserver-8.2.4/conserver/group.c:2941: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 acIn[BUFSIZ], acInOrig[BUFSIZ]; data/conserver-8.2.4/conserver/group.c:3398:9: [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(pCLServing->accmd->string); data/conserver-8.2.4/conserver/group.c:4671: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 b[1]; data/conserver-8.2.4/conserver/group.c:5032: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 host[NI_MAXHOST]; data/conserver-8.2.4/conserver/group.c:5033: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 serv[NI_MAXSERV]; data/conserver-8.2.4/conserver/group.c:5109: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(rp->ai_addr, res->ai_addr, rp->ai_addrlen); data/conserver-8.2.4/conserver/main.c:427: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 namestr[128]; data/conserver-8.2.4/conserver/main.c:478:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (1 != open(config->logfile, O_WRONLY | O_CREAT | O_APPEND, 0644)) { data/conserver-8.2.4/conserver/main.c:567:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (-1 != (td = open("/dev/tty", O_RDWR, 0600))) { data/conserver-8.2.4/conserver/main.c:1264:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (0 != open("/dev/null", O_RDWR, 0644)) { data/conserver-8.2.4/conserver/main.c:1347:14: [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). cMaxMemb = atoi(optarg); data/conserver-8.2.4/conserver/main.c:1366:26: [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). optConf->reinitcheck = atoi(optarg); data/conserver-8.2.4/conserver/main.c:1461:34: [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 ((FILE *)0 == (fpConfig = fopen(pcConfig, "r"))) { data/conserver-8.2.4/conserver/main.c:1487:13: [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). bindPort = atoi(config->primaryport); data/conserver-8.2.4/conserver/main.c:1519: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). bindBasePort = atoi(config->secondaryport); data/conserver-8.2.4/conserver/master.c:374: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 acIn[BUFSIZ]; data/conserver-8.2.4/conserver/master.c:541:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char addr[NI_MAXHOST]; data/conserver-8.2.4/conserver/master.c:848:10: [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). fp = fopen(PIDFILE, "w"); data/conserver-8.2.4/conserver/readcfg.c:242:18: [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. BuildString((char *)0, breakList[parserBreakNum - 1].seq); data/conserver-8.2.4/conserver/readcfg.c:306:37: [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 ((*p != '\000') || ((delay = atoi(id)) > 999)) { data/conserver-8.2.4/conserver/readcfg.c:1091: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). *uid = (uid_t) atoi(id); data/conserver-8.2.4/conserver/readcfg.c:1115:18: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *gid = (gid_t) atoi(colon); data/conserver-8.2.4/conserver/readcfg.c:1389:9: [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). i = atoi(id); data/conserver-8.2.4/conserver/readcfg.c:1825: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). c->port = (unsigned short)atoi(id) + 1; data/conserver-8.2.4/conserver/readcfg.c:1859: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). c->portinc = (unsigned short)atoi(id) + 1; data/conserver-8.2.4/conserver/readcfg.c:1888: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). c->portbase = (unsigned short)atoi(id) + 2; data/conserver-8.2.4/conserver/readcfg.c:1932:9: [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). i = atoi(id); data/conserver-8.2.4/conserver/readcfg.c:1969:9: [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). i = atoi(id); data/conserver-8.2.4/conserver/readcfg.c:2144:30: [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). c->idletimeout = (time_t)atoi(id) * (factor == 0 ? 1 : factor); data/conserver-8.2.4/conserver/readcfg.c:2274: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). pvalue = atoi(n); data/conserver-8.2.4/conserver/readcfg.c:2291:11: [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). pvalue = atoi(n); data/conserver-8.2.4/conserver/readcfg.c:4202:18: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int mask = atoi(&(token[sPos + 1])); data/conserver-8.2.4/conserver/readcfg.c:4576:37: [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). parserConfigTemp->reinitcheck = atoi(id); data/conserver-8.2.4/conserver/readcfg.c:4601: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). parserConfigTemp->initdelay = atoi(id); data/conserver-8.2.4/conserver/readcfg.c:5023:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. BuildString((char *)0, breakList[i].seq); data/conserver-8.2.4/conserver/readcfg.c:5065:34: [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 ((FILE *)0 == (fpConfig = fopen(pcConfig, "r"))) { data/conserver-8.2.4/console/console.c:177: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 namestr[128]; data/conserver-8.2.4/console/console.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 buf[1024]; data/conserver-8.2.4/console/console.c:509: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 host[NI_MAXHOST]; data/conserver-8.2.4/console/console.c:510: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 serv[NI_MAXSERV]; data/conserver-8.2.4/console/console.c:617: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((char *)&port.sin_addr.s_addr, (char *)hp->h_addr, data/conserver-8.2.4/console/console.c:620:6: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy((char *)hp->h_addr, (char *)&port.sin_addr.s_addr, data/conserver-8.2.4/console/console.c:743: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. static char buf[1024]; data/conserver-8.2.4/console/console.c:1168: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. static char acMesg[8192]; data/conserver-8.2.4/console/console.c:1559:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *cmds[4] = { (char *)0, (char *)0, (char *)0, (char *)0 }; data/conserver-8.2.4/console/console.c:1626:20: [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 = (short)atoi(ports); data/conserver-8.2.4/console/console.c:1628:20: [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 = (short)atoi(ports); data/conserver-8.2.4/console/console.c:1630:26: [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 = htons((short)atoi(ports)); data/conserver-8.2.4/console/console.c:1855:23: [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). disconnectCount += atoi(result + 19); data/conserver-8.2.4/console/console.c:2369:13: [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). bindPort = atoi(config->port); data/conserver-8.2.4/console/console.c:2452:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open("/dev/tty", O_RDONLY)) != -1) { data/conserver-8.2.4/console/getpassword.c:73: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[BUFSIZ]; data/conserver-8.2.4/console/getpassword.c:82:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open("/dev/tty", O_RDWR)) == -1) { data/conserver-8.2.4/console/readconf.c:371:50: [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). parserConfigTemp->playback = (unsigned short)atoi(id) + 1; data/conserver-8.2.4/console/readconf.c:411:48: [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). parserConfigTemp->replay = (unsigned short)atoi(id) + 1; data/conserver-8.2.4/console/readconf.c:661:28: [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 ((FILE *)0 == (fp = fopen(filename, "r"))) { data/conserver-8.2.4/contrib/chat/chat.c:143:30: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define memmove(to, from, n) bcopy(from, to, n) data/conserver-8.2.4/contrib/chat/chat.c:187:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *abort_string[MAX_ABORTS], *fail_reason = (char *)0, data/conserver-8.2.4/contrib/chat/chat.c:187:49: [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 *abort_string[MAX_ABORTS], *fail_reason = (char *)0, data/conserver-8.2.4/contrib/chat/chat.c:192:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *report_string[MAX_REPORTS] ; data/conserver-8.2.4/contrib/chat/chat.c:193:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char report_buffer[50] ; data/conserver-8.2.4/contrib/chat/chat.c:239: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 (ans, b, c); data/conserver-8.2.4/contrib/chat/chat.c:302:13: [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). timeout = atoi(optarg); data/conserver-8.2.4/contrib/chat/chat.c:316: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). report_fp = fopen (report_file, "a"); data/conserver-8.2.4/contrib/chat/chat.c:394: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 [STR_LEN]; data/conserver-8.2.4/contrib/chat/chat.c:397:11: [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). cfp = fopen (chat_file, "r"); data/conserver-8.2.4/contrib/chat/chat.c:469:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[1024]; data/conserver-8.2.4/contrib/chat/chat.c:669: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[STR_LEN], env_str[STR_LEN], cur_chr; data/conserver-8.2.4/contrib/chat/chat.c:985: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. static char string[10]; data/conserver-8.2.4/contrib/chat/chat.c:1007: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 file_data[STR_LEN]; data/conserver-8.2.4/contrib/chat/chat.c:1136: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). timeout = atoi(s); data/conserver-8.2.4/contrib/chat/chat.c:1162:10: [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(fn, "r"); data/conserver-8.2.4/contrib/chat/chat.c:1350: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[STR_LEN]; data/conserver-8.2.4/contrib/chat/chat.c:1574: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 num[32]; data/conserver-8.2.4/contrib/chat/chat.c:1586: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(buf, fmt, len); data/conserver-8.2.4/contrib/chat/chat.c:1747:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, str, len); data/conserver-8.2.4/autologin/autologin.c:113: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 ((char *)0 == (pcCmd = (char *)malloc(strlen(pcCommand) + 4))) { data/conserver-8.2.4/autologin/autologin.c:155: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). pcGrps = pcGrps + strlen(pcGrps) + 1; data/conserver-8.2.4/autologin/autologin.c:166: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). (pcDevTty = (char *)malloc(strlen(pcTty) + 5 + 1))) { data/conserver-8.2.4/autologin/autologin.c:508:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(utmp.ut_user, pclogin, sizeof(utmp.ut_user)); data/conserver-8.2.4/autologin/autologin.c:510:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(utmp.ut_line, pcDev, sizeof(utmp.ut_line)); data/conserver-8.2.4/autologin/autologin.c:531:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(utmp.ut_line, pcDev, sizeof(utmp.ut_line)); data/conserver-8.2.4/autologin/autologin.c:532:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(utmp.ut_name, pclogin, sizeof(utmp.ut_name)); data/conserver-8.2.4/autologin/autologin.c:533:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. (void)strncpy(utmp.ut_host, "(autologin)", sizeof(utmp.ut_host)); data/conserver-8.2.4/autologin/autologin.c:538:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (sizeof(utmp) == read(fdUtmp, &utmp, sizeof(utmp))) { data/conserver-8.2.4/autologin/autologin.c:545:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void)strncpy(utmp.ut_name, pclogin, sizeof(utmp.ut_name)); data/conserver-8.2.4/conserver/access.c:267: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). wlen = strlen(pACtmp->pcwho); data/conserver-8.2.4/conserver/access.c:269: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). for (pcName = revNames[a], len = strlen(pcName); data/conserver-8.2.4/conserver/access.c:270: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). len >= wlen; len = strlen(++pcName)) { data/conserver-8.2.4/conserver/client.c:452:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(text) < HALFLINE) { data/conserver-8.2.4/conserver/consent.c:819:2: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(250000); /* pause 0.25 sec to let things settle a bit */ data/conserver-8.2.4/conserver/consent.c:885:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(100000); /* Not all terminal servers can keep up */ data/conserver-8.2.4/conserver/consent.c:1044:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(pCE->uds) >= sizeof(port.sun_path)) { data/conserver-8.2.4/conserver/convert.c:113: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). buflen = strlen(buf); data/conserver-8.2.4/conserver/cutil.c:49: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). write(2, progname, strlen(progname)); data/conserver-8.2.4/conserver/cutil.c:132:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(str); data/conserver-8.2.4/conserver/cutil.c:134:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(str) + 1; data/conserver-8.2.4/conserver/cutil.c:386:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buflen = strlen(buf); data/conserver-8.2.4/conserver/cutil.c:460:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(pcIn); data/conserver-8.2.4/conserver/cutil.c:628: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). write(cfp->debugwfd, buf, strlen(buf)); data/conserver-8.2.4/conserver/cutil.c:636: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). write(cfp->debugrfd, buf, strlen(buf)); data/conserver-8.2.4/conserver/cutil.c:673: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). write(cfp->debugwfd, buf, strlen(buf)); data/conserver-8.2.4/conserver/cutil.c:681: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). write(cfp->debugrfd, buf, strlen(buf)); data/conserver-8.2.4/conserver/cutil.c:764: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). write(cfp->debugwfd, buf, strlen(buf)); data/conserver-8.2.4/conserver/cutil.c:772: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). write(cfp->debugrfd, buf, strlen(buf)); data/conserver-8.2.4/conserver/cutil.c:892:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((retval = read(cfp->fd, buf, len)) <= 0) { data/conserver-8.2.4/conserver/cutil.c:1014:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(buf); data/conserver-8.2.4/conserver/cutil.c:1327: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). int l = strlen(p); data/conserver-8.2.4/conserver/cutil.c:2246: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(msg) + 1; data/conserver-8.2.4/conserver/cutil.c:2406:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = fgetc(fp)) != EOF) { data/conserver-8.2.4/conserver/cutil.c:2953: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). plen -= strlen(c); data/conserver-8.2.4/conserver/group.c:2041: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). int len = strlen(name); data/conserver-8.2.4/conserver/group.c:2746: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). write(1, pCEServing->server, strlen(pCEServing->server)); data/conserver-8.2.4/conserver/group.c:4216:4: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(delay * 1000); data/conserver-8.2.4/conserver/group.c:5252:6: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(750000); /* pause 0.75 sec to throttle startup a bit */ data/conserver-8.2.4/conserver/main.c:432: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). namebuf.length = strlen(namestr) + 1; data/conserver-8.2.4/conserver/main.c:827: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). size += strlen(pCE->server) + sizeof(CONSENT); data/conserver-8.2.4/conserver/main.c:829: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). size += strlen(pCE->server); data/conserver-8.2.4/conserver/main.c:831: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). size += strlen(pCE->device); data/conserver-8.2.4/conserver/main.c:833: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). size += strlen(pCE->exec); data/conserver-8.2.4/conserver/main.c:835: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). size += strlen(pCE->master); data/conserver-8.2.4/conserver/main.c:837: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). size += strlen(pCE->logfile); data/conserver-8.2.4/conserver/main.c:839: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). size += strlen(pCE->initcmd); data/conserver-8.2.4/conserver/main.c:841: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). size += strlen(pCE->execSlave); data/conserver-8.2.4/conserver/main.c:843: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). size += strlen(pCE->motd); data/conserver-8.2.4/conserver/main.c:845: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). size += strlen(pCE->idlestring); data/conserver-8.2.4/conserver/main.c:847: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). size += strlen(pCE->replstring); data/conserver-8.2.4/conserver/main.c:849: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). size += strlen(pCE->tasklist); data/conserver-8.2.4/conserver/main.c:851: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). size += strlen(pCE->breaklist); data/conserver-8.2.4/conserver/main.c:854: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). size += strlen(pCE->username); data/conserver-8.2.4/conserver/main.c:856: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). size += strlen(pCE->password); data/conserver-8.2.4/conserver/main.c:869: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). size += sizeof(NAMES) + strlen(n->name); data/conserver-8.2.4/conserver/main.c:875: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). size += sizeof(CONSENTUSERS) + strlen(u->user->name); data/conserver-8.2.4/conserver/main.c:881: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). size += sizeof(CONSENTUSERS) + strlen(u->user->name); data/conserver-8.2.4/conserver/main.c:892:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size += strlen(pRC->rserver) + strlen(pRC->rhost) + sizeof(REMOTE); data/conserver-8.2.4/conserver/main.c:892: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). size += strlen(pRC->rserver) + strlen(pRC->rhost) + sizeof(REMOTE); data/conserver-8.2.4/conserver/main.c:896: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 += sizeof(NAMES) + strlen(n->name); data/conserver-8.2.4/conserver/main.c:905:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size += strlen(pAC->pcwho) + sizeof(ACCESS); data/conserver-8.2.4/conserver/main.c:919:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size += strlen(usr->name) + sizeof(NAMES); data/conserver-8.2.4/conserver/master.c:252: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 (strncasecmp(args, pCE->server, strlen(args)) == 0) { data/conserver-8.2.4/conserver/master.c:260:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncasecmp(args, name->name, strlen(args)) data/conserver-8.2.4/conserver/master.c:279: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 (strncasecmp(args, pRC->rserver, strlen(args)) data/conserver-8.2.4/conserver/master.c:288:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncasecmp(args, name->name, strlen(args)) data/conserver-8.2.4/conserver/master.c:321: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). found = strlen(ambiguous); data/conserver-8.2.4/conserver/readcfg.c:3373: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). len = strlen(c->uds); data/conserver-8.2.4/console/console.c:183: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). namebuf.length = strlen(namestr) + 1; data/conserver-8.2.4/console/console.c:967:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(0, &c, 1) == 0) data/conserver-8.2.4/console/console.c:1333:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((nc = read(0, acMesg, sizeof(acMesg))) <= 0) { data/conserver-8.2.4/console/console.c:1589: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(ports); data/conserver-8.2.4/console/console.c:1790: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). len = strlen(t); data/conserver-8.2.4/console/console.c:1839: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). len = strlen(result); data/conserver-8.2.4/console/getpassword.c:88: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). write(fd, prompt, strlen(prompt)); data/conserver-8.2.4/console/getpassword.c:91:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((nc = read(0, buf, sizeof(buf))) == 0) data/conserver-8.2.4/contrib/chat/chat.c:246: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). return dup_mem (s, strlen (s) + 1); data/conserver-8.2.4/contrib/chat/chat.c:632: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). rep_len = strlen(report_buffer); data/conserver-8.2.4/contrib/chat/chat.c:1012: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). write(2, s, strlen(s)); data/conserver-8.2.4/contrib/chat/chat.c:1042:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(s1) > strlen(s) data/conserver-8.2.4/contrib/chat/chat.c:1042: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). if (strlen(s1) > strlen(s) data/conserver-8.2.4/contrib/chat/chat.c:1043: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(s1) + 1 > sizeof(fail_buffer)) data/conserver-8.2.4/contrib/chat/chat.c:1063:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(s1) > strlen(s) data/conserver-8.2.4/contrib/chat/chat.c:1063: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). if (strlen(s1) > strlen(s) data/conserver-8.2.4/contrib/chat/chat.c:1064: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(s1) + 1 > sizeof(fail_buffer)) data/conserver-8.2.4/contrib/chat/chat.c:1093:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(s1) > strlen(s) || strlen(s1) > sizeof fail_buffer - 1) data/conserver-8.2.4/contrib/chat/chat.c:1093: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). if (strlen(s1) > strlen(s) || strlen(s1) > sizeof fail_buffer - 1) data/conserver-8.2.4/contrib/chat/chat.c:1093: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 (strlen(s1) > strlen(s) || strlen(s1) > sizeof fail_buffer - 1) data/conserver-8.2.4/contrib/chat/chat.c:1113:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(s1) > strlen(s) || strlen(s1) > sizeof fail_buffer - 1) data/conserver-8.2.4/contrib/chat/chat.c:1113: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). if (strlen(s1) > strlen(s) || strlen(s1) > sizeof fail_buffer - 1) data/conserver-8.2.4/contrib/chat/chat.c:1113: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 (strlen(s1) > strlen(s) || strlen(s1) > sizeof fail_buffer - 1) data/conserver-8.2.4/contrib/chat/chat.c:1198:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). status = read(0, &c, 1); data/conserver-8.2.4/contrib/chat/chat.c:1224:5: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(10000); /* inter-character typing delay (?) */ data/conserver-8.2.4/contrib/chat/chat.c:1299:6: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(10000); /* 1/100th of a second (arg is microseconds) */ data/conserver-8.2.4/contrib/chat/chat.c:1338: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). write(2, s, strlen(s)); data/conserver-8.2.4/contrib/chat/chat.c:1357: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(string); data/conserver-8.2.4/contrib/chat/chat.c:1408: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). s - temp >= (report_len = strlen(report_string[n])) && data/conserver-8.2.4/contrib/chat/chat.c:1424:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int rep_len = strlen (report_buffer); data/conserver-8.2.4/contrib/chat/chat.c:1449:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (s - temp >= (abort_len = strlen(abort_string[n])) && data/conserver-8.2.4/contrib/chat/chat.c:1517:1: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep( usec ) /* returns 0 if ok, else -1 */ data/conserver-8.2.4/contrib/chat/chat.c:1666:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n = strlen((char *)p); data/conserver-8.2.4/contrib/chat/chat.c:1732: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). len = strlen(str); ANALYSIS SUMMARY: Hits = 333 Lines analyzed = 27081 in approximately 0.72 seconds (37464 lines/second) Physical Source Lines of Code (SLOC) = 22156 Hits@level = [0] 117 [1] 103 [2] 158 [3] 10 [4] 58 [5] 4 Hits@level+ = [0+] 450 [1+] 333 [2+] 230 [3+] 72 [4+] 62 [5+] 4 Hits/KSLOC@level+ = [0+] 20.3105 [1+] 15.0298 [2+] 10.3809 [3+] 3.24968 [4+] 2.79834 [5+] 0.180538 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.