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/espresso-6.5/COUPLE/examples/c2cp.cpp Examining data/espresso-6.5/COUPLE/examples/c2pw.cpp Examining data/espresso-6.5/COUPLE/include/libqecouple.h Examining data/espresso-6.5/EPW/examples/diamond/epw/out.ref/decay.H Examining data/espresso-6.5/EPW/examples/sic/epw/out.ref/decay.H Examining data/espresso-6.5/FFTXlib/fft_stick.c Examining data/espresso-6.5/FFTXlib/fftw.c Examining data/espresso-6.5/FFTXlib/fftw.h Examining data/espresso-6.5/FFTXlib/fftw_dp.c Examining data/espresso-6.5/FFTXlib/fftw_dp.h Examining data/espresso-6.5/FFTXlib/fftw_sp.c Examining data/espresso-6.5/FFTXlib/fftw_sp.h Examining data/espresso-6.5/FFTXlib/konst.h Examining data/espresso-6.5/GUI/PWgui/external/src/tkAppInit.c Examining data/espresso-6.5/QHA/Phonon_DOS/parameters.h Examining data/espresso-6.5/clib/c_mkdir.c Examining data/espresso-6.5/clib/copy.c Examining data/espresso-6.5/clib/cptimer.c Examining data/espresso-6.5/clib/customize_signals.c Examining data/espresso-6.5/clib/eval_infix.c Examining data/espresso-6.5/clib/fletcher32.c Examining data/espresso-6.5/clib/md5.c Examining data/espresso-6.5/clib/md5.h Examining data/espresso-6.5/clib/md5_from_file.c Examining data/espresso-6.5/clib/memstat.c Examining data/espresso-6.5/clib/ptrace.c Examining data/espresso-6.5/clib/qmmm_aux.c Examining data/espresso-6.5/clib/qsort.c Examining data/espresso-6.5/clib/sockets.c Examining data/espresso-6.5/clib/stack.c Examining data/espresso-6.5/dev-tools/device_props.c Examining data/espresso-6.5/install/iotk_config.h FINAL RESULTS: data/espresso-6.5/clib/c_mkdir.c:39:10: [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(filename, W_OK|R_OK|X_OK ) ) { data/espresso-6.5/clib/eval_infix.c:298:17: [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(token->str, strToken); data/espresso-6.5/clib/eval_infix.c:307:17: [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(token->str, strToken); data/espresso-6.5/clib/eval_infix.c:321:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(token->str, strToken); data/espresso-6.5/clib/eval_infix.c:490:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(strError, "Error: invalid token: %s\n", tok.str); data/espresso-6.5/clib/sockets.c:100: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(serv_addr.sun_path+9, host); data/espresso-6.5/dev-tools/device_props.c:103:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(full_library_name, "/usr/local/cuda/lib64/%s", CUDART_LIBRARY_NAME); data/espresso-6.5/dev-tools/device_props.c:106:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(full_library_name, "/usr/local/cuda/lib/%s", CUDART_LIBRARY_NAME); data/espresso-6.5/dev-tools/device_props.c:199:15: [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. written = snprintf(write, BUFFER_LENGTH, data/espresso-6.5/dev-tools/device_props.c:278: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(stdout, props); data/espresso-6.5/dev-tools/device_props.c:289:19: [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. int written = fprintf(stdout, props); data/espresso-6.5/install/iotk_config.h:21:49: [4] (shell) system: 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. ! The following lines map some commonly defined system macro to the internal data/espresso-6.5/COUPLE/examples/c2cp.cpp:19: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 input[81] = { ' ', '\0' }; data/espresso-6.5/COUPLE/examples/c2cp.cpp:39:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). nimage=std::atoi(argv[i]); data/espresso-6.5/COUPLE/examples/c2cp.cpp:45:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). npots=std::atoi(argv[i]); data/espresso-6.5/COUPLE/examples/c2cp.cpp:52:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ndiag=std::atoi(argv[i]); data/espresso-6.5/COUPLE/examples/c2cp.cpp:58: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). ntg=std::atoi(argv[i]); data/espresso-6.5/COUPLE/examples/c2cp.cpp:64:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). nband=std::atoi(argv[i]); data/espresso-6.5/COUPLE/examples/c2cp.cpp:73:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ndiag=std::atoi(argv[i]); data/espresso-6.5/COUPLE/examples/c2cp.cpp:79:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). nres=std::atoi(argv[i]); data/espresso-6.5/COUPLE/examples/c2pw.cpp:19: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 input[81] = { ' ', '\0' }; data/espresso-6.5/COUPLE/examples/c2pw.cpp:39:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). nimage=std::atoi(argv[i]); data/espresso-6.5/COUPLE/examples/c2pw.cpp:45:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). npots=std::atoi(argv[i]); data/espresso-6.5/COUPLE/examples/c2pw.cpp:52:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ndiag=std::atoi(argv[i]); data/espresso-6.5/COUPLE/examples/c2pw.cpp:58: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). ntg=std::atoi(argv[i]); data/espresso-6.5/COUPLE/examples/c2pw.cpp:64:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). nband=std::atoi(argv[i]); data/espresso-6.5/COUPLE/examples/c2pw.cpp:73:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ndiag=std::atoi(argv[i]); data/espresso-6.5/COUPLE/examples/c2pw.cpp:79:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). nres=std::atoi(argv[i]); data/espresso-6.5/clib/copy.c:8:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fd1 = fopen(fn_in, "r"); data/espresso-6.5/clib/copy.c:11:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fd2 = fopen(fn_out, "w"); data/espresso-6.5/clib/copy.c:18: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 buffer[8192]; data/espresso-6.5/clib/eval_infix.c:78: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 str[54]; data/espresso-6.5/clib/eval_infix.c:133:9: [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(strError, "Error: operators stack is full, cannot add more elements %c\n", Tok.str[0]); data/espresso-6.5/clib/eval_infix.c:149:9: [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(strError, "Error: missing operator\n"); data/espresso-6.5/clib/eval_infix.c:169:9: [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(strError, "Error: missing operator\n"); data/espresso-6.5/clib/eval_infix.c:195:9: [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(strError, "Error: values stack is full: cannot add more elements %g\n", c); data/espresso-6.5/clib/eval_infix.c:209:9: [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(strError, "Error: missing operand\n"); data/espresso-6.5/clib/eval_infix.c:225:9: [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(strError, "Error top: values stack is empty\n"); data/espresso-6.5/clib/eval_infix.c:270: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 strToken[MAXOP]; data/espresso-6.5/clib/eval_infix.c:452:13: [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(strError, "Error: division by zero!\n"); data/espresso-6.5/clib/eval_infix.c:461:13: [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(strError, "Error: unbalanced brackets.\n"); data/espresso-6.5/clib/eval_infix.c:463:13: [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(strError, "Error: unknown operator: %c\n", op); data/espresso-6.5/clib/eval_infix.c:518:21: [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(strError, "Error: unbalanced brackets.\n"); data/espresso-6.5/clib/eval_infix.c:668:9: [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(strError, "Error: malformed expression.\n"); data/espresso-6.5/clib/eval_infix.c:676: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 strHelper[257]; data/espresso-6.5/clib/eval_infix.c:677: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 strError[257]; data/espresso-6.5/clib/md5.c:175: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(xbuf, data, 64); data/espresso-6.5/clib/md5.c:349: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(pms->buf + offset, p, copy); data/espresso-6.5/clib/md5.c:363: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(pms->buf, p, left); data/espresso-6.5/clib/md5_from_file.c:83:9: [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(md5,"Not computed, file name is empty\n"); data/espresso-6.5/clib/md5_from_file.c:88: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). fp=fopen(file,"rb"); data/espresso-6.5/clib/md5_from_file.c:90:9: [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(md5,"Not computed, couldn't open file\n"); data/espresso-6.5/clib/md5_from_file.c:97:9: [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(md5,"Not computed, file is empty \n"); data/espresso-6.5/clib/qmmm_aux.c:50: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. static const char FixQMMM_EL[QMMM_ISOTOPES][4] = { data/espresso-6.5/clib/sockets.c:72: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 service[256]; data/espresso-6.5/clib/sockets.c:79: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(service,"%d",*port); // convert the port number to a string data/espresso-6.5/clib/sockets.c:99: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(serv_addr.sun_path, "/tmp/ipi_"); data/espresso-6.5/dev-tools/device_props.c:50: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 props_buffer[MAX_DEVICES * BUFFER_LENGTH]; data/espresso-6.5/dev-tools/device_props.c:51: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 error_message[BUFFER_LENGTH]; data/espresso-6.5/dev-tools/device_props.c:102: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 full_library_name[PATH_MAX]; data/espresso-6.5/COUPLE/examples/c2cp.cpp:32:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(input, argv[i], 80); data/espresso-6.5/COUPLE/examples/c2pw.cpp:32:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(input, argv[i], 80); data/espresso-6.5/clib/eval_infix.c:128: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(strError, ""); data/espresso-6.5/clib/eval_infix.c:143: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(strError, ""); data/espresso-6.5/clib/eval_infix.c:150:9: [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(tok_temp.str, ""); data/espresso-6.5/clib/eval_infix.c:163: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(strError, ""); data/espresso-6.5/clib/eval_infix.c:170:9: [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(tok_temp.str, ""); data/espresso-6.5/clib/eval_infix.c:190: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(strError, ""); data/espresso-6.5/clib/eval_infix.c:203: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(strError, ""); data/espresso-6.5/clib/eval_infix.c:219: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(strError, ""); data/espresso-6.5/clib/eval_infix.c:281:13: [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(token->str, "\n"); data/espresso-6.5/clib/eval_infix.c:328:13: [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(token->str, "("); data/espresso-6.5/clib/eval_infix.c:335:13: [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(token->str, ")"); data/espresso-6.5/clib/eval_infix.c:341:13: [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(token->str, "+"); data/espresso-6.5/clib/eval_infix.c:364:13: [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(token->str, "-"); data/espresso-6.5/clib/eval_infix.c:387:13: [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(token->str, "~"); data/espresso-6.5/clib/eval_infix.c:403:13: [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(token->str, "*"); data/espresso-6.5/clib/eval_infix.c:410:13: [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(token->str, "/"); data/espresso-6.5/clib/eval_infix.c:417:13: [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(token->str, "^"); data/espresso-6.5/clib/eval_infix.c:439: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(strError, ""); data/espresso-6.5/clib/eval_infix.c:476: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(strError, ""); data/espresso-6.5/clib/md5_from_file.c:103: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). md5_append(&state,(const md5_byte_t *)data,strlen(data)); data/espresso-6.5/clib/sockets.c:148:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n = nr = read(sockfd,data,len); data/espresso-6.5/clib/sockets.c:151:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). { nr=read(sockfd,&data[n],len-n); n+=nr; } ANALYSIS SUMMARY: Hits = 84 Lines analyzed = 54204 in approximately 1.59 seconds (34171 lines/second) Physical Source Lines of Code (SLOC) = 51711 Hits@level = [0] 57 [1] 24 [2] 48 [3] 0 [4] 12 [5] 0 Hits@level+ = [0+] 141 [1+] 84 [2+] 60 [3+] 12 [4+] 12 [5+] 0 Hits/KSLOC@level+ = [0+] 2.72669 [1+] 1.62441 [2+] 1.16029 [3+] 0.232059 [4+] 0.232059 [5+] 0 Dot directories skipped = 4 (--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.