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/dictd-1.13.0+dfsg/mbstowcs.c Examining data/dictd-1.13.0+dfsg/dict.h Examining data/dictd-1.13.0+dfsg/index.h Examining data/dictd-1.13.0+dfsg/net.h Examining data/dictd-1.13.0+dfsg/heap.c Examining data/dictd-1.13.0+dfsg/dictdplugin_judy.c Examining data/dictd-1.13.0+dfsg/dictdplugin.h Examining data/dictd-1.13.0+dfsg/strategy.h Examining data/dictd-1.13.0+dfsg/wctomb.c Examining data/dictd-1.13.0+dfsg/setenv.c Examining data/dictd-1.13.0+dfsg/mbtowc.c Examining data/dictd-1.13.0+dfsg/strlcat.c Examining data/dictd-1.13.0+dfsg/daemon3.c Examining data/dictd-1.13.0+dfsg/snprintf.c Examining data/dictd-1.13.0+dfsg/str.h Examining data/dictd-1.13.0+dfsg/iswspace.c Examining data/dictd-1.13.0+dfsg/towlower.c Examining data/dictd-1.13.0+dfsg/dictdplugin.c Examining data/dictd-1.13.0+dfsg/index.c Examining data/dictd-1.13.0+dfsg/heap.h Examining data/dictd-1.13.0+dfsg/plugins_common.h Examining data/dictd-1.13.0+dfsg/dictdplugin_exit.c Examining data/dictd-1.13.0+dfsg/strlcpy.c Examining data/dictd-1.13.0+dfsg/strategy.c Examining data/dictd-1.13.0+dfsg/parse.h Examining data/dictd-1.13.0+dfsg/vsnprintf.c Examining data/dictd-1.13.0+dfsg/plugins_common.c Examining data/dictd-1.13.0+dfsg/data.c Examining data/dictd-1.13.0+dfsg/codes.h Examining data/dictd-1.13.0+dfsg/net.c Examining data/dictd-1.13.0+dfsg/dictP.h Examining data/dictd-1.13.0+dfsg/str.c Examining data/dictd-1.13.0+dfsg/dictzip.h Examining data/dictd-1.13.0+dfsg/dictd.h Examining data/dictd-1.13.0+dfsg/dictdplugin_dbi.c Examining data/dictd-1.13.0+dfsg/defs.h Examining data/dictd-1.13.0+dfsg/mbrtowc.c Examining data/dictd-1.13.0+dfsg/mbrlen.c Examining data/dictd-1.13.0+dfsg/plugin.h Examining data/dictd-1.13.0+dfsg/wcrtomb.c Examining data/dictd-1.13.0+dfsg/dictdplugin_popen.cpp Examining data/dictd-1.13.0+dfsg/plugin.c Examining data/dictd-1.13.0+dfsg/md5.h Examining data/dictd-1.13.0+dfsg/data.h Examining data/dictd-1.13.0+dfsg/daemon.c Examining data/dictd-1.13.0+dfsg/dictzip.c Examining data/dictd-1.13.0+dfsg/md5.c Examining data/dictd-1.13.0+dfsg/parse.c Examining data/dictd-1.13.0+dfsg/iswalnum.c Examining data/dictd-1.13.0+dfsg/dict.c Examining data/dictd-1.13.0+dfsg/dictd.c Examining data/dictd-1.13.0+dfsg/dictfmt.c Examining data/dictd-1.13.0+dfsg/lev.h FINAL RESULTS: data/dictd-1.13.0+dfsg/daemon.c:169:4: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf( buf+len, sizeof (buf)/2-len, format, ap ); data/dictd-1.13.0+dfsg/daemon.c:207:4: [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(tmp, spec); data/dictd-1.13.0+dfsg/daemon.c:222:4: [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(tstring, inet_ntoa(target)); data/dictd-1.13.0+dfsg/daemon.c:223:4: [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(mstring, inet_ntoa(mask)); data/dictd-1.13.0+dfsg/daemon.c:246:4: [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(tmp, spec); data/dictd-1.13.0+dfsg/daemon.c:265:4: [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(tstring, inet_ntoa(target)); data/dictd-1.13.0+dfsg/daemon.c:266:4: [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(minstring, inet_ntoa(min)); data/dictd-1.13.0+dfsg/daemon.c:267:4: [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(maxstring, inet_ntoa(max)); data/dictd-1.13.0+dfsg/daemon.c:475:4: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf( buf, sizeof (buf), format, ap ); data/dictd-1.13.0+dfsg/dict.c:465:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (dict_output, format, arg_get (a,0), arg_get (a,1)); data/dictd-1.13.0+dfsg/dict.c:721:7: [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( p, b ); data/dictd-1.13.0+dfsg/dict.c:1452: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 (!access(b, R_OK)) { data/dictd-1.13.0+dfsg/dict.c:1457:8: [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( DICT_CONFIG_PATH DICT_CONFIG_NAME, R_OK )) data/dictd-1.13.0+dfsg/dictd.c:164:4: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf( buf, MAXPROCTITLE, format, ap ); data/dictd-1.13.0+dfsg/dictd.c:171:4: [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( _dict_argvstart, buf ); data/dictd-1.13.0+dfsg/dictd.c:308:9: [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(configFile,R_OK)){ data/dictd-1.13.0+dfsg/dictd.c:405:7: [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 (new_fn, prefix); data/dictd-1.13.0+dfsg/dictd.c:406: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 (new_fn, fn); data/dictd-1.13.0+dfsg/dictd.c:1304:8: [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(confFile,R_OK)) { data/dictd-1.13.0+dfsg/dictd.c:1317:27: [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 (e->indexFilename && access(e->indexFilename, R_OK)) { data/dictd-1.13.0+dfsg/dictd.c:1323: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. if (e->indexsuffixFilename && access(e->indexsuffixFilename, R_OK)) { data/dictd-1.13.0+dfsg/dictd.c:1329:31: [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 (e->indexwordFilename && access(e->indexwordFilename, R_OK)) { data/dictd-1.13.0+dfsg/dictd.c:1336:26: [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 (e->dataFilename && access(e->dataFilename, R_OK)) { data/dictd-1.13.0+dfsg/dictd.c:1702:9: [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(configFile,R_OK)) { data/dictd-1.13.0+dfsg/dictdplugin_dbi.c:784: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 (buffer, word); data/dictd-1.13.0+dfsg/dictdplugin_popen.cpp:318:15: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. FILE *fd = popen (pipe.c_str (), "r"); data/dictd-1.13.0+dfsg/dictfmt.c:171:20: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (!(fmt_str = popen( buffer, "w" ))) { data/dictd-1.13.0+dfsg/dictfmt.c:734:7: [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(prev, word); data/dictd-1.13.0+dfsg/dictfmt.c:978: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 (alphabet, keys [i]); data/dictd-1.13.0+dfsg/dictfmt.c:1139:50: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define CHECK_LIBCALL(x) do { if ((x) == NULL) { fprintf(stderr, #x " failed\n"); exit(1); }} while (0) data/dictd-1.13.0+dfsg/dictfmt.c:1334: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( buffer2, buffer ); data/dictd-1.13.0+dfsg/dictfmt.c:1343: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( buffer2, buffer ); data/dictd-1.13.0+dfsg/dictzip.c:172:10: [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( origFilename, pt + 1 ); data/dictd-1.13.0+dfsg/dictzip.c:174:10: [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( origFilename, inFilename ); data/dictd-1.13.0+dfsg/dictzip.c:239:4: [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( &header[GZ_FEXTRA_START + extraLength], origFilename ); data/dictd-1.13.0+dfsg/index.c:1509:7: [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, word); data/dictd-1.13.0+dfsg/index.c:1553:7: [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, word); data/dictd-1.13.0+dfsg/lev.h:31:4: [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, word ); \ data/dictd-1.13.0+dfsg/lev.h:80:4: [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 + 1, word ); data/dictd-1.13.0+dfsg/lev.h:87:4: [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, word ); data/dictd-1.13.0+dfsg/parse.c:74:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buffer, "%s '%s' 2>/dev/null", pp, filename); data/dictd-1.13.0+dfsg/parse.c:78:17: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (!(yyin = popen( buffer, "r" ))) data/dictd-1.13.0+dfsg/parse.c:111:26: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (!cpp && (tmp = popen( "gcc -print-file-name=cpp", "r" ))) { data/dictd-1.13.0+dfsg/parse.c:132: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. if (!access( *pt, X_OK )) { data/dictd-1.13.0+dfsg/parse.c:151:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( buffer, "%s -I. %s %s 2>/dev/null", cpp, data/dictd-1.13.0+dfsg/parse.c:155:17: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (!(yyin = popen( buffer, "r" ))) data/dictd-1.13.0+dfsg/plugin.c:315: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 (datum.name, strats [i] -> name); data/dictd-1.13.0+dfsg/plugin.c:451:7: [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 (filename, DICT_PLUGIN_PATH); data/dictd-1.13.0+dfsg/plugin.c:452: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 (filename, p); data/dictd-1.13.0+dfsg/setenv.c:11:7: [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 (p, name); data/dictd-1.13.0+dfsg/setenv.c:13: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 (p, value); data/dictd-1.13.0+dfsg/snprintf.c:13:5: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int snprintf(char *str, size_t size, const char *format, ...) data/dictd-1.13.0+dfsg/snprintf.c:18:4: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf (str, format, ap); data/dictd-1.13.0+dfsg/vsnprintf.c:13:5: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int vsnprintf(char *str, size_t size, const char *format, va_list ap) data/dictd-1.13.0+dfsg/vsnprintf.c:15:4: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf (str, format, ap); data/dictd-1.13.0+dfsg/dict.c:1389:16: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt_long( argc, argv, data/dictd-1.13.0+dfsg/dict.c:1448:19: [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. char *env = getenv("HOME"); data/dictd-1.13.0+dfsg/dictd.c:1571:16: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt_long( argc, argv, data/dictd-1.13.0+dfsg/dictfmt.c:155: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. const char *sort_cmd = getenv("DICTFMT_SORT"); data/dictd-1.13.0+dfsg/dictfmt.c:1185:16: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt_long( argc, argv, "qVLjvfepiIhDu:s:c:t", data/dictd-1.13.0+dfsg/dictzip.c:474:16: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt_long( argc, argv, data/dictd-1.13.0+dfsg/parse.c:105:18: [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 ((cpp = getenv( "KHEPERA_CPP" ))) { data/dictd-1.13.0+dfsg/setenv.c:7:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (!overwrite && getenv (name)){ data/dictd-1.13.0+dfsg/daemon.c:41:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char daemonStamp[256] = ""; data/dictd-1.13.0+dfsg/daemon.c:66:10: [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. const char *name[MAXARGCS]; data/dictd-1.13.0+dfsg/daemon.c:125: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 buf[8*1024]; data/dictd-1.13.0+dfsg/daemon.c:202: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 tstring[64], mstring[64]; data/dictd-1.13.0+dfsg/daemon.c:243: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 tstring[64], minstring[64], maxstring[64]; data/dictd-1.13.0+dfsg/daemon.c:281: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 regbuf[256]; data/dictd-1.13.0+dfsg/daemon.c:282: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 erbuf[100]; data/dictd-1.13.0+dfsg/daemon.c:470: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 buf[BUFFERSIZE]; data/dictd-1.13.0+dfsg/daemon.c:1033:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (p, dw -> def, dw -> def_size); data/dictd-1.13.0+dfsg/daemon.c:1255: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 buffer[1024]; data/dictd-1.13.0+dfsg/daemon.c:1358: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 (site_info && (str = fopen( site_info, "r" ))) { data/dictd-1.13.0+dfsg/daemon.c:1401:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char digest[16]; data/dictd-1.13.0+dfsg/daemon.c:1402: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 hex[33]; data/dictd-1.13.0+dfsg/daemon.c:1510:11: [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 hostname[NI_MAXHOST], service[NI_MAXSERV]; data/dictd-1.13.0+dfsg/daemon.c:1540: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 buf[4096]; data/dictd-1.13.0+dfsg/daemon3.c:35:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open("/dev/tty", O_RDWR)) >= 0) { data/dictd-1.13.0+dfsg/daemon3.c:48: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). fd = open("/dev/null", O_RDWR); /* stdin */ data/dictd-1.13.0+dfsg/data.c:56:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( buffer, outBuffer, outLen ); data/dictd-1.13.0+dfsg/data.c:71: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 buffer[BUFFERSIZE]; data/dictd-1.13.0+dfsg/data.c:81:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(str = fopen( filename, "r" ))) data/dictd-1.13.0+dfsg/data.c:260: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 ((h->fd = open( filename, O_RDONLY )) < 0) data/dictd-1.13.0+dfsg/data.c:351:7: [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 (word_copy, dw -> def, len); data/dictd-1.13.0+dfsg/data.c:374: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 outBuffer[OUT_BUFFER_SIZE]; data/dictd-1.13.0+dfsg/data.c:398:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( buffer, h->start + start, size ); data/dictd-1.13.0+dfsg/data.c:463: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( outBuffer, h->start + h->offsets[i], h->chunks[i] ); data/dictd-1.13.0+dfsg/data.c:485:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( pt, inBuffer + firstOffset, lastOffset-firstOffset); data/dictd-1.13.0+dfsg/data.c:492:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( pt, inBuffer + firstOffset, data/dictd-1.13.0+dfsg/data.c:497: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( pt, inBuffer, lastOffset ); data/dictd-1.13.0+dfsg/data.c:501: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( pt, inBuffer, h->chunkLength ); data/dictd-1.13.0+dfsg/defs.h:176:10: [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. const char *optStart[UCHAR_MAX+2]; /* Optimized starting points */ data/dictd-1.13.0+dfsg/dict.c:256: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 line[BUFFERSIZE]; data/dictd-1.13.0+dfsg/dict.c:416: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 format[32]; data/dictd-1.13.0+dfsg/dict.c:492:11: [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[BUFFERSIZE]; data/dictd-1.13.0+dfsg/dict.c:507: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). if ((status = atoi(buf)) < 100) status = 600; data/dictd-1.13.0+dfsg/dict.c:532:39: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (argc > 1 && count) *count = atoi(argv[1]); data/dictd-1.13.0+dfsg/dict.c:636: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 b[BUFFERSIZE]; data/dictd-1.13.0+dfsg/dict.c:641:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char digest[16]; data/dictd-1.13.0+dfsg/dict.c:642: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 hex[33]; data/dictd-1.13.0+dfsg/dict.c:677:6: [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( hex+2*i, "%02x", digest[i] ); data/dictd-1.13.0+dfsg/dict.c:1226:11: [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 buffer[BUFFERSIZE]; data/dictd-1.13.0+dfsg/dict.c:1423: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). case 504: client_pipesize = atoi(optarg); break; data/dictd-1.13.0+dfsg/dict.c:1447: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 b[256]; data/dictd-1.13.0+dfsg/dictd.c:161: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 buf[MAXPROCTITLE]; data/dictd-1.13.0+dfsg/dictd.c:178:11: [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[10][128]; /* Rotate 10 buffers */ data/dictd-1.13.0+dfsg/dictd.c:261:11: [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 name [50]; data/dictd-1.13.0+dfsg/dictd.c:1138:11: [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 buffer [BUFFERSIZE]; data/dictd-1.13.0+dfsg/dictd.c:1448:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). pid_fd = fopen (pidFile, "w"); data/dictd-1.13.0+dfsg/dictd.c:1472: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). int fd = open ("/dev/null", O_RDWR); data/dictd-1.13.0+dfsg/dictd.c:1590:27: [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). _dict_markTime = 60*atoi(optarg); data/dictd-1.13.0+dfsg/dictd.c:1605:22: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). client_delay = atoi(optarg); data/dictd-1.13.0+dfsg/dictd.c:1610:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). depth = atoi(optarg); data/dictd-1.13.0+dfsg/dictd.c:1614:31: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). _dict_daemon_limit_childs = atoi(optarg); data/dictd-1.13.0+dfsg/dictdplugin.h:37: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 name [20]; data/dictd-1.13.0+dfsg/dictdplugin_dbi.c:47: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 m_err_msg [BUFSIZE]; data/dictd-1.13.0+dfsg/dictdplugin_dbi.c:312: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 err_msg [BUFSIZE]; data/dictd-1.13.0+dfsg/dictdplugin_dbi.c:350:7: [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 (alphabet, defs [0], len); data/dictd-1.13.0+dfsg/dictdplugin_dbi.c:813: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 query [BUFSIZE]; data/dictd-1.13.0+dfsg/dictdplugin_dbi.c:848: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 word_copy2 [BUFSIZE]; data/dictd-1.13.0+dfsg/dictdplugin_judy.c:49: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 m_err_msg [BUFSIZE]; data/dictd-1.13.0+dfsg/dictdplugin_judy.c:69: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 m_conf_index_fn [NAME_MAX+1]; data/dictd-1.13.0+dfsg/dictdplugin_judy.c:70: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 m_conf_data_fn [NAME_MAX+1]; data/dictd-1.13.0+dfsg/dictdplugin_judy.c:71: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 m_default_db_dir [NAME_MAX+1]; data/dictd-1.13.0+dfsg/dictdplugin_judy.c:265: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 word [BUFSIZE] = ""; data/dictd-1.13.0+dfsg/dictdplugin_judy.c:290: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 buf [BUFSIZE]; data/dictd-1.13.0+dfsg/dictdplugin_judy.c:300:9: [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). fd = fopen (dict_data -> m_conf_index_fn, "r"); data/dictd-1.13.0+dfsg/dictdplugin_judy.c:368: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 word [BUFSIZE]=""; data/dictd-1.13.0+dfsg/dictdplugin_judy.c:503:7: [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 (alphabet, defs [0], len); data/dictd-1.13.0+dfsg/dictdplugin_judy.c:694: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 curr_word [BUFSIZE]; data/dictd-1.13.0+dfsg/dictdplugin_judy.c:754: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 prev_buf [BUFSIZE] = ""; \ data/dictd-1.13.0+dfsg/dictdplugin_judy.c:795: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 word_copy2 [BUFSIZE]; data/dictd-1.13.0+dfsg/dictdplugin_popen.cpp:71: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 m_valid_chars [UCHAR_MAX + 1]; data/dictd-1.13.0+dfsg/dictdplugin_popen.cpp:162:24: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ostr << (const char *) init_data [i].data << '\0'; data/dictd-1.13.0+dfsg/dictdplugin_popen.cpp:164:37: [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. ostr << std::string ((const char *) init_data [i].data, init_data [i].size) << '\0'; data/dictd-1.13.0+dfsg/dictdplugin_popen.cpp:328: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 buff [10000]; data/dictd-1.13.0+dfsg/dictdplugin_popen.cpp:378:40: [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. data -> m_mres = new const char * [*results_count]; data/dictd-1.13.0+dfsg/dictfmt.c:154: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 buffer [1024]; data/dictd-1.13.0+dfsg/dictfmt.c:1003: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 buffer[BSIZE]; data/dictd-1.13.0+dfsg/dictfmt.c:1075: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 ver [200]; data/dictd-1.13.0+dfsg/dictfmt.c:1144: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 buffer[BSIZE]; data/dictd-1.13.0+dfsg/dictfmt.c:1145: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 buffer2[BSIZE]; data/dictd-1.13.0+dfsg/dictfmt.c:1146: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 indexname[1024]="/nonexistentfile.index"; data/dictd-1.13.0+dfsg/dictfmt.c:1147: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 dataname[1024]="/nonexistentfile.data"; data/dictd-1.13.0+dfsg/dictfmt.c:1238: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). fmt_maxpos = atoi (optarg); data/dictd-1.13.0+dfsg/dictfmt.c:1312:19: [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 (!(str = fopen (dataname, "w"))) { data/dictd-1.13.0+dfsg/dictzip.c:133: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 inBuffer[IN_BUFFER_SIZE]; data/dictd-1.13.0+dfsg/dictzip.c:134: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 outBuffer[OUT_BUFFER_SIZE]; data/dictd-1.13.0+dfsg/dictzip.c:154: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 tail[8]; data/dictd-1.13.0+dfsg/dictzip.c:159:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(inStr = fopen( inFilename, "r" ))) data/dictd-1.13.0+dfsg/dictzip.c:162:19: [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 (!(outStr = fopen( outFilename, "w" ))) data/dictd-1.13.0+dfsg/dictzip.c:338:11: [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 buffer[BUFFERSIZE]; data/dictd-1.13.0+dfsg/dictzip.c:420: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 buffer[BUFFERSIZE]; data/dictd-1.13.0+dfsg/dictzip.c:432: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 filename[BUFFERSIZE]; data/dictd-1.13.0+dfsg/dictzip.c:534:31: [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 (!forceFlag && (str = fopen( filename, "r" ))) data/dictd-1.13.0+dfsg/dictzip.c:536:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(str = fopen( filename, "w" ))) data/dictd-1.13.0+dfsg/heap.c:105:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (p, s, len + 1); data/dictd-1.13.0+dfsg/heap.c:153: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 (new_p, (char *) p, (h -> ptr + h -> allocated_bytes) - (char *) p); data/dictd-1.13.0+dfsg/index.c:65: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 global_alphabet_8bit [UCHAR_MAX + 2]; data/dictd-1.13.0+dfsg/index.c:66: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 global_alphabet_ascii [UCHAR_MAX + 2]; data/dictd-1.13.0+dfsg/index.c:131:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char s[2 * UCHAR_MAX + 2]; data/dictd-1.13.0+dfsg/index.c:132:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char *p[UCHAR_MAX + 1]; data/dictd-1.13.0+dfsg/index.c:373: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 buf[80], *d; data/dictd-1.13.0+dfsg/index.c:491: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 buf[80], *d; data/dictd-1.13.0+dfsg/index.c:1169: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 (dw -> word, p, len); data/dictd-1.13.0+dfsg/index.c:1197:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (word_copy, word, word_len); data/dictd-1.13.0+dfsg/index.c:1214: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 erbuf[100]; data/dictd-1.13.0+dfsg/index.c:1302: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 soundex [10]; data/dictd-1.13.0+dfsg/index.c:1303: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 soundex2 [5]; data/dictd-1.13.0+dfsg/index.c:1304: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 buffer[MAXWORDLEN]; data/dictd-1.13.0+dfsg/index.c:1843: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 buf[2]; data/dictd-1.13.0+dfsg/index.c:1860: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 ((i->fd = open( filename, O_RDONLY )) < 0) data/dictd-1.13.0+dfsg/lev.h:145:7: [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 (buf3, p, char_len); data/dictd-1.13.0+dfsg/lev.h:164:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buf, word, size + 1); data/dictd-1.13.0+dfsg/lev.h:173:7: [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 (d, p, char_len); data/dictd-1.13.0+dfsg/lev.h:197: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 (d, p, char_len); data/dictd-1.13.0+dfsg/md5.c:82: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(p, buf, len); data/dictd-1.13.0+dfsg/md5.c:85: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(p, buf, t); data/dictd-1.13.0+dfsg/md5.c:94: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(ctx->in, buf, 64); data/dictd-1.13.0+dfsg/md5.c:103:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ctx->in, buf, len); data/dictd-1.13.0+dfsg/md5.c:110:24: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void MD5Final(unsigned char digest[16], struct MD5Context *ctx) data/dictd-1.13.0+dfsg/md5.c:147:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(digest, ctx->buf, 16); data/dictd-1.13.0+dfsg/md5.h:10:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char in[64]; data/dictd-1.13.0+dfsg/md5.h:16:24: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void MD5Final(unsigned char digest[16], struct MD5Context *context); data/dictd-1.13.0+dfsg/net.c:39:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char netHostname[MAXHOSTNAMELEN]; data/dictd-1.13.0+dfsg/net.c:42:11: [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[40]; data/dictd-1.13.0+dfsg/parse.c:112:10: [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/dictd-1.13.0+dfsg/parse.c:177: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). if (!(yyin = fopen( filename, "r" ))) data/dictd-1.13.0+dfsg/parse.c:209: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). return atoi( buffer ); data/dictd-1.13.0+dfsg/plugin.c:320: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 ((void *) data -> data, &datum, sizeof (datum)); data/dictd-1.13.0+dfsg/plugin.c:422:11: [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 filename [FILENAME_MAX]; data/dictd-1.13.0+dfsg/strategy.c:200: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 buffer [400]; data/dictd-1.13.0+dfsg/strlcpy.c:38:7: [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 (dest, src, len + 1); data/dictd-1.13.0+dfsg/strlcpy.c:41: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 (dest, src, size - 1); data/dictd-1.13.0+dfsg/daemon.c:166: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). len = strlen( buf ); data/dictd-1.13.0+dfsg/daemon.c:171: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). len = strlen( buf ); data/dictd-1.13.0+dfsg/daemon.c:176: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(buf); data/dictd-1.13.0+dfsg/daemon.c:200: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). char *tmp = alloca(strlen(spec) + 1); data/dictd-1.13.0+dfsg/daemon.c:241: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). char *tmp = alloca(strlen(spec) + 1); data/dictd-1.13.0+dfsg/daemon.c:477: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). if ((len = strlen( buf )) >= BUFFERSIZE) { data/dictd-1.13.0+dfsg/daemon.c:484:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). daemon_write(pt, strlen(pt)); data/dictd-1.13.0+dfsg/daemon.c:505:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *pt = alloca( 2*strlen(text) + 10 ); data/dictd-1.13.0+dfsg/daemon.c:508:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). daemon_write(pt, strlen(pt)); data/dictd-1.13.0+dfsg/daemon.c:620: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). count = strlen(buf); data/dictd-1.13.0+dfsg/daemon.c:624: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). dict_data_filter(buf, &count, strlen (buf), db->filter); data/dictd-1.13.0+dfsg/daemon.c:1239: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). curr_len = strlen (db -> databaseName); data/dictd-1.13.0+dfsg/daemon.c:1416:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buf_size = strlen(daemonStamp) + strlen(secret) + 10; data/dictd-1.13.0+dfsg/daemon.c:1416:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buf_size = strlen(daemonStamp) + strlen(secret) + 10; data/dictd-1.13.0+dfsg/daemon.c:1421:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). MD5Update(&ctx, (const unsigned char *) buf, strlen(buf)); data/dictd-1.13.0+dfsg/data.c:89:27: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). id1 = getc( str ); data/dictd-1.13.0+dfsg/data.c:90:27: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). id2 = getc( str ); data/dictd-1.13.0+dfsg/data.c:112:27: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). header->method = getc( str ); data/dictd-1.13.0+dfsg/data.c:113:27: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). header->flags = getc( str ); data/dictd-1.13.0+dfsg/data.c:114:27: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). header->mtime = getc( str ) << 0; data/dictd-1.13.0+dfsg/data.c:115:27: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). header->mtime |= getc( str ) << 8; data/dictd-1.13.0+dfsg/data.c:116:27: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). header->mtime |= getc( str ) << 16; data/dictd-1.13.0+dfsg/data.c:117:27: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). header->mtime |= getc( str ) << 24; data/dictd-1.13.0+dfsg/data.c:118:27: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). header->extraFlags = getc( str ); data/dictd-1.13.0+dfsg/data.c:119:27: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). header->os = getc( str ); data/dictd-1.13.0+dfsg/data.c:122:30: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). extraLength = getc( str ) << 0; data/dictd-1.13.0+dfsg/data.c:123:30: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). extraLength |= getc( str ) << 8; data/dictd-1.13.0+dfsg/data.c:125:30: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). si1 = getc( str ); data/dictd-1.13.0+dfsg/data.c:126:30: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). si2 = getc( str ); data/dictd-1.13.0+dfsg/data.c:129:26: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). subLength = getc( str ) << 0; data/dictd-1.13.0+dfsg/data.c:130:26: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). subLength |= getc( str ) << 8; data/dictd-1.13.0+dfsg/data.c:131:26: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). header->version = getc( str ) << 0; data/dictd-1.13.0+dfsg/data.c:132:26: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). header->version |= getc( str ) << 8; data/dictd-1.13.0+dfsg/data.c:139:26: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). header->chunkLength = getc( str ) << 0; data/dictd-1.13.0+dfsg/data.c:140:26: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). header->chunkLength |= getc( str ) << 8; data/dictd-1.13.0+dfsg/data.c:141:26: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). header->chunkCount = getc( str ) << 0; data/dictd-1.13.0+dfsg/data.c:142:26: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). header->chunkCount |= getc( str ) << 8; data/dictd-1.13.0+dfsg/data.c:151:27: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). header->chunks[i] = getc( str ) << 0; data/dictd-1.13.0+dfsg/data.c:152:27: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). header->chunks[i] |= getc( str ) << 8; data/dictd-1.13.0+dfsg/data.c:162:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getc( str )) && c != EOF){ data/dictd-1.13.0+dfsg/data.c:174: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). header->headerLength += strlen( header->origFilename ) + 1; data/dictd-1.13.0+dfsg/data.c:181:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getc( str )) && c != EOF){ data/dictd-1.13.0+dfsg/data.c:193: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). header->headerLength += strlen( header->comment ) + 1; data/dictd-1.13.0+dfsg/data.c:199:7: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getc( str ); data/dictd-1.13.0+dfsg/data.c:200:7: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getc( str ); data/dictd-1.13.0+dfsg/data.c:210:22: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). header->crc = getc( str ) << 0; data/dictd-1.13.0+dfsg/data.c:211:22: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). header->crc |= getc( str ) << 8; data/dictd-1.13.0+dfsg/data.c:212:22: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). header->crc |= getc( str ) << 16; data/dictd-1.13.0+dfsg/data.c:213:22: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). header->crc |= getc( str ) << 24; data/dictd-1.13.0+dfsg/data.c:214:22: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). header->length = getc( str ) << 0; data/dictd-1.13.0+dfsg/data.c:215:22: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). header->length |= getc( str ) << 8; data/dictd-1.13.0+dfsg/data.c:216:22: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). header->length |= getc( str ) << 16; data/dictd-1.13.0+dfsg/data.c:217:22: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). header->length |= getc( str ) << 24; data/dictd-1.13.0+dfsg/data.c:276:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (-1 == read (h->fd, (char *) h->start, h->size)) data/dictd-1.13.0+dfsg/data.c:345: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 (dw -> def); data/dictd-1.13.0+dfsg/dict.c:388: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). pos = 6 + strlen(db); data/dictd-1.13.0+dfsg/dict.c:390: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(arg1); data/dictd-1.13.0+dfsg/dict.c:435: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 (arg_get (a,0)); data/dictd-1.13.0+dfsg/dict.c:673:60: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). MD5Update(&ctx, (const unsigned char *) cmd_reply.msgid, strlen(cmd_reply.msgid)); data/dictd-1.13.0+dfsg/dict.c:674:58: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). MD5Update(&ctx, (const unsigned char *) cmd_reply.key, strlen(cmd_reply.key)); data/dictd-1.13.0+dfsg/dict.c:710: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(b); data/dictd-1.13.0+dfsg/dict.c:772: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). if ((len = strlen(buffer))) { data/dictd-1.13.0+dfsg/dict.c:779: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). net_write( cmd_reply.s, pt, strlen(pt) ); data/dictd-1.13.0+dfsg/dict.c:1123: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). escaped = xmalloc(strlen(orig) * 2 + 1); data/dictd-1.13.0+dfsg/dictd.c:150: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). _dict_argvlen = envp[i-1] + strlen(envp[i-1]) - _dict_argvstart; data/dictd-1.13.0+dfsg/dictd.c:152: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). _dict_argvlen = argv[argc-1] + strlen(argv[argc-1]) - _dict_argvstart; data/dictd-1.13.0+dfsg/dictd.c:167: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). if ((len = strlen(buf)) > MAXPROCTITLE-1) data/dictd-1.13.0+dfsg/dictd.c:404:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). new_fn = xmalloc (2 + strlen (prefix) + strlen (fn)); data/dictd-1.13.0+dfsg/dictd.c:404:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). new_fn = xmalloc (2 + strlen (prefix) + strlen (fn)); data/dictd-1.13.0+dfsg/dictd.c:592: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). len = strlen(pt); data/dictd-1.13.0+dfsg/dictd.c:635: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). len = strlen (s); data/dictd-1.13.0+dfsg/dictd.c:1423:4: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(002); /* set safe umask */ data/dictd-1.13.0+dfsg/dictd.c:1425:4: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(022); /* set safe umask */ data/dictd-1.13.0+dfsg/dictdplugin_dbi.c:292:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). }else if (!strncmp (name, "query_", 6) && strlen (name) > 7){ data/dictd-1.13.0+dfsg/dictdplugin_dbi.c:345: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 (defs [0]); data/dictd-1.13.0+dfsg/dictdplugin_dbi.c:528:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (init_data [i].data); data/dictd-1.13.0+dfsg/dictdplugin_dbi.c:756:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t word_len = strlen (word); data/dictd-1.13.0+dfsg/dictdplugin_dbi.c:865: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). word_size = strlen (word); data/dictd-1.13.0+dfsg/dictdplugin_judy.c:172: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). if (dest [strlen (dest) - 1] != '/') data/dictd-1.13.0+dfsg/dictdplugin_judy.c:307:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ('\n' == buf [strlen (buf) - 1]) data/dictd-1.13.0+dfsg/dictdplugin_judy.c:308: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). buf [strlen (buf) - 1] = 0; data/dictd-1.13.0+dfsg/dictdplugin_judy.c:325: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 (buf); data/dictd-1.13.0+dfsg/dictdplugin_judy.c:498: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 (defs [0]); data/dictd-1.13.0+dfsg/dictdplugin_judy.c:558:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (init_data [i].data); data/dictd-1.13.0+dfsg/dictdplugin_judy.c:695: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). size_t len = strlen (word); data/dictd-1.13.0+dfsg/dictdplugin_judy.c:810: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). word_size = strlen (word); data/dictd-1.13.0+dfsg/dictdplugin_popen.cpp:291: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). word_size = strlen (word); data/dictd-1.13.0+dfsg/dictfmt.c:210: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 (s); data/dictd-1.13.0+dfsg/dictfmt.c:280: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). length = strlen (s); data/dictd-1.13.0+dfsg/dictfmt.c:335: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 (s); data/dictd-1.13.0+dfsg/dictfmt.c:498: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). len = strlen (word); data/dictd-1.13.0+dfsg/dictfmt.c:546: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). sep_len = strlen (idxdat_separator); data/dictd-1.13.0+dfsg/dictfmt.c:566: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). p = sep + strlen (hw_separator); data/dictd-1.13.0+dfsg/dictfmt.c:601: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). len = strlen (word); data/dictd-1.13.0+dfsg/dictfmt.c:728:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). word_len = strlen (word); data/dictd-1.13.0+dfsg/dictfmt.c:751:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = sep + strlen (hw_separator); data/dictd-1.13.0+dfsg/dictfmt.c:962: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). sum_size += strlen (key); data/dictd-1.13.0+dfsg/dictfmt.c:1013: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). buffer [strlen (buffer) - 1] = 0; /* for removing \n */ data/dictd-1.13.0+dfsg/dictfmt.c:1322: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 (buffer); data/dictd-1.13.0+dfsg/dictfmt.c:1329: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(buffer) == 1) { data/dictd-1.13.0+dfsg/dictfmt.c:1417:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memmove( buf, s, strlen(s)+1 ); /* move \0 also */ data/dictd-1.13.0+dfsg/dictfmt.c:1496: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). memmove( buf+2, buf, strlen((char *) buf)+1 ); /* move \0 */ data/dictd-1.13.0+dfsg/dictfmt.c:1507: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(buffer)) data/dictd-1.13.0+dfsg/dictfmt.c:1508: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). buffer[strlen(buffer)-1] = '\0'; /* remove newline */ data/dictd-1.13.0+dfsg/dictzip.c:170: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). origFilename = xmalloc( strlen( inFilename ) + 1 ); data/dictd-1.13.0+dfsg/dictzip.c:206: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). + strlen( origFilename ) + 1 /* FNAME */ data/dictd-1.13.0+dfsg/heap.c:100: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). size_t len = strlen (s); data/dictd-1.13.0+dfsg/index.c:389: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). word, buf, (unsigned long) strlen( word ), (unsigned long) strlen( buf ) )); data/dictd-1.13.0+dfsg/index.c:389:67: [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). word, buf, (unsigned long) strlen( word ), (unsigned long) strlen( buf ) )); data/dictd-1.13.0+dfsg/index.c:513:40: [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). word, buf, (unsigned long) strlen( word ), (unsigned long) strlen( buf ) ); data/dictd-1.13.0+dfsg/index.c:513:72: [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). word, buf, (unsigned long) strlen( word ), (unsigned long) strlen( buf ) ); data/dictd-1.13.0+dfsg/index.c:817: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). int wordlen = strlen (word); data/dictd-1.13.0+dfsg/index.c:995:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const unsigned patlen = strlen( (const char *) word ); data/dictd-1.13.0+dfsg/index.c:1430: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). length = strlen (str); data/dictd-1.13.0+dfsg/index.c:1508: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). buf = (char *) alloca (strlen (word)); data/dictd-1.13.0+dfsg/index.c:1552: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). buf = (char *) alloca (strlen (word)); data/dictd-1.13.0+dfsg/index.c:1620:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buf = alloca( strlen( word ) + 1 ); data/dictd-1.13.0+dfsg/index.c:1878:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (-1 == read (i->fd, (char *) i->start, i->size)) data/dictd-1.13.0+dfsg/lev.h:49:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(word); data/dictd-1.13.0+dfsg/lev.h:57:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t alphabet_len = strlen (alphabet); data/dictd-1.13.0+dfsg/lev.h:113:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t size = strlen (word); data/dictd-1.13.0+dfsg/net.c:191:39: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for (len = 0; len < maxlen && (n = read( s, &c, 1 )) > 0; /*void*/) { data/dictd-1.13.0+dfsg/parse.c:72:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer = alloca (strlen (pp) + strlen (filename) + 100); data/dictd-1.13.0+dfsg/parse.c:72: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). buffer = alloca (strlen (pp) + strlen (filename) + 100); data/dictd-1.13.0+dfsg/parse.c:146:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer = alloca( strlen( cpp ) data/dictd-1.13.0+dfsg/parse.c:148:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + (_prs_cpp_options ? strlen( _prs_cpp_options ) : 0) data/dictd-1.13.0+dfsg/parse.c:206:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy( buffer, string, length ); data/dictd-1.13.0+dfsg/parse.c:221:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy( buffer, string, length ); data/dictd-1.13.0+dfsg/plugin.c:117: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 (defs [i]); data/dictd-1.13.0+dfsg/plugin.c:155:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strncmp (p, DICT_ENTRY_PLUGIN_DATA, strlen (DICT_ENTRY_PLUGIN_DATA))){ data/dictd-1.13.0+dfsg/plugin.c:163: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). len = strlen (p); data/dictd-1.13.0+dfsg/plugin.c:268:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). data -> size = strlen (db -> databaseName); data/dictd-1.13.0+dfsg/plugin.c:308: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). strlen (strats [i] -> name) + 1 > data/dictd-1.13.0+dfsg/plugin.c:428:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strncmp (p, DICT_ENTRY_PLUGIN, strlen (DICT_ENTRY_PLUGIN))){ data/dictd-1.13.0+dfsg/plugin.c:436: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). len = strlen (p); data/dictd-1.13.0+dfsg/plugin.c:448: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). if (sizeof (filename) < strlen (DICT_PLUGIN_PATH) + strlen (p) + 1) data/dictd-1.13.0+dfsg/plugin.c:448:59: [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 (sizeof (filename) < strlen (DICT_PLUGIN_PATH) + strlen (p) + 1) data/dictd-1.13.0+dfsg/plugins_common.c:105: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). len = strlen (value); data/dictd-1.13.0+dfsg/setenv.c:10:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *p = (char *) malloc (strlen (name) + strlen (value) + 2); data/dictd-1.13.0+dfsg/setenv.c:10:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *p = (char *) malloc (strlen (name) + strlen (value) + 2); data/dictd-1.13.0+dfsg/setenv.c:12:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (p, "="); data/dictd-1.13.0+dfsg/snprintf.c:21: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). if (strlen (str) >= size) data/dictd-1.13.0+dfsg/str.c:97: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). assert (strlen (src) == strlen (dest)); data/dictd-1.13.0+dfsg/str.c:97:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert (strlen (src) == strlen (dest)); data/dictd-1.13.0+dfsg/strategy.c:202:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen (strats); data/dictd-1.13.0+dfsg/strlcat.c:57:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return dlen + strlen(s); data/dictd-1.13.0+dfsg/strlcpy.c:35: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). size_t len = strlen (src); data/dictd-1.13.0+dfsg/vsnprintf.c:17: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). if (strlen (str) >= size) ANALYSIS SUMMARY: Hits = 343 Lines analyzed = 16871 in approximately 0.47 seconds (35799 lines/second) Physical Source Lines of Code (SLOC) = 12803 Hits@level = [0] 219 [1] 148 [2] 132 [3] 8 [4] 55 [5] 0 Hits@level+ = [0+] 562 [1+] 343 [2+] 195 [3+] 63 [4+] 55 [5+] 0 Hits/KSLOC@level+ = [0+] 43.896 [1+] 26.7906 [2+] 15.2308 [3+] 4.92072 [4+] 4.29587 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.