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/ecl-20.4.24+ds/examples/android/jni/ecl_boot.c Examining data/ecl-20.4.24+ds/examples/android/jni/ecl_boot.h Examining data/ecl-20.4.24+ds/examples/android/jni/org_lisp_ecl_EmbeddedCommonLisp.c Examining data/ecl-20.4.24+ds/examples/android/jni/org_lisp_ecl_EmbeddedCommonLisp.h Examining data/ecl-20.4.24+ds/examples/asdf_with_dependence/test.c Examining data/ecl-20.4.24+ds/examples/build/hello_aux.c Examining data/ecl-20.4.24+ds/examples/cmake/src/cxx/main.cpp Examining data/ecl-20.4.24+ds/examples/ecl_qt/qt/cl_bridge_utils.cpp Examining data/ecl-20.4.24+ds/examples/ecl_qt/qt/cl_bridge_utils.hpp Examining data/ecl-20.4.24+ds/examples/ecl_qt/qt/hybrid_main.cpp Examining data/ecl-20.4.24+ds/examples/ecl_qt/qt/hybrid_main.h Examining data/ecl-20.4.24+ds/examples/ecl_qt/qt/main.cpp Examining data/ecl-20.4.24+ds/examples/embed/hello.c Examining data/ecl-20.4.24+ds/examples/threads/import/import.c Examining data/ecl-20.4.24+ds/examples/threads/import_win32/import.c Examining data/ecl-20.4.24+ds/msvc/gmp/build.vc8/gen-bases/gen-bases.c Examining data/ecl-20.4.24+ds/msvc/gmp/build.vc8/gen-fac_ui/gen-fac_ui.c Examining data/ecl-20.4.24+ds/msvc/gmp/build.vc8/gen-fib/gen-fib.c Examining data/ecl-20.4.24+ds/msvc/gmp/build.vc8/gen-psqr/gen-psqr.c Examining data/ecl-20.4.24+ds/msvc/gmp/build.vc8/getopt.c Examining data/ecl-20.4.24+ds/msvc/gmp/build.vc8/getopt.h Examining data/ecl-20.4.24+ds/msvc/gmp/build.vc8/gmp.h Examining data/ecl-20.4.24+ds/msvc/gmp/build.vc8/popham.c Examining data/ecl-20.4.24+ds/msvc/gmp/build.vc8/unistd.h Examining data/ecl-20.4.24+ds/msvc/gmp/mpn/amd64i/gmp-mparam.h Examining data/ecl-20.4.24+ds/msvc/gmp/mpn/generic/addsub_n.c Examining data/ecl-20.4.24+ds/msvc/gmp/mpn/generic/divrem_1.c Examining data/ecl-20.4.24+ds/msvc/gmp/mpn/generic/divrem_2.c Examining data/ecl-20.4.24+ds/msvc/gmp/mpn/generic/popham2.c Examining data/ecl-20.4.24+ds/msvc/gmp/mpn/x86i/gmp-mparam.h Examining data/ecl-20.4.24+ds/msvc/gmp/mpz/set_d.c Examining data/ecl-20.4.24+ds/src/c/arch/fpe_none.c Examining data/ecl-20.4.24+ds/src/c/arch/fpe_x86.c Examining data/ecl-20.4.24+ds/src/c/coverity/model.c Examining data/ecl-20.4.24+ds/src/c/dpp.c Examining data/ecl-20.4.24+ds/src/c/ecl_constants.h Examining data/ecl-20.4.24+ds/src/c/ecl_features.h Examining data/ecl-20.4.24+ds/src/c/iso_latin_names.h Examining data/ecl-20.4.24+ds/src/c/newhash.h Examining data/ecl-20.4.24+ds/src/c/symbols_list.h Examining data/ecl-20.4.24+ds/src/c/symbols_list2.h Examining data/ecl-20.4.24+ds/src/c/unicode/ucd-0000.c Examining data/ecl-20.4.24+ds/src/c/unicode/ucd-0016.c Examining data/ecl-20.4.24+ds/src/c/unicode/ucd-0032.c Examining data/ecl-20.4.24+ds/src/c/unicode/ucd-0048.c Examining data/ecl-20.4.24+ds/src/c/unicode/ucd-0064.c Examining data/ecl-20.4.24+ds/src/c/unicode/ucd-0080.c Examining data/ecl-20.4.24+ds/src/c/unicode/ucd-0096.c Examining data/ecl-20.4.24+ds/src/c/unicode/ucd.c Examining data/ecl-20.4.24+ds/src/c/unicode/ucd16-0000.c Examining data/ecl-20.4.24+ds/src/c/unicode/ucd16-0016.c Examining data/ecl-20.4.24+ds/src/c/unicode/ucd16-0032.c Examining data/ecl-20.4.24+ds/src/c/unicode/ucd16-0048.c Examining data/ecl-20.4.24+ds/src/c/unicode/ucd16-0064.c Examining data/ecl-20.4.24+ds/src/c/unicode/ucd16.c Examining data/ecl-20.4.24+ds/src/c/unicode/ucd_names.h Examining data/ecl-20.4.24+ds/src/c/unicode/ucd_names_char.c Examining data/ecl-20.4.24+ds/src/c/unicode/ucd_names_codes.c Examining data/ecl-20.4.24+ds/src/c/unicode/ucd_names_pair.c Examining data/ecl-20.4.24+ds/src/c/unicode/ucd_names_str.c Examining data/ecl-20.4.24+ds/src/ecl/configpre.h Examining data/ecl-20.4.24+ds/src/h/bytecodes.h Examining data/ecl-20.4.24+ds/src/h/cache.h Examining data/ecl-20.4.24+ds/src/h/cons.h Examining data/ecl-20.4.24+ds/src/h/cs.h Examining data/ecl-20.4.24+ds/src/h/ecl-cmp.h Examining data/ecl-20.4.24+ds/src/h/ecl-inl.h Examining data/ecl-20.4.24+ds/src/h/ecl.h Examining data/ecl-20.4.24+ds/src/h/ecl_atomics.h Examining data/ecl-20.4.24+ds/src/h/external.h Examining data/ecl-20.4.24+ds/src/h/impl/math_dispatch.h Examining data/ecl-20.4.24+ds/src/h/impl/math_dispatch2.h Examining data/ecl-20.4.24+ds/src/h/impl/math_fenv_msvc.h Examining data/ecl-20.4.24+ds/src/h/impl/math_fenv.h Examining data/ecl-20.4.24+ds/src/h/internal.h Examining data/ecl-20.4.24+ds/src/h/legacy.h Examining data/ecl-20.4.24+ds/src/h/number.h Examining data/ecl-20.4.24+ds/src/h/object.h Examining data/ecl-20.4.24+ds/src/h/page.h Examining data/ecl-20.4.24+ds/src/h/stack-resize.h Examining data/ecl-20.4.24+ds/src/h/stacks.h Examining data/ecl-20.4.24+ds/src/util/cut.c Examining data/ecl-20.4.24+ds/src/util/iobuftest.c FINAL RESULTS: data/ecl-20.4.24+ds/src/c/unicode/ucd_names_char.c:517:5: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(buffer, ecl_ucd_names_word[pair], ECL_UCD_LARGEST_CHAR_NAME); data/ecl-20.4.24+ds/src/util/cut.c:19:9: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. if (gets(b1) == 0) data/ecl-20.4.24+ds/src/util/cut.c:61:9: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. if (gets(buffer) == 0) { data/ecl-20.4.24+ds/examples/android/jni/ecl_boot.c:45:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "%s/lib/", root_dir); data/ecl-20.4.24+ds/examples/android/jni/ecl_boot.c:48:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "%s/etc/", root_dir); data/ecl-20.4.24+ds/examples/android/jni/ecl_boot.c:51:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "%s/home/", root_dir); data/ecl-20.4.24+ds/examples/android/jni/ecl_boot.c:98:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "(setq *default-pathname-defaults* #p\"%s/\")", home); data/ecl-20.4.24+ds/msvc/gmp/build.vc8/gen-psqr/gen-psqr.c:321:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (mod34_excuse, "only %d small factor%s", data/ecl-20.4.24+ds/src/c/dpp.c:188:3: [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(msg, 2048, s, args); data/ecl-20.4.24+ds/src/c/dpp.c:803:7: [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(out, simple_varargs? data/ecl-20.4.24+ds/src/util/cut.c:27:9: [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(b2, b1); data/ecl-20.4.24+ds/src/util/cut.c:28:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(b2, patterns[i+1]); data/ecl-20.4.24+ds/src/util/cut.c:29:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(b2, b3 + lengths[i]); data/ecl-20.4.24+ds/msvc/gmp/build.vc8/getopt.c:221:9: [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. #ifndef getenv data/ecl-20.4.24+ds/msvc/gmp/build.vc8/getopt.c:222:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. extern char *getenv (); data/ecl-20.4.24+ds/msvc/gmp/build.vc8/getopt.c:407: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/ecl-20.4.24+ds/msvc/gmp/build.vc8/getopt.c:1197: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/ecl-20.4.24+ds/msvc/gmp/build.vc8/getopt.c:1227: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/ecl-20.4.24+ds/msvc/gmp/build.vc8/getopt.h:145: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/ecl-20.4.24+ds/msvc/gmp/build.vc8/getopt.h:147: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/ecl-20.4.24+ds/msvc/gmp/build.vc8/getopt.h:151: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, data/ecl-20.4.24+ds/msvc/gmp/build.vc8/getopt.h:165: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/ecl-20.4.24+ds/msvc/gmp/build.vc8/getopt.h:167: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/ecl-20.4.24+ds/msvc/gmp/build.vc8/gmp.h:1554:26: [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. #define mpn_random __MPN(random) data/ecl-20.4.24+ds/msvc/gmp/build.vc8/unistd.h:8:9: [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. #define random rand data/ecl-20.4.24+ds/src/h/object.h:1115:33: [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. struct ecl_random random; /* random-states */ data/ecl-20.4.24+ds/examples/android/jni/ecl_boot.c:38:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[2048]; data/ecl-20.4.24+ds/examples/android/jni/ecl_boot.c:92:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[2048]; data/ecl-20.4.24+ds/msvc/gmp/build.vc8/gen-bases/gen-bases.c:159: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). limb_bits = atoi (argv[2]); data/ecl-20.4.24+ds/msvc/gmp/build.vc8/gen-bases/gen-bases.c:160: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). nail_bits = atoi (argv[3]); data/ecl-20.4.24+ds/msvc/gmp/build.vc8/gen-fac_ui/gen-fac_ui.c:150: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). limb_bits = atoi (argv[1]); data/ecl-20.4.24+ds/msvc/gmp/build.vc8/gen-fac_ui/gen-fac_ui.c:151: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). nail_bits = atoi (argv[2]); data/ecl-20.4.24+ds/msvc/gmp/build.vc8/gen-fib/gen-fib.c:121: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). limb_bits = atoi (argv[2]); data/ecl-20.4.24+ds/msvc/gmp/build.vc8/gen-fib/gen-fib.c:122: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). nail_bits = atoi (argv[3]); data/ecl-20.4.24+ds/msvc/gmp/build.vc8/gen-psqr/gen-psqr.c:103: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 mod34_excuse[128]; /* why mod_34lsub1 not used (if it's not) */ data/ecl-20.4.24+ds/msvc/gmp/build.vc8/gen-psqr/gen-psqr.c:244:7: [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 (mod34_excuse, "GMP_NUMB_BITS % 4 != 0"); data/ecl-20.4.24+ds/msvc/gmp/build.vc8/gen-psqr/gen-psqr.c:260:11: [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 (mod34_excuse, "GMP_NUMB_BITS / 4 too small"); data/ecl-20.4.24+ds/msvc/gmp/build.vc8/gen-psqr/gen-psqr.c:560: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). limb_bits = atoi (argv[1]); data/ecl-20.4.24+ds/msvc/gmp/build.vc8/gen-psqr/gen-psqr.c:561: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). nail_bits = atoi (argv[2]); data/ecl-20.4.24+ds/src/c/dpp.c:118: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 filename[BUFSIZ]; data/ecl-20.4.24+ds/src/c/dpp.c:123: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 pool[POOLSIZE]; data/ecl-20.4.24+ds/src/c/dpp.c:131: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 *required[MAXREQ]; data/ecl-20.4.24+ds/src/c/dpp.c:167: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 *result[MAXRES]; data/ecl-20.4.24+ds/src/c/dpp.c:185: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 msg[2048]; data/ecl-20.4.24+ds/src/c/dpp.c:267: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 c[256]; data/ecl-20.4.24+ds/src/c/dpp.c:996: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 outfile[BUFSIZ]; data/ecl-20.4.24+ds/src/c/dpp.c:1004:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). in = fopen(argv[1],"r"); data/ecl-20.4.24+ds/src/c/dpp.c:1020:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). out = fopen(argv[2],"w"); data/ecl-20.4.24+ds/src/c/unicode/ucd.c:116:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const unsigned char ecl_ucd_misc_table[1736] = { data/ecl-20.4.24+ds/src/c/unicode/ucd.c:336:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const unsigned char *const ecl_ucd_page_table[4352] = { data/ecl-20.4.24+ds/src/c/unicode/ucd16.c:77:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const unsigned char ecl_ucd_misc_table[1736] = { data/ecl-20.4.24+ds/src/c/unicode/ucd16.c:297:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const unsigned char *const ecl_ucd_page_table[256] = { data/ecl-20.4.24+ds/src/c/unicode/ucd_names.h:17:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char codes[4]; data/ecl-20.4.24+ds/src/c/unicode/ucd_names.h:25:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char pair[2]; data/ecl-20.4.24+ds/src/c/unicode/ucd_names.h:26:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char code[3]; data/ecl-20.4.24+ds/src/c/unicode/ucd_names.h:31:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const char *ecl_ucd_names_word[ECL_UCD_FIRST_PAIR]; data/ecl-20.4.24+ds/src/c/unicode/ucd_names_char.c:542:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[ECL_UCD_LARGEST_CHAR_NAME+1]; data/ecl-20.4.24+ds/src/c/unicode/ucd_names_char.c:555:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer1[ECL_UCD_LARGEST_CHAR_NAME+1]; data/ecl-20.4.24+ds/src/c/unicode/ucd_names_char.c:556:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer2[ECL_UCD_LARGEST_CHAR_NAME+1]; data/ecl-20.4.24+ds/src/c/unicode/ucd_names_str.c:11: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. const char *ecl_ucd_names_word[ECL_UCD_FIRST_PAIR] = { data/ecl-20.4.24+ds/src/ecl/configpre.h:762:8: [2] (race) vfork: On some old systems, vfork() permits race conditions, and it's very difficult to use correctly (CWE-362). Use fork() instead. #undef vfork data/ecl-20.4.24+ds/src/h/cs.h:67:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. #define FRAME_CHAIN(frame) ((char **)frame)[0] data/ecl-20.4.24+ds/src/h/cs.h:68:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. #define FRAME_SAVED_PC(frame) ((char **)frame)[1] data/ecl-20.4.24+ds/src/h/ecl.h:33:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. ((void) memcpy(&(dst), &(src), sizeof(va_list))) data/ecl-20.4.24+ds/src/h/page.h:79:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char type_map[MAXPAGE]; data/ecl-20.4.24+ds/src/h/stacks.h:429:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(__dest->frame.base, __orig->frame.base, __size * sizeof(cl_object)); \ data/ecl-20.4.24+ds/src/util/cut.c:10:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1024]; data/ecl-20.4.24+ds/src/util/cut.c:11: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 buffer2[1024]; data/ecl-20.4.24+ds/src/util/cut.c:41:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1024]; data/ecl-20.4.24+ds/src/util/iobuftest.c:12: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 buf[BUFSIZ]; data/ecl-20.4.24+ds/msvc/gmp/build.vc8/getopt.c:244:51: [1] (buffer) strlen: Does not handle 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 (!defined __STDC__ || !__STDC__) && !defined strlen data/ecl-20.4.24+ds/msvc/gmp/build.vc8/getopt.c:247: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/ecl-20.4.24+ds/msvc/gmp/build.vc8/getopt.c:438:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = nonoption_flags_max_len = strlen (orig_str); data/ecl-20.4.24+ds/msvc/gmp/build.vc8/getopt.c:666: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). == (unsigned int) strlen (p->name)) data/ecl-20.4.24+ds/msvc/gmp/build.vc8/getopt.c:711: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/ecl-20.4.24+ds/msvc/gmp/build.vc8/getopt.c:777: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/ecl-20.4.24+ds/msvc/gmp/build.vc8/getopt.c:811: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/ecl-20.4.24+ds/msvc/gmp/build.vc8/getopt.c:816: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/ecl-20.4.24+ds/msvc/gmp/build.vc8/getopt.c:1003:51: [1] (buffer) strlen: Does not handle 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 ((unsigned int) (nameend - nextchar) == strlen (p->name)) data/ecl-20.4.24+ds/msvc/gmp/build.vc8/getopt.c:1043: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). nextchar += strlen (nextchar); data/ecl-20.4.24+ds/msvc/gmp/build.vc8/getopt.c:1081: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). nextchar += strlen (nextchar); data/ecl-20.4.24+ds/msvc/gmp/build.vc8/getopt.c:1113:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nextchar += strlen (nextchar); data/ecl-20.4.24+ds/msvc/gmp/build.vc8/getopt.c:1117: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). nextchar += strlen (nextchar); data/ecl-20.4.24+ds/src/c/dpp.c:206:7: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(in); data/ecl-20.4.24+ds/src/c/dpp.c:1002:5: [1] (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 character. strcpy(filename, "-"); data/ecl-20.4.24+ds/src/c/dpp.c:1005:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(filename, argv[1], BUFSIZ-1); data/ecl-20.4.24+ds/src/c/dpp.c:1018:5: [1] (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 character. strcpy(outfile, "-"); data/ecl-20.4.24+ds/src/c/dpp.c:1021:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(outfile, argv[2], BUFSIZ-1); data/ecl-20.4.24+ds/src/util/cut.c:16: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). lengths[i] = strlen(patterns[i]); ANALYSIS SUMMARY: Hits = 89 Lines analyzed = 154248 in approximately 4.70 seconds (32819 lines/second) Physical Source Lines of Code (SLOC) = 148811 Hits@level = [0] 217 [1] 19 [2] 44 [3] 13 [4] 10 [5] 3 Hits@level+ = [0+] 306 [1+] 89 [2+] 70 [3+] 26 [4+] 13 [5+] 3 Hits/KSLOC@level+ = [0+] 2.0563 [1+] 0.598074 [2+] 0.470395 [3+] 0.174718 [4+] 0.0873591 [5+] 0.0201598 Dot directories skipped = 2 (--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.