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/dict-gcide-0.48.5/cide/cide.c Examining data/dict-gcide-0.48.5/cide/cide.h Examining data/dict-gcide-0.48.5/dump.h Examining data/dict-gcide-0.48.5/fmt.c Examining data/dict-gcide-0.48.5/fmt.h Examining data/dict-gcide-0.48.5/libmaa/alloca.c Examining data/dict-gcide-0.48.5/libmaa/arg.c Examining data/dict-gcide-0.48.5/libmaa/argtest.c Examining data/dict-gcide-0.48.5/libmaa/base26.c Examining data/dict-gcide-0.48.5/libmaa/base64.c Examining data/dict-gcide-0.48.5/libmaa/basetest.c Examining data/dict-gcide-0.48.5/libmaa/bit.c Examining data/dict-gcide-0.48.5/libmaa/bittest.c Examining data/dict-gcide-0.48.5/libmaa/debug.c Examining data/dict-gcide-0.48.5/libmaa/debugtest.c Examining data/dict-gcide-0.48.5/libmaa/decl.h Examining data/dict-gcide-0.48.5/libmaa/error.c Examining data/dict-gcide-0.48.5/libmaa/flags.c Examining data/dict-gcide-0.48.5/libmaa/getopt.c Examining data/dict-gcide-0.48.5/libmaa/getopt.h Examining data/dict-gcide-0.48.5/libmaa/getopt1.c Examining data/dict-gcide-0.48.5/libmaa/hash.c Examining data/dict-gcide-0.48.5/libmaa/hashtest.c Examining data/dict-gcide-0.48.5/libmaa/list.c Examining data/dict-gcide-0.48.5/libmaa/listtest.c Examining data/dict-gcide-0.48.5/libmaa/log.c Examining data/dict-gcide-0.48.5/libmaa/maa.c Examining data/dict-gcide-0.48.5/libmaa/maa.h Examining data/dict-gcide-0.48.5/libmaa/maaP.h Examining data/dict-gcide-0.48.5/libmaa/memory.c Examining data/dict-gcide-0.48.5/libmaa/memtest.c Examining data/dict-gcide-0.48.5/libmaa/mkrnd.c Examining data/dict-gcide-0.48.5/libmaa/obstack.c Examining data/dict-gcide-0.48.5/libmaa/obstack.h Examining data/dict-gcide-0.48.5/libmaa/parse-concrete.c Examining data/dict-gcide-0.48.5/libmaa/parse.c Examining data/dict-gcide-0.48.5/libmaa/pr.c Examining data/dict-gcide-0.48.5/libmaa/prime.c Examining data/dict-gcide-0.48.5/libmaa/primetest.c Examining data/dict-gcide-0.48.5/libmaa/prtest.c Examining data/dict-gcide-0.48.5/libmaa/rnd.c Examining data/dict-gcide-0.48.5/libmaa/set.c Examining data/dict-gcide-0.48.5/libmaa/settest.c Examining data/dict-gcide-0.48.5/libmaa/sl.c Examining data/dict-gcide-0.48.5/libmaa/sltest.c Examining data/dict-gcide-0.48.5/libmaa/source.c Examining data/dict-gcide-0.48.5/libmaa/stack.c Examining data/dict-gcide-0.48.5/libmaa/strdup.c Examining data/dict-gcide-0.48.5/libmaa/string.c Examining data/dict-gcide-0.48.5/libmaa/stringtest.c Examining data/dict-gcide-0.48.5/libmaa/strtol.c Examining data/dict-gcide-0.48.5/libmaa/strtoul.c Examining data/dict-gcide-0.48.5/libmaa/text.c Examining data/dict-gcide-0.48.5/libmaa/timer.c Examining data/dict-gcide-0.48.5/libmaa/version.c Examining data/dict-gcide-0.48.5/libmaa/xmalloc.c Examining data/dict-gcide-0.48.5/webfmt.c Examining data/dict-gcide-0.48.5/webfmt.h FINAL RESULTS: data/dict-gcide-0.48.5/dump.h:160:15: [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. extern int fprintf( FILE *, const char *, ... ); data/dict-gcide-0.48.5/dump.h:164:15: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. extern int fscanf( FILE *, const char *, ... ); data/dict-gcide-0.48.5/dump.h:169:15: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. extern int printf( const char *, ... ); data/dict-gcide-0.48.5/dump.h:170:15: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. extern int scanf( const char *, ... ); data/dict-gcide-0.48.5/dump.h:171:15: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. extern int sscanf( const char *, const char *, ... ); data/dict-gcide-0.48.5/dump.h:173:15: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. extern int vfprintf( FILE *, const char *, ... ); data/dict-gcide-0.48.5/dump.h:174:15: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. extern int vsprintf( char *, const char *, ... ); data/dict-gcide-0.48.5/fmt.c:211:4: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(buf, format, ap); data/dict-gcide-0.48.5/fmt.c:224:4: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(buf, format, ap); data/dict-gcide-0.48.5/fmt.c:238:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( buf, "%s.dict", name ); data/dict-gcide-0.48.5/fmt.c:244:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( buf, "sort -df > %s.index", name ); data/dict-gcide-0.48.5/fmt.c:245:19: [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 (!(idx = popen( buf, "w" ))) { data/dict-gcide-0.48.5/libmaa/decl.h:52:15: [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. extern int fprintf( FILE *, const char *, ... ); data/dict-gcide-0.48.5/libmaa/decl.h:56:15: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. extern int fscanf( FILE *, const char *, ... ); data/dict-gcide-0.48.5/libmaa/decl.h:61:15: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. extern int printf( const char *, ... ); data/dict-gcide-0.48.5/libmaa/decl.h:62:15: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. extern int scanf( const char *, ... ); data/dict-gcide-0.48.5/libmaa/decl.h:63:15: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. extern int sscanf( const char *, const char *, ... ); data/dict-gcide-0.48.5/libmaa/decl.h:65:15: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. extern int vfprintf( FILE *, const char *, ... ); data/dict-gcide-0.48.5/libmaa/decl.h:66:15: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. extern int vsprintf( char *, const char *, ... ); data/dict-gcide-0.48.5/libmaa/error.c:78:4: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf( stderr, format, ap ); data/dict-gcide-0.48.5/libmaa/error.c:108:4: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf( stderr, format, ap ); data/dict-gcide-0.48.5/libmaa/error.c:146:4: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf( stderr, format, ap ); data/dict-gcide-0.48.5/libmaa/error.c:172:4: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf( stderr, format, ap ); data/dict-gcide-0.48.5/libmaa/getopt.c:48:12: [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. extern int fprintf( FILE *, const char *, ... ); data/dict-gcide-0.48.5/libmaa/log.c:133:10: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( buf, data/dict-gcide-0.48.5/libmaa/log.c:141:20: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. if (routine) sprintf( pt, "(%s) ", routine ); data/dict-gcide-0.48.5/libmaa/log.c:143:7: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf( pt, format, ap ); data/dict-gcide-0.48.5/libmaa/log.c:184:10: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( buf, data/dict-gcide-0.48.5/libmaa/log.c:192:7: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf( pt, format, ap ); data/dict-gcide-0.48.5/libmaa/maa.c:99:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat( buffer, dot + 1 ); data/dict-gcide-0.48.5/libmaa/maa.c:101:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat( buffer, colon + 2 ); data/dict-gcide-0.48.5/libmaa/maa.c:112:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat( buffer, maa_revision_string ); data/dict-gcide-0.48.5/libmaa/maa.h:308:35: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((noreturn,format(printf, 2, 3))); data/dict-gcide-0.48.5/libmaa/maa.h:311:35: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((noreturn,format(printf, 2, 3))); data/dict-gcide-0.48.5/libmaa/maa.h:314:26: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((format(printf, 2, 3))); data/dict-gcide-0.48.5/libmaa/maa.h:317:35: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((noreturn,format(printf, 2, 3))); data/dict-gcide-0.48.5/libmaa/maa.h:405:47: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define PRINTF(flag,arg) if (dbg_test(flag)) printf arg data/dict-gcide-0.48.5/libmaa/maa.h:406:47: [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 FPRINTF(flag,arg) if (dbg_test(flag)) fprintf arg data/dict-gcide-0.48.5/libmaa/memtest.c:28:12: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. extern int printf( const char *, ... ); data/dict-gcide-0.48.5/libmaa/parse.c:83: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/dict-gcide-0.48.5/libmaa/parse.c:104: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/dict-gcide-0.48.5/libmaa/parse.c:123: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/dict-gcide-0.48.5/libmaa/parse.c:127: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/dict-gcide-0.48.5/libmaa/pr.c:199:7: [4] (shell) execvp: 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. execvp( argv[0], argv ); data/dict-gcide-0.48.5/libmaa/pr.c:418:7: [4] (shell) execvp: 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. execvp( argv[0], argv ); data/dict-gcide-0.48.5/libmaa/source.c:415:7: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf( str, format, ap ); data/dict-gcide-0.48.5/libmaa/source.c:437:7: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf( str, format, ap ); data/dict-gcide-0.48.5/libmaa/strdup.c:38: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( r, s ); data/dict-gcide-0.48.5/libmaa/string.c:296:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( buf, "%s%d", prefix, i++ ); data/dict-gcide-0.48.5/webfmt.c:41:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( buffer, "%s", arg_get( a, 2 ) ); data/dict-gcide-0.48.5/webfmt.c:57:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( buffer, data/dict-gcide-0.48.5/dump.h:109:17: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. extern long int random( void ); data/dict-gcide-0.48.5/dump.h:110:17: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. extern void srandom( unsigned int ); data/dict-gcide-0.48.5/dump.h:146:15: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. extern long random( void ); data/dict-gcide-0.48.5/dump.h:147:15: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. extern int srandom( unsigned ); data/dict-gcide-0.48.5/dump.h:183:13: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. extern long random( void ); data/dict-gcide-0.48.5/dump.h:184:13: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. extern void srandom( int ); data/dict-gcide-0.48.5/libmaa/debugtest.c:38:16: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt( argc, argv, "d:" )) != -1) { data/dict-gcide-0.48.5/libmaa/decl.h:37:15: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. extern long random( void ); data/dict-gcide-0.48.5/libmaa/decl.h:38:15: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. extern int srandom( unsigned ); data/dict-gcide-0.48.5/libmaa/decl.h:81:13: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. extern long random( void ); data/dict-gcide-0.48.5/libmaa/decl.h:82:13: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. extern void srandom( int ); data/dict-gcide-0.48.5/libmaa/getopt.c:179:7: [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 *getenv (); data/dict-gcide-0.48.5/libmaa/getopt.c:297:21: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. posixly_correct = getenv ("POSIXLY_CORRECT"); data/dict-gcide-0.48.5/libmaa/getopt.c:674:1: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. getopt (argc, argv, optstring) data/dict-gcide-0.48.5/libmaa/getopt.c:704:11: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt (argc, argv, "abc:d:0123456789"); data/dict-gcide-0.48.5/libmaa/getopt.h:106:12: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt (int argc, char *const *argv, const char *shortopts); data/dict-gcide-0.48.5/libmaa/getopt.h:108:12: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt (); data/dict-gcide-0.48.5/libmaa/getopt.h:110:12: [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. extern int getopt_long (int argc, char *const *argv, const char *shortopts, data/dict-gcide-0.48.5/libmaa/getopt.h:122:12: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt (); data/dict-gcide-0.48.5/libmaa/getopt.h:123:12: [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. extern int getopt_long (); data/dict-gcide-0.48.5/libmaa/getopt1.c:55:7: [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 *getenv (); data/dict-gcide-0.48.5/libmaa/getopt1.c:63:1: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. getopt_long (argc, argv, options, long_options, opt_index) data/dict-gcide-0.48.5/libmaa/getopt1.c:119:11: [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. c = getopt_long (argc, argv, "abc:d:0123456789", data/dict-gcide-0.48.5/libmaa/maaP.h:106:13: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt( int, char **, char * ); data/dict-gcide-0.48.5/libmaa/maaP.h:119:17: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. extern long int random( void ); data/dict-gcide-0.48.5/libmaa/maaP.h:120:17: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. extern void srandom( unsigned int ); data/dict-gcide-0.48.5/libmaa/mkrnd.c:38:31: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. printf( "%f, ", (double)random()/(double)INT_MAX); data/dict-gcide-0.48.5/libmaa/parse.c:77: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/dict-gcide-0.48.5/libmaa/prtest.c:36:16: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt( argc, argv, "D" )) != EOF) data/dict-gcide-0.48.5/libmaa/sl.c:254:12: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. while ((random() & 0x80) && level < _sl_MaxLevel) ++level; data/dict-gcide-0.48.5/webfmt.c:143: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/dict-gcide-0.48.5/dump.h:64:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define memcpy(d, s, n) bcopy ((s), (d), (n)) data/dict-gcide-0.48.5/dump.h:64:27: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define memcpy(d, s, n) bcopy ((s), (d), (n)) data/dict-gcide-0.48.5/dump.h:65:28: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define memmove(d, s, n) bcopy ((s), (d), (n)) data/dict-gcide-0.48.5/dump.h:108:17: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. extern void bcopy( const void *src, void *dest, int n ); data/dict-gcide-0.48.5/dump.h:145:15: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. extern void bcopy( const void *, void *, int ); data/dict-gcide-0.48.5/fmt.c:207: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/dict-gcide-0.48.5/fmt.c:220: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/dict-gcide-0.48.5/fmt.c:232: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[1024]; data/dict-gcide-0.48.5/fmt.c:239: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 (!(dct = fopen( buf, "w" ))) { data/dict-gcide-0.48.5/libmaa/alloca.c:144:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char align[ALIGN_SIZE]; /* To force sizeof(header). */ data/dict-gcide-0.48.5/libmaa/base26.c:61: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 result[8] = { 'a', 'a', 'a', 'a', 'a', 'a', 'a', '\0'}; data/dict-gcide-0.48.5/libmaa/base64.c:81: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 result[7]; data/dict-gcide-0.48.5/libmaa/decl.h:35:15: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. extern void bcopy( const void *, void *, int ); data/dict-gcide-0.48.5/libmaa/decl.h:87:13: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. extern void bcopy(const void *s1, void *s2, size_t n); data/dict-gcide-0.48.5/libmaa/hashtest.c:60: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). count = atoi( argv[1] ); data/dict-gcide-0.48.5/libmaa/hashtest.c:72:7: [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( key, "key%d", i ); data/dict-gcide-0.48.5/libmaa/hashtest.c:73:7: [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( datum, "datum%d", i ); data/dict-gcide-0.48.5/libmaa/hashtest.c:78: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 key[100]; data/dict-gcide-0.48.5/libmaa/hashtest.c:79: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 datum[100]; data/dict-gcide-0.48.5/libmaa/hashtest.c:82:7: [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( key, "key%d", i ); data/dict-gcide-0.48.5/libmaa/hashtest.c:83:7: [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( datum, "datum%d", i ); data/dict-gcide-0.48.5/libmaa/hashtest.c:111:7: [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( datum, "datum%d", i ); data/dict-gcide-0.48.5/libmaa/hashtest.c:119: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 datum[100]; data/dict-gcide-0.48.5/libmaa/hashtest.c:124:7: [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( datum, "datum%d", i ); data/dict-gcide-0.48.5/libmaa/hashtest.c:149:7: [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( datum, "datum%d", i ); data/dict-gcide-0.48.5/libmaa/hashtest.c:156: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 datum[100]; data/dict-gcide-0.48.5/libmaa/hashtest.c:159:7: [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( datum, "datum%d", i ); data/dict-gcide-0.48.5/libmaa/log.c:46: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 logHostname[MAXHOSTNAMELEN]; data/dict-gcide-0.48.5/libmaa/log.c:84: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 ((logFd = open( filename, O_WRONLY|O_CREAT|O_APPEND, 0644 )) < 0) data/dict-gcide-0.48.5/libmaa/log.c:122: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/dict-gcide-0.48.5/libmaa/log.c:173: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/dict-gcide-0.48.5/libmaa/maa.c:90: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[80]; data/dict-gcide-0.48.5/libmaa/maa.c:95:4: [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( buffer, "Libmaa %d.%d.", MAA_MAJOR, MAA_MINOR ); data/dict-gcide-0.48.5/libmaa/maaP.h:63:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define memcpy(d, s, n) bcopy ((s), (d), (n)) data/dict-gcide-0.48.5/libmaa/maaP.h:63:27: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define memcpy(d, s, n) bcopy ((s), (d), (n)) data/dict-gcide-0.48.5/libmaa/maaP.h:64:28: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define memmove(d, s, n) bcopy ((s), (d), (n)) data/dict-gcide-0.48.5/libmaa/maaP.h:118:17: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. extern void bcopy( const void *src, void *dest, int n ); data/dict-gcide-0.48.5/libmaa/mkrnd.c:36:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). count = atoi( argv[1] ); data/dict-gcide-0.48.5/libmaa/obstack.h:149:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char contents[4]; /* objects begin here */ data/dict-gcide-0.48.5/libmaa/obstack.h:304:9: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy ((char *) (where), __o->next_free, __len); \ data/dict-gcide-0.48.5/libmaa/obstack.h:317:8: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy ((char *) (where), __o->next_free, __len); \ data/dict-gcide-0.48.5/libmaa/obstack.h:435:4: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (bcopy ((char *) (where), (h)->next_free, (h)->temp), \ data/dict-gcide-0.48.5/libmaa/obstack.h:443:4: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (bcopy ((char *) (where), (h)->next_free, (h)->temp), \ data/dict-gcide-0.48.5/libmaa/parse.c:84: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/dict-gcide-0.48.5/libmaa/parse.c:148: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/dict-gcide-0.48.5/libmaa/parse.c:178: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/dict-gcide-0.48.5/libmaa/pr.c:177:18: [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 ((null = open( "/dev/null", flag )) >= 0) { \ data/dict-gcide-0.48.5/libmaa/prtest.c:30: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[BUFSIZ]; data/dict-gcide-0.48.5/libmaa/settest.c:57: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). count = atoi( argv[1] ); data/dict-gcide-0.48.5/libmaa/settest.c:68:7: [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( key, "key%d", i ); data/dict-gcide-0.48.5/libmaa/settest.c:73: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 key[100]; data/dict-gcide-0.48.5/libmaa/settest.c:75:7: [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( key, "key%d", i ); data/dict-gcide-0.48.5/libmaa/sl.c:260: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[1024]; data/dict-gcide-0.48.5/libmaa/sl.c:262:4: [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( buf, "%p", datum ); data/dict-gcide-0.48.5/libmaa/sltest.c:64: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). count = atoi( argv[1] ); data/dict-gcide-0.48.5/libmaa/source.c:94:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. for (pt = (char *)Lines[Used]; *pt; pt++) if (*pt == '\t') *pt = ' '; data/dict-gcide-0.48.5/libmaa/source.c:139: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 ((lineno = atoi( arg_get( args, 1 ) )) > 0) --lineno; data/dict-gcide-0.48.5/libmaa/source.c:310: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[1024]; data/dict-gcide-0.48.5/libmaa/stringtest.c:31: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[100]; data/dict-gcide-0.48.5/libmaa/stringtest.c:41: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). count = atoi( argv[1] ); data/dict-gcide-0.48.5/libmaa/stringtest.c:49:7: [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( buf, "key%d", i ); data/dict-gcide-0.48.5/libmaa/stringtest.c:56:7: [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( buf, "key%d", i ); data/dict-gcide-0.48.5/libmaa/text.c:39: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 result[5]; data/dict-gcide-0.48.5/libmaa/text.c:48:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy( result, "Z000" ); data/dict-gcide-0.48.5/webfmt.c:37: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[256]; data/dict-gcide-0.48.5/fmt.c:323: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). char *buf = alloca(strlen(string) * 2); data/dict-gcide-0.48.5/libmaa/base26.c:83: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). int len = strlen( val ); data/dict-gcide-0.48.5/libmaa/base64.c:101: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). int len = strlen( val ); data/dict-gcide-0.48.5/libmaa/getopt.c:203: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). extern int strlen (const char *); data/dict-gcide-0.48.5/libmaa/getopt.c:495:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (nameend - nextchar == strlen (p->name)) data/dict-gcide-0.48.5/libmaa/getopt.c:519: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). nextchar += strlen (nextchar); data/dict-gcide-0.48.5/libmaa/getopt.c:549: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). nextchar += strlen (nextchar); data/dict-gcide-0.48.5/libmaa/getopt.c:562: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). nextchar += strlen (nextchar); data/dict-gcide-0.48.5/libmaa/getopt.c:566: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). nextchar += strlen (nextchar); data/dict-gcide-0.48.5/libmaa/hash.c:395:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((i += strlen(s)+2) >= 60) { i=0; printf("\n"); } data/dict-gcide-0.48.5/libmaa/log.c:139: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). pt = buf + strlen( buf ); data/dict-gcide-0.48.5/libmaa/log.c:142: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). pt = buf + strlen( buf ); data/dict-gcide-0.48.5/libmaa/log.c:145:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (logFd >= 0) write( logFd, buf, strlen(buf) ); data/dict-gcide-0.48.5/libmaa/log.c:190: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). pt = buf + strlen( buf ); data/dict-gcide-0.48.5/libmaa/log.c:194:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (logFd >= 0) write( logFd, buf, strlen(buf) ); data/dict-gcide-0.48.5/libmaa/maa.c:104: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). pt = buffer + strlen( buffer ) - 1; data/dict-gcide-0.48.5/libmaa/maa.c:110:3: [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( buffer, "0" ); data/dict-gcide-0.48.5/libmaa/memory.c:127: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). int len = strlen( string ); data/dict-gcide-0.48.5/libmaa/parse.c:118: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/dict-gcide-0.48.5/libmaa/parse.c:120: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/dict-gcide-0.48.5/libmaa/parse.c:176: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/dict-gcide-0.48.5/libmaa/parse.c:190: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/dict-gcide-0.48.5/libmaa/pr.c:363:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((count = read( out, outPt, outMaxLen )) <= 0) { data/dict-gcide-0.48.5/libmaa/prtest.c:52:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((read( next, buf, BUFSIZ ))) data/dict-gcide-0.48.5/libmaa/source.c:134:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy( tmp, line, length ); data/dict-gcide-0.48.5/libmaa/strdup.c:34:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen( s ); data/dict-gcide-0.48.5/libmaa/string.c:237:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy( tmp, s, length ); data/dict-gcide-0.48.5/libmaa/string.c:293: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 *buf = alloca( strlen( prefix ) + 100 ); ANALYSIS SUMMARY: Hits = 175 Lines analyzed = 127470 in approximately 8.37 seconds (15222 lines/second) Physical Source Lines of Code (SLOC) = 8012 Hits@level = [0] 245 [1] 28 [2] 65 [3] 31 [4] 51 [5] 0 Hits@level+ = [0+] 420 [1+] 175 [2+] 147 [3+] 82 [4+] 51 [5+] 0 Hits/KSLOC@level+ = [0+] 52.4214 [1+] 21.8422 [2+] 18.3475 [3+] 10.2346 [4+] 6.36545 [5+] 0 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.