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/esorex-3.13.2+dfsg/libltdl/libltdl/lt_system.h Examining data/esorex-3.13.2+dfsg/libltdl/libltdl/lt_error.h Examining data/esorex-3.13.2+dfsg/libltdl/libltdl/lt_dlloader.h Examining data/esorex-3.13.2+dfsg/libltdl/libltdl/lt__alloc.h Examining data/esorex-3.13.2+dfsg/libltdl/libltdl/lt__dirent.h Examining data/esorex-3.13.2+dfsg/libltdl/libltdl/lt__glibc.h Examining data/esorex-3.13.2+dfsg/libltdl/libltdl/lt__private.h Examining data/esorex-3.13.2+dfsg/libltdl/libltdl/lt__strl.h Examining data/esorex-3.13.2+dfsg/libltdl/libltdl/slist.h Examining data/esorex-3.13.2+dfsg/libltdl/libltdl/lt__argz_.h Examining data/esorex-3.13.2+dfsg/libltdl/loaders/dld_link.c Examining data/esorex-3.13.2+dfsg/libltdl/loaders/dlopen.c Examining data/esorex-3.13.2+dfsg/libltdl/loaders/dyld.c Examining data/esorex-3.13.2+dfsg/libltdl/loaders/preopen.c Examining data/esorex-3.13.2+dfsg/libltdl/loaders/load_add_on.c Examining data/esorex-3.13.2+dfsg/libltdl/loaders/loadlibrary.c Examining data/esorex-3.13.2+dfsg/libltdl/loaders/shl_load.c Examining data/esorex-3.13.2+dfsg/libltdl/ltdl.h Examining data/esorex-3.13.2+dfsg/libltdl/lt__argz.c Examining data/esorex-3.13.2+dfsg/libltdl/lt__dirent.c Examining data/esorex-3.13.2+dfsg/libltdl/lt__strl.c Examining data/esorex-3.13.2+dfsg/libltdl/lt__alloc.c Examining data/esorex-3.13.2+dfsg/libltdl/lt_dlloader.c Examining data/esorex-3.13.2+dfsg/libltdl/lt_error.c Examining data/esorex-3.13.2+dfsg/libltdl/ltdl.c Examining data/esorex-3.13.2+dfsg/libltdl/slist.c Examining data/esorex-3.13.2+dfsg/src/er_fileutils.h Examining data/esorex-3.13.2+dfsg/src/er_help.h Examining data/esorex-3.13.2+dfsg/src/er_macros.h Examining data/esorex-3.13.2+dfsg/src/er_params.h Examining data/esorex-3.13.2+dfsg/src/er_paramutils.h Examining data/esorex-3.13.2+dfsg/src/er_plugin.h Examining data/esorex-3.13.2+dfsg/src/er_pluginlist.h Examining data/esorex-3.13.2+dfsg/src/er_stringarray.h Examining data/esorex-3.13.2+dfsg/src/er_stringutils.h Examining data/esorex-3.13.2+dfsg/src/er_paf.h Examining data/esorex-3.13.2+dfsg/src/er_json.h Examining data/esorex-3.13.2+dfsg/src/er_python.h Examining data/esorex-3.13.2+dfsg/src/er_fileutils.c Examining data/esorex-3.13.2+dfsg/src/er_help.c Examining data/esorex-3.13.2+dfsg/src/er_params.c Examining data/esorex-3.13.2+dfsg/src/er_paramutils.c Examining data/esorex-3.13.2+dfsg/src/er_plugin.c Examining data/esorex-3.13.2+dfsg/src/er_pluginlist.c Examining data/esorex-3.13.2+dfsg/src/er_stringarray.c Examining data/esorex-3.13.2+dfsg/src/er_stringutils.c Examining data/esorex-3.13.2+dfsg/src/er_paf.c Examining data/esorex-3.13.2+dfsg/src/er_python.c Examining data/esorex-3.13.2+dfsg/src/er_main.cpp Examining data/esorex-3.13.2+dfsg/src/getopt.c Examining data/esorex-3.13.2+dfsg/src/getopt1.c Examining data/esorex-3.13.2+dfsg/src/getopt.h Examining data/esorex-3.13.2+dfsg/src/tests/esorex_test.h Examining data/esorex-3.13.2+dfsg/src/tests/esorex_json-test.c Examining data/esorex-3.13.2+dfsg/src/tests/esorex_json_internal-test.c Examining data/esorex-3.13.2+dfsg/src/tests/esorex_json_parse_errors1-test.c Examining data/esorex-3.13.2+dfsg/src/tests/esorex_json_parse_errors2-test.c Examining data/esorex-3.13.2+dfsg/src/tests/esorex_json_parse_errors3-test.c Examining data/esorex-3.13.2+dfsg/src/tests/esorex_json_parse_errors4-test.c Examining data/esorex-3.13.2+dfsg/src/tests/esorex_json_parser-test.c Examining data/esorex-3.13.2+dfsg/src/tests/esorex_python-test.c Examining data/esorex-3.13.2+dfsg/src/tests/esorex_python_errors1-test.c Examining data/esorex-3.13.2+dfsg/src/tests/esorex_python_errors2-test.c Examining data/esorex-3.13.2+dfsg/src/tests/esorex_python_errors3-test.c Examining data/esorex-3.13.2+dfsg/src/tests/esorex_python_errors4-test.c Examining data/esorex-3.13.2+dfsg/src/tests/esorex_python_internal-test.c Examining data/esorex-3.13.2+dfsg/src/tests/esorex_python_recipe-test.c Examining data/esorex-3.13.2+dfsg/src/er_json.c FINAL RESULTS: data/esorex-3.13.2+dfsg/src/er_plugin.c:818:37: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. if (flag_readonly != 0) chmod (output_name, 0444); data/esorex-3.13.2+dfsg/src/tests/esorex_python-test.c:112:21: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. cpl_test_assert(chmod("./mock_python_test/python", mode) == 0); data/esorex-3.13.2+dfsg/src/tests/esorex_python_errors3-test.c:334:21: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. cpl_test_assert(chmod("./mock_python_error3_test/python", mode) == 0); data/esorex-3.13.2+dfsg/src/tests/esorex_python_internal-test.c:105:21: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. cpl_test_assert(chmod("./mock_python_internal_test/python", mode) == 0); data/esorex-3.13.2+dfsg/libltdl/libltdl/lt__private.h:117:11: [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. void * system; /* system specific data */ data/esorex-3.13.2+dfsg/libltdl/loaders/dlopen.c:229:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (attempt, "%s%s", filename, member); data/esorex-3.13.2+dfsg/libltdl/loaders/loadlibrary.c:170: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(wpath, filename); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:522:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (filename, "%.*s/%s", (int) dirname_len, dirname, dlname); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:718:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (filename, dir_name); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:724:6: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (filename +lendir, base_name); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:785:19: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. int notfound = access (filename, R_OK); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:922:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (name, "lib%s", p+2); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:1212:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(attempt, "%s%s", filename, ext); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:1307:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (archive_name, "%s%s.%s", libprefix, name + 3, libext); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:1311:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (archive_name, "%s.%s", name, libext); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:1820:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (buf, dirnam); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:2063: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(sym, handle->vtable->sym_prefix); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:2064:4: [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(sym, handle->info.name); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:2068: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(sym, handle->info.name); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:2072:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(sym, symbol); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:2090: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(sym, handle->vtable->sym_prefix); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:2091:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(sym, symbol); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:2095: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(sym, symbol); data/esorex-3.13.2+dfsg/src/er_fileutils.c:111:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void) strcpy (expanded_path, pwordexp.we_wordv[0]); data/esorex-3.13.2+dfsg/src/er_fileutils.c:192:16: [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). (void) strcpy (str,cpp); data/esorex-3.13.2+dfsg/src/er_fileutils.c:203:16: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat (str, name + 1); data/esorex-3.13.2+dfsg/src/er_fileutils.c:322:12: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat(str, name + 1); /* Add the rest of the file name */ data/esorex-3.13.2+dfsg/src/er_fileutils.c:428:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void) strcpy (fqfn, dir_name); data/esorex-3.13.2+dfsg/src/er_fileutils.c:430:12: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat (fqfn, file_name); data/esorex-3.13.2+dfsg/src/er_fileutils.c:722:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access (file_path, R_OK)) data/esorex-3.13.2+dfsg/src/er_help.c:122:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void) strcpy(wdsc, cpp); data/esorex-3.13.2+dfsg/src/er_help.c:161:19: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void)strcat(tmp, env_par); data/esorex-3.13.2+dfsg/src/er_help.c:170:20: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat(wdsc,tmp); data/esorex-3.13.2+dfsg/src/er_help.c:212:31: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void)strcat(tmp, cstr); data/esorex-3.13.2+dfsg/src/er_help.c:223:24: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat(wdsc,tmp); data/esorex-3.13.2+dfsg/src/er_help.c:275:31: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void)strcat(tmp, cppp); data/esorex-3.13.2+dfsg/src/er_help.c:288:31: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void)strcat(tmp, cppp); data/esorex-3.13.2+dfsg/src/er_help.c:303:16: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat(wdsc,tmp); data/esorex-3.13.2+dfsg/src/er_help.c:355:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void) strcpy(entrx, cpp); data/esorex-3.13.2+dfsg/src/er_help.c:384:27: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void)strcat(entrx,value); data/esorex-3.13.2+dfsg/src/er_help.c:388:27: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void)strcat(entrx, data/esorex-3.13.2+dfsg/src/er_help.c:403:27: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void)strcat(entrx, cpp); data/esorex-3.13.2+dfsg/src/er_help.c:584:12: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat(str, cpp); data/esorex-3.13.2+dfsg/src/er_help.c:602:12: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat(str, cpp); data/esorex-3.13.2+dfsg/src/er_help.c:632:12: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat(str, cpp); data/esorex-3.13.2+dfsg/src/er_help.c:681:12: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat(str, cpp); data/esorex-3.13.2+dfsg/src/er_help.c:704:12: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat(str, cpp); data/esorex-3.13.2+dfsg/src/er_help.c:721:12: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat(str, cpp); data/esorex-3.13.2+dfsg/src/er_help.c:737:12: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat(str, version_str); data/esorex-3.13.2+dfsg/src/er_help.c:961:16: [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). (void) strcpy(final_file_name, file_name); data/esorex-3.13.2+dfsg/src/er_help.c:972:16: [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). (void) strcpy(final_file_name,cpp); data/esorex-3.13.2+dfsg/src/er_help.c:975:11: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void)strcat( final_file_name, GLOBAL_RC_DIR ); data/esorex-3.13.2+dfsg/src/er_help.c:984:16: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat(command_str,final_file_name); data/esorex-3.13.2+dfsg/src/er_help.c:985:18: [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. status = system(command_str); data/esorex-3.13.2+dfsg/src/er_help.c:999:11: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void)strcat( final_file_name, context_name); data/esorex-3.13.2+dfsg/src/er_help.c:1000:11: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void)strcat( final_file_name, GLOBAL_RC_EXTENSION); data/esorex-3.13.2+dfsg/src/er_help.c:1012:15: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void)strcat(command_str,final_file_name); data/esorex-3.13.2+dfsg/src/er_help.c:1014:15: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void)strcat(command_str,final_file_name); data/esorex-3.13.2+dfsg/src/er_help.c:1015:15: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void)strcat(command_str, GLOBAL_RC_BACKUP); data/esorex-3.13.2+dfsg/src/er_help.c:1016:13: [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. if (system(command_str) != 0) data/esorex-3.13.2+dfsg/src/er_main.cpp:593:30: [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. int nitems = sscanf(s + 1, "%s", v); data/esorex-3.13.2+dfsg/src/er_params.c:123: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 (temp, input); data/esorex-3.13.2+dfsg/src/er_params.c:389:24: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void) sprintf (str, "environment variable '%s'", envvar); data/esorex-3.13.2+dfsg/src/er_params.c:461:28: [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). (void) strcpy ((char *) newoptions[i].name, data/esorex-3.13.2+dfsg/src/er_params.c:464:28: [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). (void) strcpy ((char *) newoptions[i].name, data/esorex-3.13.2+dfsg/src/er_params.c:727:20: [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). (void) strcpy(recipe_name, argv[optind]); data/esorex-3.13.2+dfsg/src/er_params.c:1321:24: [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). (void) strcpy(saved_name,val_create); data/esorex-3.13.2+dfsg/src/er_paramutils.c:179:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. i = sprintf(mystr," %s%s",flag_prefix,mykeyword); data/esorex-3.13.2+dfsg/src/er_paramutils.c:199:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void) strcpy(mystr+tab, description); /* append full description */ data/esorex-3.13.2+dfsg/src/er_paramutils.c:294:16: [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). (void) strcpy(ptr,*source); data/esorex-3.13.2+dfsg/src/er_paramutils.c:375:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. i = sprintf (spc, " %s%s", flag_prefix, keyword); data/esorex-3.13.2+dfsg/src/er_paramutils.c:395:16: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat (str, description); data/esorex-3.13.2+dfsg/src/er_paramutils.c:467:24: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void) sprintf (tmp_cmdl_descr, "%s", data/esorex-3.13.2+dfsg/src/er_paramutils.c:478:24: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void) sprintf (tmp_cmdl_descr, "%s", data/esorex-3.13.2+dfsg/src/er_paramutils.c:489:28: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void) sprintf (tmp_cmdl_descr, "%s", data/esorex-3.13.2+dfsg/src/er_paramutils.c:710:44: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat (tmp, er_strutils_dblstr (tmp_double)); data/esorex-3.13.2+dfsg/src/er_paramutils.c:712:44: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat (tmp, cpl_parameter_get_alias (p, CPL_PARAMETER_MODE_CLI)); data/esorex-3.13.2+dfsg/src/er_paramutils.c:714:44: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat (tmp, er_strutils_dblstr (cpl_parameter_get_range_min_double (p))); data/esorex-3.13.2+dfsg/src/er_paramutils.c:716:44: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat (tmp, er_strutils_dblstr (cpl_parameter_get_range_max_double (p))); data/esorex-3.13.2+dfsg/src/er_plugin.c:185:24: [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). (void) strcpy(mpt[iout-1],&myline[keep]); data/esorex-3.13.2+dfsg/src/er_plugin.c:192:16: [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). (void) strcpy(mpt[iout-1],&myline[keep]); data/esorex-3.13.2+dfsg/src/er_plugin.c:328:36: [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). (void) strcpy(path,wp); data/esorex-3.13.2+dfsg/src/er_plugin.c:343:28: [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). (void) strcpy(path,xpath); data/esorex-3.13.2+dfsg/src/er_plugin.c:363:36: [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). (void) strcpy(path,name); data/esorex-3.13.2+dfsg/src/er_plugin.c:595:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void) strcpy (output_dir, fileutils_pntr); data/esorex-3.13.2+dfsg/src/er_plugin.c:602:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void) strcpy (link_dir, fileutils_pntr); data/esorex-3.13.2+dfsg/src/er_plugin.c:680:24: [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). (void) strcpy (output_name, input_name); data/esorex-3.13.2+dfsg/src/er_plugin.c:684:24: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void) sprintf (output_name, "%s_%04d", output_prefix, data/esorex-3.13.2+dfsg/src/er_plugin.c:694:32: [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). if (suffix) (void) strcat (output_name, suffix); data/esorex-3.13.2+dfsg/src/er_plugin.c:739:28: [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). (void) strcpy(tmp,output_name); data/esorex-3.13.2+dfsg/src/er_plugin.c:741:24: [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). (void) strcpy (output_name, output_dir); data/esorex-3.13.2+dfsg/src/er_plugin.c:744:24: [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). (void) strcpy (&output_name[ii+1],tmp); data/esorex-3.13.2+dfsg/src/er_plugin.c:747:26: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. status = access(output_name, F_OK); data/esorex-3.13.2+dfsg/src/er_plugin.c:1118:20: [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). (void) strcpy(plugin_conf_file_global,cptr); data/esorex-3.13.2+dfsg/src/er_plugin.c:1121:16: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat(plugin_conf_file_global, GLOBAL_RC_DIR); data/esorex-3.13.2+dfsg/src/er_plugin.c:1123:33: [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). if (cpp != NULL) (void) strcat(plugin_conf_file_global, cpp); data/esorex-3.13.2+dfsg/src/er_plugin.c:1124:16: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat(plugin_conf_file_global, GLOBAL_RC_EXTENSION); data/esorex-3.13.2+dfsg/src/er_plugin.c:1255:20: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat (help_str, cpp); data/esorex-3.13.2+dfsg/src/er_plugin.c:1265:20: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat (help_str, cpp); data/esorex-3.13.2+dfsg/src/er_plugin.c:1280:24: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat (help_str, library_path); data/esorex-3.13.2+dfsg/src/er_plugin.c:1306:20: [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). (void) strcpy (help_str, tmp_buf); data/esorex-3.13.2+dfsg/src/er_plugin.c:1307:20: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat (help_str, cpp); data/esorex-3.13.2+dfsg/src/er_pluginlist.c:299:16: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void) sprintf (fqfn, "%s%s%s", dirname, SEP_STR, entry->d_name); data/esorex-3.13.2+dfsg/src/er_pluginlist.c:555:16: [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). (void) strcpy(fully_qualified_library_name, cptr); data/esorex-3.13.2+dfsg/src/er_pluginlist.c:663:24: [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). (void) strcpy(libpath, fully_qualified_library_name); data/esorex-3.13.2+dfsg/src/er_pluginlist.c:909:16: [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). (void) strcpy(fully_qualified_library_name,cptr); data/esorex-3.13.2+dfsg/src/er_pluginlist.c:1061:16: [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). (void) strcpy(fully_qualified_library_name,ccptr); data/esorex-3.13.2+dfsg/src/er_python.c:576:16: [4] (shell) execlp: 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. (void) execlp("python", "python", "-c", python_command, (char *)0); data/esorex-3.13.2+dfsg/src/er_stringarray.c:236:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void) strcpy(csa->strings[indx],instring); data/esorex-3.13.2+dfsg/src/er_stringutils.c:90:20: [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). (void) strcpy (&output[MAX_MSG_LENGTH - 2 - strlen (warning)], warning); data/esorex-3.13.2+dfsg/src/er_stringutils.c:221:16: [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). (void) strcpy(s+blanks,ss+m); /* and append original description */ data/esorex-3.13.2+dfsg/src/er_stringutils.c:414:9: [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. snprintf (er_buf,(size_t)255, er_fmt, value); data/esorex-3.13.2+dfsg/src/tests/esorex_python_errors4-test.c:60:9: [4] (shell) execlp: 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. #define execlp _overloaded_execlp data/esorex-3.13.2+dfsg/src/tests/esorex_python_errors4-test.c:62:8: [4] (shell) execlp: 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. #undef execlp data/esorex-3.13.2+dfsg/src/tests/esorex_python_recipe-test.c:56:9: [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. if (system("python --version > /dev/null") != 0) data/esorex-3.13.2+dfsg/src/tests/esorex_python_recipe-test.c:87:17: [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. cpl_test_eq(system(esorex_command), 0); data/esorex-3.13.2+dfsg/libltdl/loaders/loadlibrary.c:199:14: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. module = LoadLibrary (wpath); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:1361:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. search_path = getenv (LTDL_SEARCHPATH_VAR); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:1369:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. search_path = getenv (LT_MODULE_PATH_VAR); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:1469:23: [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. && !find_handle (getenv (LTDL_SEARCHPATH_VAR), base_name, data/esorex-3.13.2+dfsg/libltdl/ltdl.c:1472:23: [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. && !find_handle (getenv (LT_MODULE_PATH_VAR), base_name, data/esorex-3.13.2+dfsg/libltdl/ltdl.c:1925:33: [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. is_done = foreach_dirinpath (getenv(LTDL_SEARCHPATH_VAR), 0, data/esorex-3.13.2+dfsg/libltdl/ltdl.c:1932:33: [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. is_done = foreach_dirinpath (getenv(LT_MODULE_PATH_VAR), 0, data/esorex-3.13.2+dfsg/src/er_fileutils.c:176:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. cpp = getenv ("HOME"); data/esorex-3.13.2+dfsg/src/er_help.c:967:11: [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. cpp = getenv("HOME"); data/esorex-3.13.2+dfsg/src/er_main.cpp:624:30: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *env_config = getenv("ESOREX_CONFIG"); data/esorex-3.13.2+dfsg/src/er_main.cpp:628:27: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *_home = getenv("HOME"); data/esorex-3.13.2+dfsg/src/er_main.cpp:735:32: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *env_memcheck = getenv("ESOREX_MEM_CHECK"); data/esorex-3.13.2+dfsg/src/er_main.cpp:799:43: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *memory_mode = getenv("CPL_MEMORY_MODE"); data/esorex-3.13.2+dfsg/src/er_params.c:374: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. value = getenv (envvar); /* get value of that variable */ data/esorex-3.13.2+dfsg/src/er_params.c:434:16: [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. cptr = getenv ("ESOREX_USE_PARAM_NAME"); data/esorex-3.13.2+dfsg/src/er_plugin.c:1093:16: [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. cptr = getenv ("HOME"); data/esorex-3.13.2+dfsg/src/getopt.c:211: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/esorex-3.13.2+dfsg/src/getopt.c:212: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/esorex-3.13.2+dfsg/src/getopt.c:399: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/esorex-3.13.2+dfsg/src/getopt.c:974: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/esorex-3.13.2+dfsg/src/getopt.c:1004: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/esorex-3.13.2+dfsg/src/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/esorex-3.13.2+dfsg/src/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/esorex-3.13.2+dfsg/src/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, const char *__shortopts, data/esorex-3.13.2+dfsg/src/getopt.h:164: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/esorex-3.13.2+dfsg/src/getopt.h:166: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/esorex-3.13.2+dfsg/src/getopt1.c:67: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/esorex-3.13.2+dfsg/src/getopt1.c:123: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/esorex-3.13.2+dfsg/libltdl/libltdl/lt__dirent.h:65: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 d_name[LT_FILENAME_MAX]; data/esorex-3.13.2+dfsg/libltdl/loaders/dyld.c:326: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 saveError[256] = "Symbol not found"; data/esorex-3.13.2+dfsg/libltdl/loaders/loadlibrary.c:139: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 wpath[MAX_PATH]; data/esorex-3.13.2+dfsg/libltdl/lt__alloc.c:87: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. return memcpy (newmem, mem, n); data/esorex-3.13.2+dfsg/libltdl/lt__argz.c:69: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 (argz + *pargz_len, buf, buf_len); data/esorex-3.13.2+dfsg/libltdl/lt__argz.c:166:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (before, entry, entry_len); data/esorex-3.13.2+dfsg/libltdl/lt__dirent.c:51: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 file_spec[LT_FILENAME_MAX]; data/esorex-3.13.2+dfsg/libltdl/lt_error.c:36: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 error_strings[LT_ERROR_MAX][LT_ERROR_LEN_MAX + 1] = data/esorex-3.13.2+dfsg/libltdl/ltdl.c:756: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 ((*pfile = fopen (filename, LT_READTEXT_MODE))) data/esorex-3.13.2+dfsg/libltdl/ltdl.c:1023:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, &str[1], (end - str) - 1); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:1383: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). file = fopen (attempt, LT_READTEXT_MODE); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:2016: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 lsym[LT_SYMBOL_LENGTH]; data/esorex-3.13.2+dfsg/libltdl/ltdl.c:2071:7: [2] (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 string. strcat(sym, "_LTX_"); data/esorex-3.13.2+dfsg/src/er_fileutils.c:83:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char expanded_path[PATHSET_MAX + 1]; data/esorex-3.13.2+dfsg/src/er_fileutils.c:84: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 tpath[PATHSET_MAX + 1]; data/esorex-3.13.2+dfsg/src/er_fileutils.c:150:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str[PATHSET_MAX]; data/esorex-3.13.2+dfsg/src/er_fileutils.c:258:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str[PATHSET_MAX]; data/esorex-3.13.2+dfsg/src/er_fileutils.c:309:16: [2] (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 string. (void) strcat (str, "/."); data/esorex-3.13.2+dfsg/src/er_fileutils.c:381:27: [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). file_descriptor = open (resname, O_RDONLY); data/esorex-3.13.2+dfsg/src/er_fileutils.c:564:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((src = open (srcpath, O_RDONLY)) == -1) return (-1); data/esorex-3.13.2+dfsg/src/er_fileutils.c:572:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((dst = open (dstpath, O_CREAT | O_WRONLY | O_TRUNC, sb.st_mode)) == -1) data/esorex-3.13.2+dfsg/src/er_fileutils.c:712: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 linkname[FILEMAX + 1]; data/esorex-3.13.2+dfsg/src/er_fileutils.c:843:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(fp = fopen (name, "r"))) data/esorex-3.13.2+dfsg/src/er_help.c:157: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. char tmp[512]; data/esorex-3.13.2+dfsg/src/er_help.c:159:19: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void)strcpy(tmp, data/esorex-3.13.2+dfsg/src/er_help.c:188:17: [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[SIZE_X]; data/esorex-3.13.2+dfsg/src/er_help.c:190:23: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void)strcpy(tmp, " <"); data/esorex-3.13.2+dfsg/src/er_help.c:197:31: [2] (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 string. (void)strcat(tmp, " | "); data/esorex-3.13.2+dfsg/src/er_help.c:237: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[MAXSTRLENCONF]; data/esorex-3.13.2+dfsg/src/er_help.c:246:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void)strcpy(tmp, " [TRUE]"); data/esorex-3.13.2+dfsg/src/er_help.c:251:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void)strcpy(tmp, " [FALSE]"); data/esorex-3.13.2+dfsg/src/er_help.c:256:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void)strcpy(tmp, " [???]"); data/esorex-3.13.2+dfsg/src/er_help.c:268:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void)strcpy(tmp, " ["); data/esorex-3.13.2+dfsg/src/er_help.c:281:31: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void)strcpy(tmp, " ["); data/esorex-3.13.2+dfsg/src/er_help.c:326: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 value[SIZE_X-80]; /* Default value of an option */ data/esorex-3.13.2+dfsg/src/er_help.c:368:27: [2] (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 string. (void)strcat(entrx, "TRUE"); data/esorex-3.13.2+dfsg/src/er_help.c:372:27: [2] (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 string. (void)strcat(entrx, "FALSE"); data/esorex-3.13.2+dfsg/src/er_help.c:377:27: [2] (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 string. (void)strcat(entrx, "???"); data/esorex-3.13.2+dfsg/src/er_help.c:569:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void) strcpy(str, " "); data/esorex-3.13.2+dfsg/src/er_help.c:586:12: [2] (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 string. (void) strcat(str, " -- "); data/esorex-3.13.2+dfsg/src/er_help.c:617:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void) strcpy(str, " "); data/esorex-3.13.2+dfsg/src/er_help.c:646: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[256]; /* actually 194 are needed... */ data/esorex-3.13.2+dfsg/src/er_help.c:655:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void) strcpy(tmp, " Note that it is also possible to create a " data/esorex-3.13.2+dfsg/src/er_help.c:666:5: [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(str, " "); data/esorex-3.13.2+dfsg/src/er_help.c:688:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void) strcpy(str, " Please report any problems with this recipe to "); data/esorex-3.13.2+dfsg/src/er_help.c:711:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void) strcpy(str, " "); data/esorex-3.13.2+dfsg/src/er_help.c:722:12: [2] (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 string. (void) strcat(str, " -- version "); data/esorex-3.13.2+dfsg/src/er_help.c:779:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char timestr[MAXSTRLENCONF]; /* String with date/time */ data/esorex-3.13.2+dfsg/src/er_help.c:944: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 final_file_name[FILEMAX+1]; data/esorex-3.13.2+dfsg/src/er_help.c:945: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 command_str[2*FILEMAX]; data/esorex-3.13.2+dfsg/src/er_help.c:983:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void) strcpy(command_str,"mkdir "); data/esorex-3.13.2+dfsg/src/er_help.c:1011:16: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void) strcpy(command_str,"cp "); data/esorex-3.13.2+dfsg/src/er_help.c:1047:14: [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(final_file_name, "w"); data/esorex-3.13.2+dfsg/src/er_json.c:99:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fjson = fopen(json_file, "w"); data/esorex-3.13.2+dfsg/src/er_json.c:179:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ftext = fopen(text_file, "w"); data/esorex-3.13.2+dfsg/src/er_json.c:258:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fjson = fopen(json_file, "w"); data/esorex-3.13.2+dfsg/src/er_json.c:2122: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. const char * special_value_str[8] = { data/esorex-3.13.2+dfsg/src/er_json.c:3642:45: [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. av_ptr(alist, const char *, str_choices[n]); data/esorex-3.13.2+dfsg/src/er_main.cpp:574: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[MAXSTRLENCONF]; data/esorex-3.13.2+dfsg/src/er_main.cpp:591:17: [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 v[MAXSTRLENCONF]; data/esorex-3.13.2+dfsg/src/er_main.cpp:742: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 value[MAXSTRLENCONF]; data/esorex-3.13.2+dfsg/src/er_main.cpp:744:20: [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 *fp = fopen(syscfg, "r"); data/esorex-3.13.2+dfsg/src/er_main.cpp:766: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 value[MAXSTRLENCONF]; data/esorex-3.13.2+dfsg/src/er_main.cpp:768:20: [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 *fp = fopen(cfg, "r"); data/esorex-3.13.2+dfsg/src/er_main.cpp:823: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 plugin_name[FILEMAX+2]; data/esorex-3.13.2+dfsg/src/er_paf.c:701: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 line[MAXSTRLENCONF]; data/esorex-3.13.2+dfsg/src/er_paf.c:708:23: [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_descriptor = fopen(paf_config_filename, "r"); data/esorex-3.13.2+dfsg/src/er_params.c:80:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char input[MAXSTRLENCONF]; data/esorex-3.13.2+dfsg/src/er_params.c:81:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[MAXSTRLENCONF]; /* Temporary copy of "input" */ data/esorex-3.13.2+dfsg/src/er_params.c:98:23: [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_descriptor = fopen (file_name, "r"); data/esorex-3.13.2+dfsg/src/er_params.c:379:17: [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[256]; data/esorex-3.13.2+dfsg/src/er_params.c:461:37: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. (void) strcpy ((char *) newoptions[i].name, data/esorex-3.13.2+dfsg/src/er_params.c:464:37: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. (void) strcpy ((char *) newoptions[i].name, data/esorex-3.13.2+dfsg/src/er_params.c:638:36: [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. cpl_free ((char *) getopt_input_list[iparam].name); data/esorex-3.13.2+dfsg/src/er_params.c:657:40: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. cpl_free ((char *) getopt_input_list[iparam].name); data/esorex-3.13.2+dfsg/src/er_params.c:688:28: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. cpl_free ((char *) getopt_input_list[iparam].name); data/esorex-3.13.2+dfsg/src/er_params.c:706:20: [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. cpl_free ((char *) getopt_input_list[iparam].name); data/esorex-3.13.2+dfsg/src/er_params.c:955: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. char blastr[16]; data/esorex-3.13.2+dfsg/src/er_params.c:958:24: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void) strcpy(blastr,"directory"); data/esorex-3.13.2+dfsg/src/er_params.c:960:24: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void) strcpy(blastr,"directories"); data/esorex-3.13.2+dfsg/src/er_params.c:1329:24: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void) strcpy(saved_name,"TRUE"); data/esorex-3.13.2+dfsg/src/er_paramutils.c:241:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char *ptr, *p_sources[MAX_SRC]; data/esorex-3.13.2+dfsg/src/er_paramutils.c:242:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char p_names[MAX_SRC*PAR_LEN]; data/esorex-3.13.2+dfsg/src/er_paramutils.c:361: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 spc[88]; /* to determine string padding */ data/esorex-3.13.2+dfsg/src/er_paramutils.c:362: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[MAXSTRLENCONF]; data/esorex-3.13.2+dfsg/src/er_paramutils.c:386:12: [2] (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 string. (void) strcat (str, " (source = "); data/esorex-3.13.2+dfsg/src/er_paramutils.c:392:16: [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. (void) sprintf (&str[ii], "%900.900s", description); data/esorex-3.13.2+dfsg/src/er_paramutils.c:432: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 tmp_cmdl_descr[MAXSTRLENCONF]; data/esorex-3.13.2+dfsg/src/er_paramutils.c:473:24: [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. (void) sprintf (tmp_cmdl_descr, "%d", tmp_int); data/esorex-3.13.2+dfsg/src/er_paramutils.c:709:44: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void) strcpy (tmp, "Specified 'double' value ("); data/esorex-3.13.2+dfsg/src/er_paramutils.c:711:44: [2] (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 string. (void) strcat (tmp, ") for the parameter '"); data/esorex-3.13.2+dfsg/src/er_paramutils.c:713:44: [2] (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 string. (void) strcat (tmp, "' was outside the permitted range "); data/esorex-3.13.2+dfsg/src/er_paramutils.c:715:44: [2] (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 string. (void) strcat (tmp, " to "); data/esorex-3.13.2+dfsg/src/er_paramutils.c:717:44: [2] (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 string. (void) strcat (tmp, ".\n"); data/esorex-3.13.2+dfsg/src/er_plugin.c:129: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. char tmp[16]; data/esorex-3.13.2+dfsg/src/er_plugin.c:132:24: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void) strcpy(tmp,"logfile"); data/esorex-3.13.2+dfsg/src/er_plugin.c:134:24: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void) strcpy(tmp,"terminal"); data/esorex-3.13.2+dfsg/src/er_plugin.c:167: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 *mpt[3]; data/esorex-3.13.2+dfsg/src/er_plugin.c:247: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 estr[240]; data/esorex-3.13.2+dfsg/src/er_plugin.c:266:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(fp = fopen (name, "r"))) data/esorex-3.13.2+dfsg/src/er_plugin.c:365:32: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void) strcpy(tag,"COMMAND_LINE"); data/esorex-3.13.2+dfsg/src/er_plugin.c:572: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 current_dir[FILEMAX]; /* Name of current (work) directory */ data/esorex-3.13.2+dfsg/src/er_plugin.c:573: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 link_dir[PATHSET_MAX]; /* Name of the symbolic link dir. */ data/esorex-3.13.2+dfsg/src/er_plugin.c:574: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 output_dir[PATHSET_MAX]; /* Name of the output dir. */ data/esorex-3.13.2+dfsg/src/er_plugin.c:734:17: [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[SIZE_A]; data/esorex-3.13.2+dfsg/src/er_plugin.c:737:28: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void) strcpy(tmp,"dummy_output"); data/esorex-3.13.2+dfsg/src/er_plugin.c:1234: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. char tmp_buf[512]; data/esorex-3.13.2+dfsg/src/er_plugin.c:1245:20: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void) strcpy (help_str, "Recipe: "); data/esorex-3.13.2+dfsg/src/er_plugin.c:1256:20: [2] (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 string. (void) strcat (help_str, " -- "); data/esorex-3.13.2+dfsg/src/er_plugin.c:1271:24: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void) strcpy (help_str, "Library: "); data/esorex-3.13.2+dfsg/src/er_plugin.c:1290:20: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void) strcpy (tmp_buf,"For help on the options of " PACKAGE data/esorex-3.13.2+dfsg/src/er_plugin.c:1308:20: [2] (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 string. (void) strcat (help_str, "'."); data/esorex-3.13.2+dfsg/src/er_plugin.c:1606: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 tmpbuf[FILEMAX+12]; data/esorex-3.13.2+dfsg/src/er_plugin.c:1613:16: [2] (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 string. (void) strcat (tmpbuf, "/.logfile"); data/esorex-3.13.2+dfsg/src/er_pluginlist.c:514: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 *cptr, fully_qualified_library_name[MAXSTRLENCONF]; data/esorex-3.13.2+dfsg/src/er_pluginlist.c:880: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 *cptr, fully_qualified_library_name[MAXSTRLENCONF]; data/esorex-3.13.2+dfsg/src/er_pluginlist.c:1024: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 *ccptr, fully_qualified_library_name[MAXSTRLENCONF]; data/esorex-3.13.2+dfsg/src/er_stringutils.c:78:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char output[MAX_MSG_LENGTH]; data/esorex-3.13.2+dfsg/src/er_stringutils.c:142:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char split[MAX_MSG_LENGTH]; data/esorex-3.13.2+dfsg/src/er_stringutils.c:400: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 er_fmt[24]; /* Printing format */ data/esorex-3.13.2+dfsg/src/er_stringutils.c:401:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char er_buf[256]; /* Buffer to hold the created string */ data/esorex-3.13.2+dfsg/src/er_stringutils.c:418:20: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. (void) strcpy (er_buf, "***"); data/esorex-3.13.2+dfsg/src/er_stringutils.c:450:20: [2] (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 string. (void) strcat (er_buf, ".0"); data/esorex-3.13.2+dfsg/src/tests/esorex_json-test.c:131:24: [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 * fjson = fopen("parlist.json", "rb"); data/esorex-3.13.2+dfsg/src/tests/esorex_json-test.c:170:24: [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 * fjson = fopen("parlist11.json", "rb"); data/esorex-3.13.2+dfsg/src/tests/esorex_json-test.c:218:24: [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 * fjson = fopen("parlist2.json", "rb"); data/esorex-3.13.2+dfsg/src/tests/esorex_json-test.c:369:24: [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 * fjson = fopen("frameset.json", "rb"); data/esorex-3.13.2+dfsg/src/tests/esorex_json-test.c:408:24: [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 * fjson = fopen("frameset2.json", "rb"); data/esorex-3.13.2+dfsg/src/tests/esorex_python-test.c:102:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* file = fopen("./mock_python_test/python", "w"); data/esorex-3.13.2+dfsg/src/tests/esorex_python_errors3-test.c:324:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* file = fopen("./mock_python_error3_test/python", "w"); data/esorex-3.13.2+dfsg/src/tests/esorex_python_internal-test.c:95:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* file = fopen("./mock_python_internal_test/python", "w"); data/esorex-3.13.2+dfsg/src/tests/esorex_python_recipe-test.c:123:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* file = fopen(filename, "w"); data/esorex-3.13.2+dfsg/src/tests/esorex_python_recipe-test.c:140:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* file = fopen(filename, "r"); data/esorex-3.13.2+dfsg/libltdl/libltdl/lt__dirent.h:46: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). # define D_NAMLEN(dirent) (strlen((dirent)->d_name)) data/esorex-3.13.2+dfsg/libltdl/libltdl/lt__dirent.h:54: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). # define D_NAMLEN(dirent) (strlen((dirent)->d_name)) data/esorex-3.13.2+dfsg/libltdl/loaders/dlopen.c:222:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *attempt = MALLOC (char, len + strlen (member) + 1); data/esorex-3.13.2+dfsg/libltdl/loaders/loadlibrary.c:179:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (wpath); data/esorex-3.13.2+dfsg/libltdl/lt__alloc.c:95:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return (char *) lt__memdup (string, strlen (string) +1); data/esorex-3.13.2+dfsg/libltdl/lt__argz.c:91: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). argz_len = 1+ strlen (str); data/esorex-3.13.2+dfsg/libltdl/lt__argz.c:141:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return argz_append (pargz, pargz_len, entry, 1+ strlen (entry)); data/esorex-3.13.2+dfsg/libltdl/lt__argz.c:150:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t entry_len = 1+ strlen (entry); data/esorex-3.13.2+dfsg/libltdl/lt__dirent.c:101:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). entry->file_info.d_namlen = strlen (entry->file_info.d_name); data/esorex-3.13.2+dfsg/libltdl/lt__strl.c:61:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length=strlen(dst); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:1293: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). archive_name = MALLOC (char, strlen (libprefix) + LT_STRLEN (name) + strlen (libext) + 2); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:1293:73: [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). archive_name = MALLOC (char, strlen (libprefix) + LT_STRLEN (name) + strlen (libext) + 2); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:1731:55: [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). error = argz_append (pargz, pargz_len, entry, 1 + strlen (entry)); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:1821: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 (buf, "/"); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:1822:3: [1] (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. strncat (buf, dp->d_name, end_offset); data/esorex-3.13.2+dfsg/libltdl/ltdl.c:2166:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert ((int) (before - *ppath) <= (int) strlen (*ppath)); data/esorex-3.13.2+dfsg/libltdl/ltdl.h:44:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define LT_STRLEN(s) (((s) && (s)[0]) ? strlen (s) : 0) data/esorex-3.13.2+dfsg/src/er_fileutils.c:89:12: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void) strncpy (expanded_path, path, PATHSET_MAX); data/esorex-3.13.2+dfsg/src/er_fileutils.c:103:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!pwordexp.we_wordv[0] || strlen (pwordexp.we_wordv[0]) > PATHSET_MAX) data/esorex-3.13.2+dfsg/src/er_fileutils.c:158: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). lname = (int) strlen(name); data/esorex-3.13.2+dfsg/src/er_fileutils.c:184: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). len = (int) strlen(cpp); data/esorex-3.13.2+dfsg/src/er_fileutils.c:213:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memmove (marker, marker + 1, strlen (marker)); data/esorex-3.13.2+dfsg/src/er_fileutils.c:220:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). marker = str - 1 + (int) strlen(str); /* last char of `str' */ data/esorex-3.13.2+dfsg/src/er_fileutils.c:266: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). lname = (int) strlen(name); data/esorex-3.13.2+dfsg/src/er_fileutils.c:295: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). len = (int) strlen(cpp); data/esorex-3.13.2+dfsg/src/er_fileutils.c:419: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). ldn = (int) strlen (dir_name); data/esorex-3.13.2+dfsg/src/er_fileutils.c:423: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). lfn = (int) strlen (file_name); data/esorex-3.13.2+dfsg/src/er_fileutils.c:429:29: [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. if (lextra == 2) (void) strcat (fqfn, "/"); data/esorex-3.13.2+dfsg/src/er_fileutils.c:459: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). len = (int) strlen (path); data/esorex-3.13.2+dfsg/src/er_fileutils.c:473:12: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void) strncpy (fname, &path[j + 1], (size_t) (len-j-1)); data/esorex-3.13.2+dfsg/src/er_fileutils.c:502: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). len = (int) strlen (path); data/esorex-3.13.2+dfsg/src/er_fileutils.c:516:12: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void) strncpy (dname, path, (size_t) j); data/esorex-3.13.2+dfsg/src/er_fileutils.c:602:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((rbytes = (int) read (src, buf, (size_t)blksize)) > 0) data/esorex-3.13.2+dfsg/src/er_fileutils.c:740: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). len = (int) strlen(s); data/esorex-3.13.2+dfsg/src/er_fileutils.c:741: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). len = (int) strlen(link_path) + len + 1; data/esorex-3.13.2+dfsg/src/er_help.c:113: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). str_len = (int) strlen(cpp); data/esorex-3.13.2+dfsg/src/er_help.c:134:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). countr = (int) strlen(wdsc); /* length counter for wdsc */ data/esorex-3.13.2+dfsg/src/er_help.c:162:19: [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. (void)strcat(tmp, "."); data/esorex-3.13.2+dfsg/src/er_help.c:163:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n = (int) strlen(tmp) + 1; data/esorex-3.13.2+dfsg/src/er_help.c:205:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). klen += 4 + (int) strlen(cstr); /* for the ` | ' above */ data/esorex-3.13.2+dfsg/src/er_help.c:215:23: [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. (void)strcat(tmp, ">"); data/esorex-3.13.2+dfsg/src/er_help.c:216: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). n = (int) strlen(tmp) + 1; data/esorex-3.13.2+dfsg/src/er_help.c:270:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((int)strlen(cppp) > (MAXSTRLENCONF - 4)) data/esorex-3.13.2+dfsg/src/er_help.c:276:31: [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. (void)strcat(tmp, "]"); data/esorex-3.13.2+dfsg/src/er_help.c:277:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). countr += (int) strlen(tmp); data/esorex-3.13.2+dfsg/src/er_help.c:283:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((int)strlen(cppp) > (MAXSTRLENCONF - 4)) data/esorex-3.13.2+dfsg/src/er_help.c:289:31: [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. (void)strcat(tmp, "]"); data/esorex-3.13.2+dfsg/src/er_help.c:290:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). countr += (int) strlen(tmp); data/esorex-3.13.2+dfsg/src/er_help.c:348:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n = (int) strlen(cpp) + 24; /* for the stuff below, except TYPE_STRING */ data/esorex-3.13.2+dfsg/src/er_help.c:356:12: [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. (void) strcat(entrx, "="); data/esorex-3.13.2+dfsg/src/er_help.c:397:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n = (int) strlen(cpp) + 1; data/esorex-3.13.2+dfsg/src/er_help.c:578:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n = 12 + (int) strlen(cpp); /* add the constant char stuff before + after */ data/esorex-3.13.2+dfsg/src/er_help.c:587:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). left_margin = (int) strlen(str); /* new length of string */ data/esorex-3.13.2+dfsg/src/er_help.c:596:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n = (int) strlen(cpp) + left_margin; data/esorex-3.13.2+dfsg/src/er_help.c:626: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). n = 4 + (int) strlen(cpp); data/esorex-3.13.2+dfsg/src/er_help.c:675: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). n = 4 + (int) strlen(cpp); data/esorex-3.13.2+dfsg/src/er_help.c:689: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). n = 2 + (int) strlen(str); /* don't forget the \0 */ data/esorex-3.13.2+dfsg/src/er_help.c:698: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). n += (int) strlen(cpp); data/esorex-3.13.2+dfsg/src/er_help.c:715:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n = 24 + (int) strlen(cpp); /* const chars before + after ... */ data/esorex-3.13.2+dfsg/src/er_help.c:731: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). n += (int) strlen(version_str); data/esorex-3.13.2+dfsg/src/er_help.c:869:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (c = 0; c < (int)(strlen(split_str)-1); c++) data/esorex-3.13.2+dfsg/src/er_help.c:969:15: [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. (void)strcpy( final_file_name, "/" ); data/esorex-3.13.2+dfsg/src/er_help.c:973:16: [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. (void) strcat( final_file_name, "/" ); data/esorex-3.13.2+dfsg/src/er_help.c:998:11: [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. (void)strcat( final_file_name, "/" ); data/esorex-3.13.2+dfsg/src/er_help.c:1013:15: [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. (void)strcat(command_str," "); data/esorex-3.13.2+dfsg/src/er_help.c:1034:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(final_file_name)>5 && data/esorex-3.13.2+dfsg/src/er_help.c:1035:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strncmp(final_file_name + strlen(final_file_name) - 5, ".json", 5) == 0 ) data/esorex-3.13.2+dfsg/src/er_json.c:129: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). if(strlen(filename) > 0) data/esorex-3.13.2+dfsg/src/er_json.c:131: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). if(strlen(category) > 0) data/esorex-3.13.2+dfsg/src/er_json.c:304: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). if(strlen(name) > 0) data/esorex-3.13.2+dfsg/src/er_json.c:417: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). if(strlen(display_name) > 0) data/esorex-3.13.2+dfsg/src/er_json.c:419: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). if(strlen(description) > 0) data/esorex-3.13.2+dfsg/src/er_json.c:421:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(recipe_name) > 0) //Description is not the last field data/esorex-3.13.2+dfsg/src/er_json.c:426: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). if(strlen(recipe_name) > 0) data/esorex-3.13.2+dfsg/src/er_json.c:457: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). escaped_str = cpl_malloc(2*strlen(str) * sizeof(char)+1); data/esorex-3.13.2+dfsg/src/er_json.c:458: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). for(i = 0, j = 0; i < strlen(str); i++) data/esorex-3.13.2+dfsg/src/er_json.c:2050:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncmp(ctx->current, nullstr, strlen(nullstr)) == 0) data/esorex-3.13.2+dfsg/src/er_json.c:2053:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ctx->current += strlen(nullstr); data/esorex-3.13.2+dfsg/src/er_json.c:2057:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(ctx->current) > 20) data/esorex-3.13.2+dfsg/src/er_json.c:2083:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncmp(ctx->current, truestr, strlen(truestr)) == 0) data/esorex-3.13.2+dfsg/src/er_json.c:2086:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ctx->current += strlen(truestr); data/esorex-3.13.2+dfsg/src/er_json.c:2088:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if (strncmp(ctx->current, falsestr, strlen(falsestr)) == 0) data/esorex-3.13.2+dfsg/src/er_json.c:2091:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ctx->current += strlen(falsestr); data/esorex-3.13.2+dfsg/src/er_json.c:2095:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(ctx->current) > 20) data/esorex-3.13.2+dfsg/src/er_json.c:2134:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncmp(ctx->current, str, strlen(str)) == 0) data/esorex-3.13.2+dfsg/src/er_json.c:2137: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). ctx->current += strlen(str); data/esorex-3.13.2+dfsg/src/er_json.c:2153:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(ctx->current) > 20) data/esorex-3.13.2+dfsg/src/er_json.c:2182:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buffer, ctx->current, 4); data/esorex-3.13.2+dfsg/src/er_json.c:2184:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(buffer) != 4) data/esorex-3.13.2+dfsg/src/er_json.c:2197:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(ctx->current) > 20) data/esorex-3.13.2+dfsg/src/er_json.c:2456:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if (strlen(ctx->current) > 20) data/esorex-3.13.2+dfsg/src/er_json.c:2481: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). if (strlen(ctx->current) > 20) data/esorex-3.13.2+dfsg/src/er_json.c:2588:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(ctx->current) > 20) data/esorex-3.13.2+dfsg/src/er_json.c:2664:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(location <= json + strlen(json) + 1); data/esorex-3.13.2+dfsg/src/er_json.c:2707: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). char * buffer = cpl_malloc(strlen(json) + 8); data/esorex-3.13.2+dfsg/src/er_json.c:3057:67: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. const er_json_node ** mismatch) data/esorex-3.13.2+dfsg/src/er_json.c:3063:12: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. assert(mismatch != NULL); data/esorex-3.13.2+dfsg/src/er_json.c:3133:70: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. const er_json_node ** mismatch) data/esorex-3.13.2+dfsg/src/er_json.c:3139:12: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. assert(mismatch != NULL); data/esorex-3.13.2+dfsg/src/er_json.c:3202:70: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. const er_json_node ** mismatch) data/esorex-3.13.2+dfsg/src/er_json.c:3209:12: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. assert(mismatch != NULL); data/esorex-3.13.2+dfsg/src/er_main.cpp:585:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (strncmp(s, key, strlen(key)) == 0)) { data/esorex-3.13.2+dfsg/src/er_main.cpp:597:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(value, v, sz); data/esorex-3.13.2+dfsg/src/er_main.cpp:641: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). size_t sz = strlen(GLOBAL_RC_NAME) + 2; data/esorex-3.13.2+dfsg/src/er_main.cpp:652:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _sz = strlen(_home) + strlen(GLOBAL_RC_DIR) + 1; data/esorex-3.13.2+dfsg/src/er_main.cpp:652: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). _sz = strlen(_home) + strlen(GLOBAL_RC_DIR) + 1; data/esorex-3.13.2+dfsg/src/er_main.cpp:653: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). sz += (_sz > strlen(SYSCONFDIR)) ? _sz : strlen(SYSCONFDIR); data/esorex-3.13.2+dfsg/src/er_main.cpp:653:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sz += (_sz > strlen(SYSCONFDIR)) ? _sz : strlen(SYSCONFDIR); data/esorex-3.13.2+dfsg/src/er_main.cpp:697: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 ((strlen(argv[iarg]) > 2) && data/esorex-3.13.2+dfsg/src/er_main.cpp:794: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 ((strlen(argv[iarg]) > 2) && data/esorex-3.13.2+dfsg/src/er_paf.c:771:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(pro_catg_regexp == NULL || strlen(pro_catg_regexp) < 2) data/esorex-3.13.2+dfsg/src/er_paf.c:777:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(new_item->pro_catg_regexp, data/esorex-3.13.2+dfsg/src/er_params.c:117:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncmp (input, ER_HELP_CFG_VER, strlen (ER_HELP_CFG_VER)) == 0) data/esorex-3.13.2+dfsg/src/er_params.c:126: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). for (i = 0; i < strlen (temp); i++) data/esorex-3.13.2+dfsg/src/er_params.c:215:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). value_length = strlen (kv_pair[1]); data/esorex-3.13.2+dfsg/src/er_params.c:381: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). err = (int) strlen(envvar); data/esorex-3.13.2+dfsg/src/er_params.c:453: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). strlen (cpl_parameter_get_alias (p, CPL_PARAMETER_MODE_CLI)); data/esorex-3.13.2+dfsg/src/er_params.c:455: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). strlength = strlen (cpl_parameter_get_name (p)); data/esorex-3.13.2+dfsg/src/er_params.c:560:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n = (int) strlen(argv[i]); data/esorex-3.13.2+dfsg/src/er_params.c:628:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if (strlen (optarg) == 0) data/esorex-3.13.2+dfsg/src/er_params.c:717:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n = (int) strlen(argv[optind]); data/esorex-3.13.2+dfsg/src/er_params.c:1245:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((val_output_dir != NULL) && (strlen (val_output_dir) > 0)) data/esorex-3.13.2+dfsg/src/er_params.c:1319: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). k = strlen(val_create)+1; data/esorex-3.13.2+dfsg/src/er_paramutils.c:166:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = (int) strlen(flag_prefix); data/esorex-3.13.2+dfsg/src/er_paramutils.c:167: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). ii = (int) strlen(keyword); data/esorex-3.13.2+dfsg/src/er_paramutils.c:173:16: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void) strncpy(mykeyword,keyword,(SIZE_X-6)); data/esorex-3.13.2+dfsg/src/er_paramutils.c:194: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). i = tab + (int) strlen(description) + 2; data/esorex-3.13.2+dfsg/src/er_paramutils.c:287:16: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void) strncpy(p_names+offset,name,PAR_LEN-1); /* save parameter name */ data/esorex-3.13.2+dfsg/src/er_paramutils.c:290: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). slen = strlen(*source) + 1; /* get memory for source */ data/esorex-3.13.2+dfsg/src/er_paramutils.c:365:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = (int) strlen(flag_prefix); data/esorex-3.13.2+dfsg/src/er_paramutils.c:366: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). ii = (int) strlen(keyword); data/esorex-3.13.2+dfsg/src/er_paramutils.c:387:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = (int) strlen(description); data/esorex-3.13.2+dfsg/src/er_paramutils.c:390:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ii = (int) strlen(str); data/esorex-3.13.2+dfsg/src/er_paramutils.c:396:12: [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. (void) strcat (str, ")"); data/esorex-3.13.2+dfsg/src/er_paramutils.c:484: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). i = (int) strlen(tmp_string); data/esorex-3.13.2+dfsg/src/er_plugin.c:297: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). mlen = (int)strlen(line); data/esorex-3.13.2+dfsg/src/er_plugin.c:353:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n = (int) strlen(name); data/esorex-3.13.2+dfsg/src/er_plugin.c:357:36: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void) strncpy(path,name,(size_t)n); data/esorex-3.13.2+dfsg/src/er_plugin.c:742:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ii = (int) strlen(output_name) - 1; data/esorex-3.13.2+dfsg/src/er_plugin.c:1097:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n = (int) strlen(cptr); data/esorex-3.13.2+dfsg/src/er_plugin.c:1098:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (cpp != NULL) n += (int)strlen(cpp); data/esorex-3.13.2+dfsg/src/er_plugin.c:1100:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n = n + ((int)strlen(cpp)) + data/esorex-3.13.2+dfsg/src/er_plugin.c:1101: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) strlen(GLOBAL_RC_DIR)) + ((int) strlen(GLOBAL_RC_EXTENSION)); data/esorex-3.13.2+dfsg/src/er_plugin.c:1101:56: [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) strlen(GLOBAL_RC_DIR)) + ((int) strlen(GLOBAL_RC_EXTENSION)); data/esorex-3.13.2+dfsg/src/er_plugin.c:1115:20: [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. (void) strcpy(plugin_conf_file_global, "/"); data/esorex-3.13.2+dfsg/src/er_plugin.c:1119:20: [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. (void) strcat(plugin_conf_file_global, "/"); data/esorex-3.13.2+dfsg/src/er_plugin.c:1122:16: [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. (void) strcat(plugin_conf_file_global, "/"); data/esorex-3.13.2+dfsg/src/er_plugin.c:1143:52: [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 ((val_string_tmp != (char *) 0) && (strlen (val_string_tmp) > 0)) data/esorex-3.13.2+dfsg/src/er_plugin.c:1248:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n = (int) strlen(cpp); data/esorex-3.13.2+dfsg/src/er_plugin.c:1259:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n = (int) strlen(cpp) + countr; data/esorex-3.13.2+dfsg/src/er_plugin.c:1273:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n = countr + (int) strlen(library_path); data/esorex-3.13.2+dfsg/src/er_plugin.c:1295:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). countr = (int) strlen(tmp_buf); data/esorex-3.13.2+dfsg/src/er_plugin.c:1298:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n = (int) strlen(cpp) + countr + 4; data/esorex-3.13.2+dfsg/src/er_plugin.c:1483:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(val_products_sof)>5 && data/esorex-3.13.2+dfsg/src/er_plugin.c:1484:52: [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). strncmp(val_products_sof + strlen(val_products_sof) - 5, data/esorex-3.13.2+dfsg/src/er_pluginlist.c:202: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). size_t len = strlen(filename); data/esorex-3.13.2+dfsg/src/er_pluginlist.c:203: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). size_t extlen = strlen(PYTHON_MODULE_FILE_EXT); data/esorex-3.13.2+dfsg/src/er_pluginlist.c:279: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). ldir = (int) strlen(dirname); data/esorex-3.13.2+dfsg/src/er_pluginlist.c:293: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). lentry = (int) strlen(entry->d_name); data/esorex-3.13.2+dfsg/src/er_pluginlist.c:548: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). m = (int) strlen(cptr); data/esorex-3.13.2+dfsg/src/er_pluginlist.c:704: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). return ((int)strlen(libpath)); data/esorex-3.13.2+dfsg/src/er_pluginlist.c:903: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). m = (int) strlen(cptr); data/esorex-3.13.2+dfsg/src/er_pluginlist.c:1054: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). m = (int) strlen(ccptr); data/esorex-3.13.2+dfsg/src/er_python.c:757:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes_read = read(python_output, data + total_read, data/esorex-3.13.2+dfsg/src/er_python.c:880: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). if (write_to_pipe(python_input, input, strlen(input)) != CPL_ERROR_NONE) data/esorex-3.13.2+dfsg/src/er_python.c:931:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(output) == 0) data/esorex-3.13.2+dfsg/src/er_stringarray.c:234:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cpt = cpl_malloc((size_t)((int)strlen(instring)+1)); data/esorex-3.13.2+dfsg/src/er_stringutils.c:86:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (s=0; s<(int)strlen(str); s++) data/esorex-3.13.2+dfsg/src/er_stringutils.c:90:57: [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). (void) strcpy (&output[MAX_MSG_LENGTH - 2 - strlen (warning)], warning); data/esorex-3.13.2+dfsg/src/er_stringutils.c:165:16: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void) strncpy(savptr,ss,blanks); /* isolate keyword name in savptr */ data/esorex-3.13.2+dfsg/src/er_stringutils.c:218: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). nn = strlen(ss)-m; /* replace original name by new no. of blanks */ data/esorex-3.13.2+dfsg/src/getopt.c:234: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/esorex-3.13.2+dfsg/src/getopt.c:237: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/esorex-3.13.2+dfsg/src/getopt.c:430: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/esorex-3.13.2+dfsg/src/getopt.c:658: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/esorex-3.13.2+dfsg/src/getopt.c:685: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/esorex-3.13.2+dfsg/src/getopt.c:717: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/esorex-3.13.2+dfsg/src/getopt.c:733: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/esorex-3.13.2+dfsg/src/getopt.c:738: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/esorex-3.13.2+dfsg/src/getopt.c:849: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/esorex-3.13.2+dfsg/src/getopt.c:872: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/esorex-3.13.2+dfsg/src/getopt.c:892: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/esorex-3.13.2+dfsg/src/getopt.c:906: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/esorex-3.13.2+dfsg/src/getopt.c:910: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/esorex-3.13.2+dfsg/src/tests/esorex_python-test.c:104: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). size_t bytes_to_write = strlen(script); data/esorex-3.13.2+dfsg/src/tests/esorex_python_errors3-test.c:162:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read(fildes, buf, read_nbyte_limit); data/esorex-3.13.2+dfsg/src/tests/esorex_python_errors3-test.c:166:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read(fildes, buf, nbyte); data/esorex-3.13.2+dfsg/src/tests/esorex_python_errors3-test.c:249:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define read _overloaded_read data/esorex-3.13.2+dfsg/src/tests/esorex_python_errors3-test.c:260:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #undef read data/esorex-3.13.2+dfsg/src/tests/esorex_python_errors3-test.c:326: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). size_t bytes_to_write = strlen(script); data/esorex-3.13.2+dfsg/src/tests/esorex_python_errors3-test.c:596:55: [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). cpl_test_eq_error(write_to_pipe(fildes[1], input, strlen(input)), data/esorex-3.13.2+dfsg/src/tests/esorex_python_errors3-test.c:614:55: [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). cpl_test_eq_error(write_to_pipe(fildes[1], input, strlen(input)), data/esorex-3.13.2+dfsg/src/tests/esorex_python_errors3-test.c:630:55: [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). cpl_test_eq_error(write_to_pipe(fildes[1], input, strlen(input)), data/esorex-3.13.2+dfsg/src/tests/esorex_python_errors3-test.c:647:55: [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). cpl_test_eq_error(write_to_pipe(fildes[1], input, strlen(input)), data/esorex-3.13.2+dfsg/src/tests/esorex_python_errors3-test.c:667:55: [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). cpl_test_eq_error(write_to_pipe(fildes[1], input, strlen(input)), data/esorex-3.13.2+dfsg/src/tests/esorex_python_errors3-test.c:687:53: [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). cpl_test_assert(write_to_pipe(fildes[1], input, strlen(input)) data/esorex-3.13.2+dfsg/src/tests/esorex_python_errors3-test.c:702:53: [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). cpl_test_assert(write_to_pipe(fildes[1], input, strlen(input)) data/esorex-3.13.2+dfsg/src/tests/esorex_python_errors3-test.c:718:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). write_to_pipe(fildes[1], hugeinput, strlen(hugeinput)); data/esorex-3.13.2+dfsg/src/tests/esorex_python_errors3-test.c:740:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). write_to_pipe(fildes[1], hugeinput, strlen(hugeinput)); data/esorex-3.13.2+dfsg/src/tests/esorex_python_internal-test.c:97: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). size_t bytes_to_write = strlen(script); data/esorex-3.13.2+dfsg/src/tests/esorex_python_recipe-test.c:125: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). size_t bytes_to_write = strlen(text); ANALYSIS SUMMARY: Hits = 478 Lines analyzed = 36039 in approximately 0.99 seconds (36545 lines/second) Physical Source Lines of Code (SLOC) = 23615 Hits@level = [0] 174 [1] 201 [2] 133 [3] 28 [4] 112 [5] 4 Hits@level+ = [0+] 652 [1+] 478 [2+] 277 [3+] 144 [4+] 116 [5+] 4 Hits/KSLOC@level+ = [0+] 27.6096 [1+] 20.2414 [2+] 11.7298 [3+] 6.09782 [4+] 4.91213 [5+] 0.169384 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.