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/autogen-5.19.96/columns/opts.h Examining data/autogen-5.19.96/columns/opts.c Examining data/autogen-5.19.96/columns/columns.c Examining data/autogen-5.19.96/getdefs/getdefs.h Examining data/autogen-5.19.96/getdefs/getdefs.c Examining data/autogen-5.19.96/getdefs/gdinit.c Examining data/autogen-5.19.96/getdefs/proto.h Examining data/autogen-5.19.96/getdefs/gdemit.c Examining data/autogen-5.19.96/agen5/funcFor.c Examining data/autogen-5.19.96/agen5/defDirect.c Examining data/autogen-5.19.96/agen5/funcDef.c Examining data/autogen-5.19.96/agen5/cgi-fsm.c Examining data/autogen-5.19.96/agen5/agUtils.c Examining data/autogen-5.19.96/agen5/expExtract.c Examining data/autogen-5.19.96/agen5/expGuile.c Examining data/autogen-5.19.96/agen5/tpProcess.c Examining data/autogen-5.19.96/agen5/scribble.h Examining data/autogen-5.19.96/agen5/functions.c Examining data/autogen-5.19.96/agen5/funcEval.c Examining data/autogen-5.19.96/agen5/expFormat.c Examining data/autogen-5.19.96/agen5/defParse-fsm.c Examining data/autogen-5.19.96/agen5/opts.h Examining data/autogen-5.19.96/agen5/expString.c Examining data/autogen-5.19.96/agen5/opts.c Examining data/autogen-5.19.96/agen5/directive.c Examining data/autogen-5.19.96/agen5/pseudo-fsm.h Examining data/autogen-5.19.96/agen5/cgi-fsm.h Examining data/autogen-5.19.96/agen5/defLoad.c Examining data/autogen-5.19.96/agen5/defLex.c Examining data/autogen-5.19.96/agen5/tpParse.c Examining data/autogen-5.19.96/agen5/autogen.h Examining data/autogen-5.19.96/agen5/expMake.c Examining data/autogen-5.19.96/agen5/proto.h Examining data/autogen-5.19.96/agen5/agCgi.c Examining data/autogen-5.19.96/agen5/expr.h Examining data/autogen-5.19.96/agen5/scribble.c Examining data/autogen-5.19.96/agen5/agInit.c Examining data/autogen-5.19.96/agen5/expPrint.c Examining data/autogen-5.19.96/agen5/defFind.c Examining data/autogen-5.19.96/agen5/expGperf.c Examining data/autogen-5.19.96/agen5/agDep.c Examining data/autogen-5.19.96/agen5/functions.h Examining data/autogen-5.19.96/agen5/ag-text.h Examining data/autogen-5.19.96/agen5/agShell.c Examining data/autogen-5.19.96/agen5/defParse-fsm.h Examining data/autogen-5.19.96/agen5/ag-text.c Examining data/autogen-5.19.96/agen5/tpLoad.c Examining data/autogen-5.19.96/agen5/funcIf.c Examining data/autogen-5.19.96/agen5/loadPseudo.c Examining data/autogen-5.19.96/agen5/directive.h Examining data/autogen-5.19.96/agen5/expOutput.c Examining data/autogen-5.19.96/agen5/fmemopen.c Examining data/autogen-5.19.96/agen5/autogen.c Examining data/autogen-5.19.96/agen5/expState.c Examining data/autogen-5.19.96/agen5/funcCase.c Examining data/autogen-5.19.96/autoopts/reset.c Examining data/autogen-5.19.96/autoopts/errno.in.h Examining data/autogen-5.19.96/autoopts/arg-nonnull.h Examining data/autogen-5.19.96/autoopts/genshell.h Examining data/autogen-5.19.96/autoopts/sig-handler.h Examining data/autogen-5.19.96/autoopts/ao-strs.h Examining data/autogen-5.19.96/autoopts/configfile.c Examining data/autogen-5.19.96/autoopts/option-xat-attribute.c Examining data/autogen-5.19.96/autoopts/signal.in.h Examining data/autogen-5.19.96/autoopts/limits.in.h Examining data/autogen-5.19.96/autoopts/text_mmap.c Examining data/autogen-5.19.96/autoopts/nested.c Examining data/autogen-5.19.96/autoopts/msvc-nothrow.h Examining data/autogen-5.19.96/autoopts/unistd.in.h Examining data/autogen-5.19.96/autoopts/option-xat-attribute.h Examining data/autogen-5.19.96/autoopts/project.h Examining data/autogen-5.19.96/autoopts/stdalign.in.h Examining data/autogen-5.19.96/autoopts/sys_select.in.h Examining data/autogen-5.19.96/autoopts/save-flags.h Examining data/autogen-5.19.96/autoopts/time.c Examining data/autogen-5.19.96/autoopts/autoopts.c Examining data/autogen-5.19.96/autoopts/dup2.c Examining data/autogen-5.19.96/autoopts/save.c Examining data/autogen-5.19.96/autoopts/fd-hook.h Examining data/autogen-5.19.96/autoopts/file.c Examining data/autogen-5.19.96/autoopts/sys_socket.in.h Examining data/autogen-5.19.96/autoopts/msvc-nothrow.c Examining data/autogen-5.19.96/autoopts/putshell.c Examining data/autogen-5.19.96/autoopts/alloca.in.h Examining data/autogen-5.19.96/autoopts/enum.c Examining data/autogen-5.19.96/autoopts/option-value-type.c Examining data/autogen-5.19.96/autoopts/msvc-inval.c Examining data/autogen-5.19.96/autoopts/option-value-type.h Examining data/autogen-5.19.96/autoopts/init.c Examining data/autogen-5.19.96/autoopts/alias.c Examining data/autogen-5.19.96/autoopts/stddef.in.h Examining data/autogen-5.19.96/autoopts/parse-duration.h Examining data/autogen-5.19.96/autoopts/check.c Examining data/autogen-5.19.96/autoopts/unlocked-io.h Examining data/autogen-5.19.96/autoopts/warn-on-use.h Examining data/autogen-5.19.96/autoopts/tokenize.c Examining data/autogen-5.19.96/autoopts/pgusage.c Examining data/autogen-5.19.96/autoopts/streqvcmp.c Examining data/autogen-5.19.96/autoopts/proto.h Examining data/autogen-5.19.96/autoopts/env.c Examining data/autogen-5.19.96/autoopts/stdbool.in.h Examining data/autogen-5.19.96/autoopts/alloca.c Examining data/autogen-5.19.96/autoopts/cook.c Examining data/autogen-5.19.96/autoopts/stack.c Examining data/autogen-5.19.96/autoopts/select.c Examining data/autogen-5.19.96/autoopts/numeric.c Examining data/autogen-5.19.96/autoopts/_Noreturn.h Examining data/autogen-5.19.96/autoopts/c++defs.h Examining data/autogen-5.19.96/autoopts/restore.c Examining data/autogen-5.19.96/autoopts/verify.h Examining data/autogen-5.19.96/autoopts/autoopts/usage-txt.h Examining data/autogen-5.19.96/autoopts/autoopts/options.h Examining data/autogen-5.19.96/autoopts/sort.c Examining data/autogen-5.19.96/autoopts/sigaction.c Examining data/autogen-5.19.96/autoopts/intprops.h Examining data/autogen-5.19.96/autoopts/stdint.in.h Examining data/autogen-5.19.96/autoopts/sigprocmask.c Examining data/autogen-5.19.96/autoopts/time.in.h Examining data/autogen-5.19.96/autoopts/sys_types.in.h Examining data/autogen-5.19.96/autoopts/parse-duration.c Examining data/autogen-5.19.96/autoopts/nanosleep.c Examining data/autogen-5.19.96/autoopts/sys_uio.in.h Examining data/autogen-5.19.96/autoopts/w32sock.h Examining data/autogen-5.19.96/autoopts/save-flags.c Examining data/autogen-5.19.96/autoopts/autoopts.h Examining data/autogen-5.19.96/autoopts/find.c Examining data/autogen-5.19.96/autoopts/load.c Examining data/autogen-5.19.96/autoopts/version.c Examining data/autogen-5.19.96/autoopts/strdup.c Examining data/autogen-5.19.96/autoopts/stdnoreturn.in.h Examining data/autogen-5.19.96/autoopts/raise.c Examining data/autogen-5.19.96/autoopts/ao-strs.c Examining data/autogen-5.19.96/autoopts/gettext.h Examining data/autogen-5.19.96/autoopts/sys_time.in.h Examining data/autogen-5.19.96/autoopts/stat-time.h Examining data/autogen-5.19.96/autoopts/boolean.c Examining data/autogen-5.19.96/autoopts/genshell.c Examining data/autogen-5.19.96/autoopts/ag-char-map.h Examining data/autogen-5.19.96/autoopts/usage.c Examining data/autogen-5.19.96/autoopts/msvc-inval.h Examining data/autogen-5.19.96/autoopts/makeshell.c Examining data/autogen-5.19.96/snprintfv/mem.h Examining data/autogen-5.19.96/snprintfv/printf.c Examining data/autogen-5.19.96/snprintfv/compat.h Examining data/autogen-5.19.96/snprintfv/filament.c Examining data/autogen-5.19.96/snprintfv/stream.c Examining data/autogen-5.19.96/snprintfv/format.c Examining data/autogen-5.19.96/snprintfv/filament.h Examining data/autogen-5.19.96/snprintfv/stream.h Examining data/autogen-5.19.96/snprintfv/printf.h Examining data/autogen-5.19.96/snprintfv/custom.c Examining data/autogen-5.19.96/snprintfv/mem.c Examining data/autogen-5.19.96/compat/compat.h Examining data/autogen-5.19.96/compat/strsignal.h Examining data/autogen-5.19.96/compat/windows-config.h Examining data/autogen-5.19.96/compat/strchr.c Examining data/autogen-5.19.96/compat/chmod.c Examining data/autogen-5.19.96/compat/snprintf.c Examining data/autogen-5.19.96/compat/strftime.c Examining data/autogen-5.19.96/compat/pathfind.c Examining data/autogen-5.19.96/compat/strsignal.c Examining data/autogen-5.19.96/xml2ag/fork.c Examining data/autogen-5.19.96/xml2ag/xml2ag.c Examining data/autogen-5.19.96/xml2ag/xmlopts.c FINAL RESULTS: data/autogen-5.19.96/agen5/agDep.c:324:5: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod(dep_file, fil_mode); data/autogen-5.19.96/agen5/expOutput.c:141:9: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod(cur_fpstack->stk_fname, f_mode); data/autogen-5.19.96/agen5/expOutput.c:178:13: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod(fname, m); data/autogen-5.19.96/autoopts/unistd.in.h:315:18: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_WARN_ON_USE (chown, "chdir is not always in <unistd.h> - " data/autogen-5.19.96/autoopts/unistd.in.h:332:11: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. # undef chown data/autogen-5.19.96/autoopts/unistd.in.h:333:12: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. # define chown rpl_chown data/autogen-5.19.96/autoopts/unistd.in.h:335:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_FUNCDECL_RPL (chown, int, (const char *file, uid_t uid, gid_t gid) data/autogen-5.19.96/autoopts/unistd.in.h:337:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_CXXALIAS_RPL (chown, int, (const char *file, uid_t uid, gid_t gid)); data/autogen-5.19.96/autoopts/unistd.in.h:340:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_FUNCDECL_SYS (chown, int, (const char *file, uid_t uid, gid_t gid) data/autogen-5.19.96/autoopts/unistd.in.h:343:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_CXXALIAS_SYS (chown, int, (const char *file, uid_t uid, gid_t gid)); data/autogen-5.19.96/autoopts/unistd.in.h:345:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_CXXALIASWARN (chown); data/autogen-5.19.96/autoopts/unistd.in.h:347:9: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. # undef chown data/autogen-5.19.96/autoopts/unistd.in.h:349:18: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_WARN_ON_USE (chown, "chown fails to follow symlinks on some systems and " data/autogen-5.19.96/autoopts/unistd.in.h:1520:12: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. # define readlink rpl_readlink data/autogen-5.19.96/autoopts/unistd.in.h:1522:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_FUNCDECL_RPL (readlink, ssize_t, data/autogen-5.19.96/autoopts/unistd.in.h:1526:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_CXXALIAS_RPL (readlink, ssize_t, data/autogen-5.19.96/autoopts/unistd.in.h:1531:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_FUNCDECL_SYS (readlink, ssize_t, data/autogen-5.19.96/autoopts/unistd.in.h:1536:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_CXXALIAS_SYS (readlink, ssize_t, data/autogen-5.19.96/autoopts/unistd.in.h:1540:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_CXXALIASWARN (readlink); data/autogen-5.19.96/autoopts/unistd.in.h:1542:9: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. # undef readlink data/autogen-5.19.96/autoopts/unistd.in.h:1544:18: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_WARN_ON_USE (readlink, "readlink is unportable - " data/autogen-5.19.96/compat/chmod.c:5:12: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. inline int chmod(char const * path, mode_t mode) { data/autogen-5.19.96/getdefs/getdefs.c:1076:9: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. if (chmod(OPT_ARG(ORDERING), 0666) == 0) { data/autogen-5.19.96/getdefs/getdefs.c:1094:5: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod(OPT_ARG(ORDERING), 0444); data/autogen-5.19.96/getdefs/getdefs.c:1155:9: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod(OPT_ARG(OUTPUT), S_IRUSR|S_IRGRP|S_IROTH); data/autogen-5.19.96/agen5/agDep.c:80:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_ADD_SRC_FILE_FMT, p->fname); data/autogen-5.19.96/agen5/agDep.c:107:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_RM_SRC_FILE_FMT, p->fname); data/autogen-5.19.96/agen5/agDep.c:153:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_ADD_TARG_FILE_FMT, p->fname); data/autogen-5.19.96/agen5/agDep.c:178:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_RM_TARG_FILE_FMT, p->fname); data/autogen-5.19.96/agen5/agDep.c:236:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(dep_fp, START_DEP_FILE_FMT, autogenOptions.pzProgPath); data/autogen-5.19.96/agen5/agDep.c:244:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(dep_fp, START_DEP_ARG_FMT, arg); data/autogen-5.19.96/agen5/agDep.c:341:17: [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(dep_target, R_OK) != 0) data/autogen-5.19.96/agen5/agDep.c:368:17: [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(p->fname, R_OK) != 0) data/autogen-5.19.96/agen5/agDep.c:380:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(dep_fp, DEP_List, p->fname); data/autogen-5.19.96/agen5/agDep.c:405:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(dep_fp, DEP_TList, pz_targ_base); data/autogen-5.19.96/agen5/agDep.c:408:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(dep_fp, DEP_SList, pz_targ_base); data/autogen-5.19.96/agen5/agDep.c:412:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(dep_fp, DEP_FILE_WRAP_FMT, pz_targ_base, dep_target); data/autogen-5.19.96/agen5/agDep.c:431:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(dep_fp, DEP_FILE_CLEAN_FMT, dep_target, pz_targ_base, p); data/autogen-5.19.96/agen5/agDep.c:454:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(dep_fp, incfmt, dep_target, pt, pz); data/autogen-5.19.96/agen5/agInit.c:131:5: [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(res, str); data/autogen-5.19.96/agen5/agInit.c:252:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_ADD_TO_ENV_FMT, env_name); data/autogen-5.19.96/agen5/agInit.c:324:17: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(z + sz, ADD_ENV_VARS_SUFFIX_FMT+2); data/autogen-5.19.96/agen5/agInit.c:336:13: [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. if (snprintf(z+2, SCRIBBLE_SIZE, ADD_ENV_VARS_SUFFIX_FMT, unm.sysname) data/autogen-5.19.96/agen5/agInit.c:340:13: [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. if (snprintf(z+2, SCRIBBLE_SIZE, ADD_ENV_VARS_SUFFIX_FMT, unm.machine) data/autogen-5.19.96/agen5/agInit.c:344:13: [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. if (snprintf(z+2, SCRIBBLE_SIZE, ADD_ENV_VARS_SUFFIX_FMT, unm.nodename) data/autogen-5.19.96/agen5/agShell.c:55:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((char *)cur_dir, pz); data/autogen-5.19.96/agen5/agShell.c:207:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, SHELL_DIE_FMT, strsignal(signo), signo); data/autogen-5.19.96/agen5/agShell.c:214:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, SHELL_CMD_FMT, cur_dir, pz, SH_DONE_MARK, log_ct); data/autogen-5.19.96/agen5/agShell.c:244:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(serv_pair.fp_write, SHELL_CMD_FMT, cur_dir, last_cmd, data/autogen-5.19.96/agen5/agShell.c:248:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, LOG_SEP_FMT, log_ct); data/autogen-5.19.96/agen5/agShell.c:249:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, SHELL_CMD_FMT, cur_dir, last_cmd, data/autogen-5.19.96/agen5/agShell.c:255:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, CMD_FAIL_FMT, cmd); data/autogen-5.19.96/agen5/agShell.c:271:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_TRAP_STATE_FMT, pz); data/autogen-5.19.96/agen5/agShell.c:290:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(pzc, SHELL_INIT_STR, (unsigned int)getpid(), data/autogen-5.19.96/agen5/agShell.c:404:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_SHELL_PID_FMT, (unsigned int)ch_pid); data/autogen-5.19.96/agen5/agShell.c:443:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_SHELL_STARTS_FMT, shell); data/autogen-5.19.96/agen5/agShell.c:448:5: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp((char *)shell, (char **)arg_v); data/autogen-5.19.96/agen5/agShell.c:547:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, SHELL_READ_ERR_FMT, errno, strerror(errno)); data/autogen-5.19.96/agen5/agShell.c:593:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_SHELL_RESULT_MSG, data/autogen-5.19.96/agen5/agShell.c:656:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, CMD_FAIL_FMT, cmd); data/autogen-5.19.96/agen5/agShell.c:663:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, CMD_FAIL_FMT, cmd); data/autogen-5.19.96/agen5/agUtils.c:38:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, FS_ERR_WARNING, errno, strerror(errno), op, fname); data/autogen-5.19.96/agen5/agUtils.c:57: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(z, sizeof(z), APRF_ALLOCATE_FAIL, pzFmt); data/autogen-5.19.96/agen5/agUtils.c:126: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(p, pz); data/autogen-5.19.96/agen5/agUtils.c:127: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(p+siz-3, DFT_ENV_VAL); data/autogen-5.19.96/agen5/agUtils.c:158:20: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. trace_fp = popen(++fname, "w"); data/autogen-5.19.96/agen5/agUtils.c:175:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_START_FMT, (unsigned int)getpid(), *av); data/autogen-5.19.96/agen5/agUtils.c:177:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_AG_ARG_FMT, *av); data/autogen-5.19.96/agen5/agUtils.c:178:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_START_GUILE, libguile_ver); data/autogen-5.19.96/agen5/autogen.c:124:13: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(argv[0], argv); data/autogen-5.19.96/agen5/autogen.c:156:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, EXIT_CLEANUP_MULLIGAN); data/autogen-5.19.96/agen5/autogen.c:170:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, EXIT_CLEANUP_DONE_FMT, data/autogen-5.19.96/agen5/autogen.c:208:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, AG_NEVER_STARTED, sig, strsignal(sig)); data/autogen-5.19.96/agen5/autogen.c:217:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, AG_SIG_ABORT_FMT, sig, strsignal(sig), data/autogen-5.19.96/agen5/autogen.c:258:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, AG_ABORT_LOC_FMT, pzFl, line, pzFn, fnCd); data/autogen-5.19.96/agen5/autogen.c:338:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, DONE_CHECK_REDONE); data/autogen-5.19.96/agen5/autogen.c:360:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, SCHEME_EVAL_ERR_FMT, current_tpl->td_file, data/autogen-5.19.96/agen5/autogen.c:381:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, AG_ABEND_STATE_FMT, state_names[processing_state]); data/autogen-5.19.96/agen5/autogen.c:407:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, GUILE_CMD_FAIL_FMT, last_scm_cmd); data/autogen-5.19.96/agen5/autogen.c:440:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, DONE_CHECK_DONE); data/autogen-5.19.96/agen5/autogen.c:473:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ERROR_IN_TPL_FMT, current_tpl->td_file, l_no); data/autogen-5.19.96/agen5/defDirect.c:344:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, FIND_DIRECT_UNKNOWN, cctx->scx_fname, data/autogen-5.19.96/agen5/defDirect.c:911:5: [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(pCtx->scx_scan, pzText); data/autogen-5.19.96/agen5/defFind.c:209:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, BAD_NAME_FMT, pzD, data/autogen-5.19.96/agen5/defFind.c:721:21: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. FILE * fp = popen(USED_DEFINES_FMT, "w"); data/autogen-5.19.96/agen5/defFind.c:727:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, USED_DEFINES_LINE_FMT, hn->hn_str); data/autogen-5.19.96/agen5/defLex.c:473:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(pzText, pzEnd); data/autogen-5.19.96/agen5/defLoad.c:113:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, PRINT_DEF_SHOW_FMT, data/autogen-5.19.96/agen5/defLoad.c:384:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_DEF_LOAD); data/autogen-5.19.96/agen5/expExtract.c:162:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(pzOut, LINE_CONCAT3_FMT+3, start, end); data/autogen-5.19.96/agen5/expExtract.c:168:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(pzOut, LINE_CONCAT3_FMT, start, pzDef, end); data/autogen-5.19.96/agen5/expFormat.c:275:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, WARN_FMT, msg); data/autogen-5.19.96/agen5/expFormat.c:475:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(p, EXP_FMT_BAD_LIC); data/autogen-5.19.96/agen5/expFormat.c:969:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(pzOut, prefx); data/autogen-5.19.96/agen5/expFormat.c:979:17: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(pzOut, prefx); data/autogen-5.19.96/agen5/expGuile.c:89:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_EVAL_STRING, pzFile, line, pzExpr); data/autogen-5.19.96/agen5/expOutput.c:173:12: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if ( (access(fname, W_OK) != 0) data/autogen-5.19.96/agen5/expOutput.c:192:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_OPEN_OUT, __func__, fname, mode); data/autogen-5.19.96/agen5/expOutput.c:217:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_OUT_DELETE, cur_fpstack->stk_fname); data/autogen-5.19.96/agen5/expOutput.c:249:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_MOVE_FMT, __func__, data/autogen-5.19.96/agen5/expOutput.c:296:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_POP_FMT, __func__, cur_fpstack->stk_fname, data/autogen-5.19.96/agen5/expOutput.c:393:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_SUSPEND, __func__, cur_fpstack->stk_fname, data/autogen-5.19.96/agen5/expOutput.c:427:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_RESUME, __func__, data/autogen-5.19.96/agen5/expOutput.c:582:13: [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. if (snprintf(cmdbf, bfsz, SET_TMP_DIR_CMD, tmpdir) >= (int)bfsz) data/autogen-5.19.96/agen5/expOutput.c:646:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_OUT_PUSH_NEW, __func__, pzNewFile); data/autogen-5.19.96/agen5/expOutput.c:729:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_OUT_SWITCH, data/autogen-5.19.96/agen5/expOutput.c:934:13: [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. if (snprintf(p, sz, MK_HEAD_GUARD_SCM, opz, gpz) >= (int)sz) data/autogen-5.19.96/agen5/expOutput.c:938:13: [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. if (snprintf(p, sz, MK_HEAD_GUARD_GUARD, gpz) >= (int)sz) data/autogen-5.19.96/agen5/expPrint.c:80:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, SAFE_PRINTF_BAD_FMT, ag_pname, data/autogen-5.19.96/agen5/expPrint.c:279:17: [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. scan += snprintf(scan, str_size - (scan - res), data/autogen-5.19.96/agen5/expPrint.c:283:13: [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. scan += snprintf(scan, str_size - (scan - res), HIDE_EMAIL_END_FMT, disp); data/autogen-5.19.96/agen5/expState.c:105:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_FIND_ENT, name); data/autogen-5.19.96/agen5/expState.c:275:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_VER_CONVERT, (long long)val, pzStr); data/autogen-5.19.96/agen5/expState.c:408:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_MATCH_VAL, ag_scm2zchars(test, "test val")); data/autogen-5.19.96/agen5/expState.c:436:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, GOT_NOTHING_FMT, vnm, data/autogen-5.19.96/agen5/expState.c:442:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, GET_NOTHING_FMT, current_tpl->td_file, data/autogen-5.19.96/agen5/expString.c:195:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(dest, src_str); data/autogen-5.19.96/agen5/funcCase.c:79:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, BAD_RE_FMT, rerr, erbf, pat); data/autogen-5.19.96/agen5/funcCase.c:716:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_SEL_MATCH_FULL, data/autogen-5.19.96/agen5/funcCase.c:958:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_CASE_FAIL, samp_text); data/autogen-5.19.96/agen5/funcCase.c:961:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TAB_FILE_LINE_FMT, data/autogen-5.19.96/agen5/funcCase.c:980:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_CASE_MATCHED, data/autogen-5.19.96/agen5/funcCase.c:986:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TAB_FILE_LINE_FMT, data/autogen-5.19.96/agen5/funcCase.c:994:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_CASE_NOMATCH, data/autogen-5.19.96/agen5/funcDef.c:116:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, NAMED_VALUES_WHERE, ct, pzScan); data/autogen-5.19.96/agen5/funcDef.c:161:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(pDL->pzExpr+1, pz); data/autogen-5.19.96/agen5/funcDef.c:409:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, FN_DEBUG, pz, for_index); data/autogen-5.19.96/agen5/funcDef.c:442:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, FN_DEBUG_GRAPHIC, dummy); data/autogen-5.19.96/agen5/funcDef.c:493:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_BUILD_DEFS, data/autogen-5.19.96/agen5/funcDef.c:504:17: [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(def_list->de.de_val.dvu_text, (size_t)16, data/autogen-5.19.96/agen5/funcDef.c:514:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_BUILD_DEFS, data/autogen-5.19.96/agen5/funcDef.c:612:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TPL_INVOKED, tpl->td_name, defCt); data/autogen-5.19.96/agen5/funcDef.c:614:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TAB_FILE_LINE_FMT, data/autogen-5.19.96/agen5/funcDef.c:778:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_MACRO_DEF, ntpl->td_name, ntpl->td_file); data/autogen-5.19.96/agen5/funcDef.c:782:5: [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(ntpl->td_start_mac, base_tpl->td_start_mac); data/autogen-5.19.96/agen5/funcDef.c:783:5: [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(ntpl->td_end_mac, base_tpl->td_end_mac); data/autogen-5.19.96/agen5/funcDef.c:873:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, zSum, new_tpl->td_mac_ct, new_tpl->td_file, data/autogen-5.19.96/agen5/funcEval.c:59: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(z, sizeof(z), ULONG_FMT, AG_SCM_TO_ULONG(s)); break; data/autogen-5.19.96/agen5/funcEval.c:66: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(z, sizeof(z), RESOLVE_SCM_PROC, data/autogen-5.19.96/agen5/funcEval.c:109:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TPL_WARN_FMT, tpl->td_file, mac->md_line, msg); data/autogen-5.19.96/agen5/funcEval.c:330:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, SCM_ERROR_FMT, current_tpl->td_name, cur_macro->md_line, data/autogen-5.19.96/agen5/funcFor.c:354:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_FOR_STEP_TOO_FAR, data/autogen-5.19.96/agen5/funcFor.c:356:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_FOR_BY_STEP, data/autogen-5.19.96/agen5/funcFor.c:409:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, FOR_ITERATION_FMT, "by-step", data/autogen-5.19.96/agen5/funcFor.c:485:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, FOR_ITERATION_FMT, "each", data/autogen-5.19.96/agen5/funcFor.c:544:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(pz, pzName); data/autogen-5.19.96/agen5/funcFor.c:732:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_FN_FOR_SKIP, data/autogen-5.19.96/agen5/funcFor.c:736:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TAB_FILE_LINE_FMT, data/autogen-5.19.96/agen5/funcFor.c:748:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_FN_FOR, tpl->td_text + mac->md_name_off, data/autogen-5.19.96/agen5/funcFor.c:772:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_FN_FOR_REPEAT, for_state->for_name, lp_ct); data/autogen-5.19.96/agen5/funcFor.c:775:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TAB_FILE_LINE_FMT, tpl->td_file, mac->md_line); data/autogen-5.19.96/agen5/funcIf.c:151:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_FN_IF, (pMac->md_code == FTYP_ELSE) data/autogen-5.19.96/agen5/funcIf.c:156:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TAB_FILE_LINE_FMT, data/autogen-5.19.96/agen5/funcIf.c:167:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_FN_IF_NOTHING, data/autogen-5.19.96/agen5/funcIf.c:171:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TAB_FILE_LINE_FMT, data/autogen-5.19.96/agen5/funcIf.c:222:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_FN_WHILE_START, data/autogen-5.19.96/agen5/funcIf.c:240:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_FN_WHILE_END, ct); data/autogen-5.19.96/agen5/funcIf.c:243:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TAB_FILE_LINE_FMT, pT->td_file, pMac->md_line); data/autogen-5.19.96/agen5/funcIf.c:486:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, SET_WRITE_WARN, current_tpl->td_file, data/autogen-5.19.96/agen5/functions.c:225:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_FN_INC_TPL, new_tpl->td_file); data/autogen-5.19.96/agen5/functions.c:227:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_FN_INC_LINE, current_tpl->td_file, data/autogen-5.19.96/agen5/functions.c:265:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_FN_REMAPPED, TRACE_FN_REMAP_INVOKE, data/autogen-5.19.96/agen5/functions.c:274:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_FN_REMAPPED, TRACE_FN_REMAP_EXPR, data/autogen-5.19.96/agen5/functions.c:276:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_FN_REMAP_BASE, data/autogen-5.19.96/agen5/functions.c:307:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_UNKNOWN_FMT, pMac->md_res, pzExpr); data/autogen-5.19.96/agen5/loadPseudo.c:167:17: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(pOS->os_sfx + sfx_len, pzSfxFmt); data/autogen-5.19.96/agen5/loadPseudo.c:213:13: [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(nmbuf, X_OK) == 0) { data/autogen-5.19.96/agen5/loadPseudo.c:363:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_COPY_MARK, marker - ct); data/autogen-5.19.96/agen5/opts.c:1448:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/autogen-5.19.96/agen5/opts.c:1483:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/autogen-5.19.96/agen5/pseudo-fsm.h:213:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf( stderr, fmt, st, PM_STATE_NAME(st), evt, PM_EVT_NAME(evt)); data/autogen-5.19.96/agen5/tpLoad.c:57:13: [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. return (access(fname, R_OK) == 0) ? true : false; data/autogen-5.19.96/agen5/tpLoad.c:79:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(res, FIND_FILE_CURDIR); data/autogen-5.19.96/agen5/tpLoad.c:139:33: [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. fmt_len = (unsigned)snprintf( data/autogen-5.19.96/agen5/tpLoad.c:159:17: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(pzEnd, *(sfxl++)); /* must fit */ data/autogen-5.19.96/agen5/tpLoad.c:362:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, zSum, tpl->td_mac_ct, fname, tpl->td_size); data/autogen-5.19.96/agen5/tpLoad.c:407:5: [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(res->td_start_mac, st_mac_mark); /* must fit */ data/autogen-5.19.96/agen5/tpLoad.c:408:5: [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(res->td_end_mac, end_mac_mark); /* must fit */ data/autogen-5.19.96/agen5/tpParse.c:171:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, FIND_MAC_END_EMPTY, data/autogen-5.19.96/agen5/tpParse.c:219:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, tpl_def_fmt, ag_fun_names[ FTYP_TEXT ], FTYP_TEXT, data/autogen-5.19.96/agen5/tpParse.c:314:5: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(fmt, sizeof(fmt), fmt_fmt, tpl_nest_lvl); data/autogen-5.19.96/agen5/tpParse.c:315:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, fmt, ""); data/autogen-5.19.96/agen5/tpParse.c:330:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, zTUndef, ag_fun_names[ ft ], ft, ln); data/autogen-5.19.96/agen5/tpParse.c:338:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, tpl_def_fmt, ag_fun_names[ft], mac->md_code, data/autogen-5.19.96/agen5/tpParse.c:366:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, zTUndef, ag_fun_names[m->md_code], data/autogen-5.19.96/agen5/tpProcess.c:74:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, TRACE_MACRO_FMT, ag_fun_names[fc], mac->md_code, data/autogen-5.19.96/agen5/tpProcess.c:109:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stdout, DO_STDOUT_TPL_ABANDONED, oops_pfx); data/autogen-5.19.96/agen5/tpProcess.c:211:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, PROC_TPL_START, os->os_sfx); data/autogen-5.19.96/agen5/tpProcess.c:249:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, PROC_TPL_BOGUS_RET, oops_pfx); data/autogen-5.19.96/agen5/tpProcess.c:327:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(trace_fp, OUT_CLOSE_TRACE_WRAP, __func__, data/autogen-5.19.96/autoopts/alias.c:40:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ztoo_often_fmt, opts->pzProgName); data/autogen-5.19.96/autoopts/alias.c:43:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zat_most, od->optMaxCt, od->pz_Name, eqv); data/autogen-5.19.96/autoopts/alias.c:45:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zonly_one, od->pz_Name, eqv); data/autogen-5.19.96/autoopts/autoopts.c:46:11: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define vsnprintf option_vsnprintf data/autogen-5.19.96/autoopts/autoopts.c:47:11: [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. # define snprintf option_snprintf data/autogen-5.19.96/autoopts/autoopts.c:62:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zalloc_fail, (int)sz); data/autogen-5.19.96/autoopts/autoopts.c:73:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zrealloc_fail, (int)sz, p); data/autogen-5.19.96/autoopts/autoopts.c:84:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zalloc_fail, (int)strlen(str)); data/autogen-5.19.96/autoopts/autoopts.c:145:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zmultiway_bug, eqv_od->pz_Name, od->pz_Name, data/autogen-5.19.96/autoopts/autoopts.c:220:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zNotCmdOpt, o_st->pOD->pz_Name); data/autogen-5.19.96/autoopts/check.c:45:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zneed_fmt, pOpts->pzProgName, data/autogen-5.19.96/autoopts/check.c:59:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zconflict_fmt, pOpts->pzProgName, data/autogen-5.19.96/autoopts/check.c:93:10: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zneed_more, pOpts->pzProgName, pOD->pz_Name, data/autogen-5.19.96/autoopts/check.c:95:10: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. else fprintf(stderr, zneed_one, pOpts->pzProgName, pOD->pz_Name); data/autogen-5.19.96/autoopts/check.c:152:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zNoArgs, pOpts->pzProgName); data/autogen-5.19.96/autoopts/check.c:162:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zargs_must, pOpts->pzProgName); data/autogen-5.19.96/autoopts/enum.c:49:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, pz_enum_err_fmt, pOpts->pzProgName, data/autogen-5.19.96/autoopts/enum.c:52:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, zValidKeys, pOD->pz_Name); data/autogen-5.19.96/autoopts/enum.c:87:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, ENUM_ERR_LINE, *(paz_names++)); data/autogen-5.19.96/autoopts/enum.c:110:13: [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. if (snprintf(fmt, 16, ENUM_ERR_WIDTH, (int)max_len) >= 16) data/autogen-5.19.96/autoopts/enum.c:124:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, NLSTR_SPACE_FMT, *(paz_names++)); data/autogen-5.19.96/autoopts/enum.c:129:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, fmt, *(paz_names++) ); data/autogen-5.19.96/autoopts/enum.c:131:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, NLSTR_FMT, *paz_names); data/autogen-5.19.96/autoopts/enum.c:135:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, zIntRange, hidden, name_ct - 1 + hidden); data/autogen-5.19.96/autoopts/enum.c:142:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, zLowerBits, name_ct); data/autogen-5.19.96/autoopts/enum.c:145:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, zIntRange, hidden, name_ct - 1 + hidden); data/autogen-5.19.96/autoopts/enum.c:283:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(INVALID_FMT, ix); data/autogen-5.19.96/autoopts/find.c:85:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zambig_file, hyph, pOD->pz_Name); data/autogen-5.19.96/autoopts/find.c:90:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zambig_file, hyph, pOD->pz_DisableName); data/autogen-5.19.96/autoopts/find.c:188:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zDisabledErr, opts->pzProgName, pOD->pz_Name); data/autogen-5.19.96/autoopts/find.c:190:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, SET_OFF_FMT, pOD->pzText); data/autogen-5.19.96/autoopts/find.c:242:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zIllOptStr, opts->pzProgPath, name); data/autogen-5.19.96/autoopts/find.c:264:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zambig_opt_fmt, opts->pzProgPath, name, match_ct); data/autogen-5.19.96/autoopts/find.c:306:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zIllVendOptStr, pOpts->pzProgName, vopt_str); data/autogen-5.19.96/autoopts/find.c:356:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zInvalOptName, opts->pzProgName, opt_name); data/autogen-5.19.96/autoopts/find.c:401:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zDisabledErr, pOpts->pzProgPath, pRes->pz_Name); data/autogen-5.19.96/autoopts/find.c:403:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, SET_OFF_FMT, pRes->pzText); data/autogen-5.19.96/autoopts/find.c:440:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zIllOptChr, pOpts->pzProgPath, optValue); data/autogen-5.19.96/autoopts/find.c:498:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zMisArg, opts->pzProgPath, o_st->pOD->pz_Name); data/autogen-5.19.96/autoopts/find.c:603:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zNoArg, pOpts->pzProgPath, o_st->pOD->pz_Name); data/autogen-5.19.96/autoopts/find.c:741:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zIllOptStr, opts->pzProgPath, opts->pzCurOpt-2); data/autogen-5.19.96/autoopts/init.c:80:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zwrong_ver, pname, NUM_TO_VER(opts->structVersion)); data/autogen-5.19.96/autoopts/makeshell.c:49:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zao_bug_msg, msg); data/autogen-5.19.96/autoopts/makeshell.c:56:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zfserr_fmt, prog, errno, strerror(errno), data/autogen-5.19.96/autoopts/makeshell.c:114:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LOPT_ARG_FMT, opts->pzPROGNAME); data/autogen-5.19.96/autoopts/makeshell.c:124:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LOPT_ARG_FMT, opts->pzPROGNAME); data/autogen-5.19.96/autoopts/makeshell.c:133:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(OPT_ARG_FMT, opts->pzPROGNAME); data/autogen-5.19.96/autoopts/makeshell.c:145:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LOPT_ARG_FMT, opts->pzPROGNAME); data/autogen-5.19.96/autoopts/makeshell.c:151:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(OPT_ARG_FMT, opts->pzPROGNAME); data/autogen-5.19.96/autoopts/makeshell.c:162:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(SHOW_PROG_ENV, opts->pzPROGNAME); data/autogen-5.19.96/autoopts/makeshell.c:197:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(SET_TEXT_FMT, prog, var); data/autogen-5.19.96/autoopts/makeshell.c:260:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(SET_NO_TEXT_FMT, opts->pzPROGNAME, ttnames[which]); data/autogen-5.19.96/autoopts/makeshell.c:348:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(SHELL_MAGIC, shell_prog); data/autogen-5.19.96/autoopts/makeshell.c:350:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PREAMBLE_FMT, START_MARK, out_nm, tm_nm_buf); data/autogen-5.19.96/autoopts/makeshell.c:353:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(END_PRE_FMT, opts->pzPROGNAME); data/autogen-5.19.96/autoopts/makeshell.c:403:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(FINISH_LOOP, opts->pzPROGNAME); data/autogen-5.19.96/autoopts/makeshell.c:424:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(fmt, opts->pzPROGNAME, od->pz_NAME, min); data/autogen-5.19.96/autoopts/makeshell.c:491:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(fmt, opts->pzPROGNAME, od->pz_NAME, def_val); data/autogen-5.19.96/autoopts/makeshell.c:499:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(ECHO_N_EXIT, opts->pzPROGNAME, VER_STR); data/autogen-5.19.96/autoopts/makeshell.c:502:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PAGE_USAGE_TEXT, opts->pzPROGNAME); data/autogen-5.19.96/autoopts/makeshell.c:505:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LVL3_CMD, NO_LOAD_WARN); data/autogen-5.19.96/autoopts/makeshell.c:506:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LVL3_CMD, YES_NEED_OPT_ARG); data/autogen-5.19.96/autoopts/makeshell.c:511:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LVL3_CMD, NO_SAVE_OPTS); data/autogen-5.19.96/autoopts/makeshell.c:512:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LVL3_CMD, OK_NEED_OPT_ARG); data/autogen-5.19.96/autoopts/makeshell.c:514:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(ECHO_N_EXIT, opts->pzPROGNAME, LONG_USE_STR); data/autogen-5.19.96/autoopts/makeshell.c:518:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(SGL_ARG_FMT, opts->pzPROGNAME, od->pz_NAME); data/autogen-5.19.96/autoopts/makeshell.c:521:17: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CHK_MAX_COUNT, opts->pzPROGNAME, data/autogen-5.19.96/autoopts/makeshell.c:524:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(MULTI_ARG_FMT, opts->pzPROGNAME, od->pz_NAME); data/autogen-5.19.96/autoopts/makeshell.c:531:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(SET_MULTI_ARG, opts->pzPROGNAME, od->pz_NAME); data/autogen-5.19.96/autoopts/makeshell.c:532:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LVL3_CMD, NO_ARG_NEEDED); data/autogen-5.19.96/autoopts/makeshell.c:535:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(SET_MULTI_ARG, opts->pzPROGNAME, od->pz_NAME); data/autogen-5.19.96/autoopts/makeshell.c:536:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LVL3_CMD, OK_NEED_OPT_ARG); data/autogen-5.19.96/autoopts/makeshell.c:539:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LVL3_CMD, YES_NEED_OPT_ARG); data/autogen-5.19.96/autoopts/makeshell.c:549:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LVL3_CMD, NO_SUPPRESS_LOAD); data/autogen-5.19.96/autoopts/makeshell.c:552:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(NO_SGL_ARG_FMT, opts->pzPROGNAME, data/autogen-5.19.96/autoopts/makeshell.c:555:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(NO_MULTI_ARG_FMT, opts->pzPROGNAME, data/autogen-5.19.96/autoopts/makeshell.c:558:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LVL3_CMD, NO_ARG_NEEDED); data/autogen-5.19.96/autoopts/makeshell.c:581:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(zOptionFlag, od->optValue); data/autogen-5.19.96/autoopts/makeshell.c:584:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(UNK_OPT_FMT, FLAG_STR, opts->pzPROGNAME); data/autogen-5.19.96/autoopts/makeshell.c:656:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(zOptionPartName, name_bf); data/autogen-5.19.96/autoopts/makeshell.c:666:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(zOptionFullName, name); data/autogen-5.19.96/autoopts/makeshell.c:704:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(UNK_OPT_FMT, OPTION_STR, opts->pzPROGNAME); data/autogen-5.19.96/autoopts/makeshell.c:882:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, zGenshell, optionParseShellOptions->pzProgName); data/autogen-5.19.96/autoopts/nested.c:895:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, XML_HEX_BYTE_FMT, (ch & 0xFF)); data/autogen-5.19.96/autoopts/numeric.c:60:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, zRangeErr, pOpts->pzProgName, data/autogen-5.19.96/autoopts/numeric.c:66:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, zRangeScaled, pz_indent); data/autogen-5.19.96/autoopts/numeric.c:68:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, (rng_ct > 1) ? zRangeLie : zRangeOnly, pz_indent); data/autogen-5.19.96/autoopts/numeric.c:75:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, zRangeExact, pz_indent, rng->rmin); data/autogen-5.19.96/autoopts/numeric.c:77:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, zRangeUpto, pz_indent, rng->rmax); data/autogen-5.19.96/autoopts/numeric.c:79:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, zRangeAbove, pz_indent, rng->rmin); data/autogen-5.19.96/autoopts/numeric.c:81:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, zRange, pz_indent, rng->rmin, data/autogen-5.19.96/autoopts/numeric.c:162:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf( stderr, zNotNumber, opts->pzProgName, od->optArg.argString ); data/autogen-5.19.96/autoopts/pgusage.c:49: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(bf, bfsz, TMP_FILE_FMT, tmpdir, my_pid); data/autogen-5.19.96/autoopts/pgusage.c:90: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(res, bfsz, PAGE_USAGE_FMT, pager, fname); data/autogen-5.19.96/autoopts/pgusage.c:168:21: [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. ignore_val( system( fil_name)); data/autogen-5.19.96/autoopts/putshell.c:175:20: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. out += sprintf(out, MK_STR_OCT_FMT, ch); data/autogen-5.19.96/autoopts/putshell.c:261:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(OPT_VAL_FMT, pOpts->pzPROGNAME, pOD->pz_NAME); data/autogen-5.19.96/autoopts/putshell.c:267:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(QUOT_ARG_FMT, pOD->optArg.argString); data/autogen-5.19.96/autoopts/putshell.c:272:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(OPT_END_FMT, pOpts->pzPROGNAME, pOD->pz_NAME); data/autogen-5.19.96/autoopts/putshell.c:281:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(zOptNumFmt, pOpts->pzPROGNAME, pOD->pz_NAME, data/autogen-5.19.96/autoopts/putshell.c:299:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(SHOW_VAL_FMT, (unsigned long)val); data/autogen-5.19.96/autoopts/putshell.c:314:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(zOptCookieCt, pOpts->pzPROGNAME, pOD->pz_NAME, ct); data/autogen-5.19.96/autoopts/putshell.c:317:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(ARG_BY_NUM_FMT, pOpts->pzPROGNAME, pOD->pz_NAME, data/autogen-5.19.96/autoopts/putshell.c:320:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(EXPORT_ARG_FMT, pOpts->pzPROGNAME, pOD->pz_NAME, data/autogen-5.19.96/autoopts/putshell.c:359:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(zOptCtFmt, pOpts->curOptIdx-1); data/autogen-5.19.96/autoopts/putshell.c:387:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(zEquivMode, pOpts->pzPROGNAME, pOD->pz_NAME, p->pz_NAME); data/autogen-5.19.96/autoopts/putshell.c:424:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(zOptDisabl, pOpts->pzPROGNAME, pOD->pz_NAME, data/autogen-5.19.96/autoopts/putshell.c:435:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(zOptNumFmt, pOpts->pzPROGNAME, pOD->pz_NAME, data/autogen-5.19.96/autoopts/putshell.c:455:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(zFullOptFmt, pOpts->pzPROGNAME, pOD->pz_NAME, data/autogen-5.19.96/autoopts/putshell.c:467:13: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(zOptNumFmt, pOpts->pzPROGNAME, pOD->pz_NAME, data/autogen-5.19.96/autoopts/putshell.c:475:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(OPT_VAL_FMT, pOpts->pzPROGNAME, pOD->pz_NAME); data/autogen-5.19.96/autoopts/putshell.c:477:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(OPT_END_FMT, pOpts->pzPROGNAME, pOD->pz_NAME); data/autogen-5.19.96/autoopts/reset.c:93:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zreset_arg, pOpts->pzProgName, pOD->pz_Name); data/autogen-5.19.96/autoopts/reset.c:110:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zIllOptChr, pOpts->pzProgPath, *pzArg); data/autogen-5.19.96/autoopts/reset.c:118:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zIllOptStr, pOpts->pzProgPath, pzArg); data/autogen-5.19.96/autoopts/restore.c:143:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zNoState, pzName); data/autogen-5.19.96/autoopts/save.c:121:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zsave_warn, opts->pzProgName, res); data/autogen-5.19.96/autoopts/save.c:122:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zNoStat, errno, strerror(errno), res); data/autogen-5.19.96/autoopts/save.c:174:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zsave_warn, opts->pzProgName, res); data/autogen-5.19.96/autoopts/save.c:175:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zNoStat, errno, strerror(errno), data/autogen-5.19.96/autoopts/save.c:193:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zsave_warn, opts->pzProgName, res); data/autogen-5.19.96/autoopts/save.c:220:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, ao_name_use_fmt, od->pz_Name, od->pzText); data/autogen-5.19.96/autoopts/save.c:302:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, NULL_ATR_FMT, ovp->pzName); data/autogen-5.19.96/autoopts/save.c:317:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, TYPE_ATR_FMT, ovp->pzName, typ); data/autogen-5.19.96/autoopts/save.c:337:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, END_XML_FMT, ovp->pzName); data/autogen-5.19.96/autoopts/save.c:343:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, NUMB_ATR_FMT, ovp->pzName, ovp->v.longVal); data/autogen-5.19.96/autoopts/save.c:347:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, BOOL_ATR_FMT, ovp->pzName, data/autogen-5.19.96/autoopts/save.c:365:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, OPEN_XML_FMT, name); data/autogen-5.19.96/autoopts/save.c:393:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, END_XML_FMT, name); data/autogen-5.19.96/autoopts/save.c:416:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, OPEN_CLOSE_FMT, name); data/autogen-5.19.96/autoopts/save.c:420:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, NESTED_OPT_FMT, name); data/autogen-5.19.96/autoopts/save.c:450:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, ao_name_use_fmt, od->pz_Name, od->pzText); data/autogen-5.19.96/autoopts/save.c:471:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, NESTED_OPT_FMT, od->pz_Name); data/autogen-5.19.96/autoopts/save.c:567:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zsave_warn, opts->pzProgName, fname); data/autogen-5.19.96/autoopts/save.c:568:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zNoCreat, errno, strerror(errno), fname); data/autogen-5.19.96/autoopts/save.c:585:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, zFmtProg, opts->pzProgName); data/autogen-5.19.96/autoopts/save.c:604:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, zPresetFile, time_str); data/autogen-5.19.96/autoopts/save.c:615:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, zFmtProg, opts->pzProgName); data/autogen-5.19.96/autoopts/save.c:646:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, ao_name_use_fmt, pod->pz_Name, pod->pzText); data/autogen-5.19.96/autoopts/save.c:758:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, ao_name_use_fmt, od->pz_Name, od->pzText); data/autogen-5.19.96/autoopts/save.c:765:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, ao_name_use_fmt, od->pz_Name, od->pzText); data/autogen-5.19.96/autoopts/time.c:50:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zNotDuration, opts->pzProgName, od->optArg.argString); data/autogen-5.19.96/autoopts/time.c:95:17: [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. if (snprintf(envptr, sz, fmt, opts->pzPkgDataDir) >= (int)sz) data/autogen-5.19.96/autoopts/time.c:101:13: [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(envptr+8, R_OK) != 0) data/autogen-5.19.96/autoopts/time.c:113:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zNotDate, opts->pzProgName, data/autogen-5.19.96/autoopts/unistd.in.h:270:11: [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. # undef access data/autogen-5.19.96/autoopts/unistd.in.h:271:12: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. # define access rpl_access data/autogen-5.19.96/autoopts/unistd.in.h:273: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. _GL_FUNCDECL_RPL (access, int, (const char *file, int mode) data/autogen-5.19.96/autoopts/unistd.in.h:275: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. _GL_CXXALIAS_RPL (access, int, (const char *file, int mode)); data/autogen-5.19.96/autoopts/unistd.in.h:278:11: [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. # undef access data/autogen-5.19.96/autoopts/unistd.in.h:279:12: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. # define access _access data/autogen-5.19.96/autoopts/unistd.in.h:281: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. _GL_CXXALIAS_MDA (access, int, (const char *file, int mode)); data/autogen-5.19.96/autoopts/unistd.in.h:283: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. _GL_CXXALIAS_SYS (access, int, (const char *file, int mode)); data/autogen-5.19.96/autoopts/unistd.in.h:285: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. _GL_CXXALIASWARN (access); data/autogen-5.19.96/autoopts/unistd.in.h:287: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. # undef access data/autogen-5.19.96/autoopts/unistd.in.h:290:18: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. _GL_WARN_ON_USE (access, "access does not always support X_OK - " data/autogen-5.19.96/autoopts/unistd.in.h:296: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. # undef access data/autogen-5.19.96/autoopts/unistd.in.h:297:10: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. # define access _access data/autogen-5.19.96/autoopts/unistd.in.h:568:9: [4] (shell) execl: 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 execl data/autogen-5.19.96/autoopts/unistd.in.h:569:10: [4] (shell) execl: 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 execl _execl data/autogen-5.19.96/autoopts/unistd.in.h:573:9: [4] (shell) execle: 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 execle data/autogen-5.19.96/autoopts/unistd.in.h:574:10: [4] (shell) execle: 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 execle _execle data/autogen-5.19.96/autoopts/unistd.in.h:578: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. # undef execlp data/autogen-5.19.96/autoopts/unistd.in.h:579:10: [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 _execlp data/autogen-5.19.96/autoopts/unistd.in.h:584:9: [4] (shell) execv: 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 execv data/autogen-5.19.96/autoopts/unistd.in.h:585:10: [4] (shell) execv: 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 execv _execv data/autogen-5.19.96/autoopts/unistd.in.h:594:9: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. # undef execvp data/autogen-5.19.96/autoopts/unistd.in.h:595:10: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. # define execvp _execvp data/autogen-5.19.96/autoopts/unistd.in.h:963:19: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. _GL_FUNCDECL_SYS (getlogin, char *, (void)); data/autogen-5.19.96/autoopts/unistd.in.h:965:19: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. _GL_CXXALIAS_SYS (getlogin, char *, (void)); data/autogen-5.19.96/autoopts/unistd.in.h:966:19: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. _GL_CXXALIASWARN (getlogin); data/autogen-5.19.96/autoopts/unistd.in.h:968:9: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. # undef getlogin data/autogen-5.19.96/autoopts/unistd.in.h:970:18: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. _GL_WARN_ON_USE (getlogin, "getlogin is unportable - " data/autogen-5.19.96/autoopts/unistd.in.h:1111:11: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. # undef getpass data/autogen-5.19.96/autoopts/unistd.in.h:1112:12: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. # define getpass rpl_getpass data/autogen-5.19.96/autoopts/unistd.in.h:1114:19: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_FUNCDECL_RPL (getpass, char *, (const char *prompt) data/autogen-5.19.96/autoopts/unistd.in.h:1116:19: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_CXXALIAS_RPL (getpass, char *, (const char *prompt)); data/autogen-5.19.96/autoopts/unistd.in.h:1119:19: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_FUNCDECL_SYS (getpass, char *, (const char *prompt) data/autogen-5.19.96/autoopts/unistd.in.h:1122:19: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_CXXALIAS_SYS (getpass, char *, (const char *prompt)); data/autogen-5.19.96/autoopts/unistd.in.h:1124:19: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_CXXALIASWARN (getpass); data/autogen-5.19.96/autoopts/unistd.in.h:1126:9: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. # undef getpass data/autogen-5.19.96/autoopts/unistd.in.h:1128:18: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_WARN_ON_USE (getpass, "getpass is unportable - " data/autogen-5.19.96/autoopts/usage.c:279:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, zoffer_usage_fmt, opts->pzProgName, help); data/autogen-5.19.96/autoopts/usage.c:301:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(line_fmt_buf, zFmtFmt, flen); data/autogen-5.19.96/autoopts/usage.c:306:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(line_fmt_buf, zFmtFmt, flen); data/autogen-5.19.96/autoopts/usage.c:358:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, zPlsSendBugs, opts->pzBugAddr); data/autogen-5.19.96/autoopts/usage.c:386:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, PUTS_FMT, t); data/autogen-5.19.96/autoopts/usage.c:561:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, opts->pzUsageTitle, opts->pzProgName); data/autogen-5.19.96/autoopts/usage.c:601:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, zReqOne, data/autogen-5.19.96/autoopts/usage.c:606:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, zTabout + tab_skip_ct, data/autogen-5.19.96/autoopts/usage.c:626:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, zProhibOne, data/autogen-5.19.96/autoopts/usage.c:633:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, zTabout + tab_skip_ct, data/autogen-5.19.96/autoopts/usage.c:684:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, usefmt, z, od->pzText); data/autogen-5.19.96/autoopts/usage.c:696:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zbad_od, opts->pzProgName, od->pz_Name); data/autogen-5.19.96/autoopts/usage.c:722:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, zTabout + tab_skip_ct, zVendOptsAre); data/autogen-5.19.96/autoopts/usage.c:736: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(vfmt, sizeof(vfmt), vfmtfmt, (unsigned int)nmlen + 4); data/autogen-5.19.96/autoopts/usage.c:786:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, zDis + tab_skip_ct, od->pz_DisableName); data/autogen-5.19.96/autoopts/usage.c:822:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, zalt_opt + tab_skip_ct, data/autogen-5.19.96/autoopts/usage.c:859:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, zUpTo + tab_skip_ct, od->optMaxCt); break; data/autogen-5.19.96/autoopts/usage.c:867:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, zMust + tab_skip_ct, data/autogen-5.19.96/autoopts/usage.c:920:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, zPathFmt, path); data/autogen-5.19.96/autoopts/usage.c:1015: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(z, sizeof(z), at->pzOptFmt, atyp, od->pz_Name, data/autogen-5.19.96/autoopts/usage.c:1018:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, line_fmt_buf, z, od->pzText); data/autogen-5.19.96/autoopts/usage.c:1030:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zbad_od, opts->pzProgName, od->pz_Name); data/autogen-5.19.96/autoopts/usage.c:1066:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, zDisabledOpt, od->pz_Name, why_pz); data/autogen-5.19.96/autoopts/usage.c:1074:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, argTypes.pzBrk, od->pzText, data/autogen-5.19.96/autoopts/usage.c:1097:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, argTypes.pzBrk, zAuto, title); data/autogen-5.19.96/autoopts/usage.c:1101:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, argTypes.pzBrk, zVendIntro, title); data/autogen-5.19.96/autoopts/usage.c:1143:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(option_usage_fp, zExamineFmt, opts->pzPROGNAME); data/autogen-5.19.96/autoopts/version.c:101:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, zPlsSendBugs, o->pzBugAddr); data/autogen-5.19.96/autoopts/version.c:122:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, zao_ver_fmt, optionVersion()); data/autogen-5.19.96/autoopts/version.c:130:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, zPlsSendBugs, opts->pzBugAddr); data/autogen-5.19.96/autoopts/version.c:172:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zBadVerArg, ch); data/autogen-5.19.96/columns/columns.c:145:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(pfx_buf, pad_fmt, (int)firstSize); data/autogen-5.19.96/columns/columns.c:148:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(pfx_buf, pad_fmt, (int)indentSize); data/autogen-5.19.96/columns/columns.c:152:5: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(res, len, pfx_buf, pzFirstPfx); data/autogen-5.19.96/columns/columns.c:164:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(p, "\n%s", pzLinePfx); data/autogen-5.19.96/columns/columns.c:279:27: [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. len = (size_t)snprintf( data/autogen-5.19.96/columns/columns.c:300:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy( pzL, pzText ); data/autogen-5.19.96/columns/columns.c:307:13: [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(pzL, OPT_ARG(SEPARATION)); data/autogen-5.19.96/columns/columns.c:498:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf( stdout, zFmt, pzL ); data/autogen-5.19.96/columns/columns.c:598:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf( stdout, zFmt, pzL ); data/autogen-5.19.96/columns/opts.c:978:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, OPEN_ERROR_FMT, errno, strerror(errno), data/autogen-5.19.96/columns/opts.c:999:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/autogen-5.19.96/compat/compat.h: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. # error This system cannot support daemon processing data/autogen-5.19.96/compat/pathfind.c:285:21: [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(abs_name, mode_bits) >= 0) data/autogen-5.19.96/compat/pathfind.c:321:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy( result, dot_path ); data/autogen-5.19.96/compat/pathfind.c:333:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy( result + result_len, string ); data/autogen-5.19.96/compat/snprintf.c:32:1: [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(char *str, size_t n, char const *fmt, ...) data/autogen-5.19.96/compat/snprintf.c:40:10: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. rp = vsprintf(str, fmt, ap); data/autogen-5.19.96/compat/snprintf.c:46:12: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. rval = vsprintf(str, fmt, ap); data/autogen-5.19.96/compat/snprintf.c:58:1: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf( char *str, size_t n, char const *fmt, va_list ap ) data/autogen-5.19.96/compat/snprintf.c:61:20: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. return (strlen(vsprintf(str, fmt, ap))); data/autogen-5.19.96/compat/snprintf.c:63:13: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. return (vsprintf(str, fmt, ap)); data/autogen-5.19.96/compat/windows-config.h:46: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. #define snprintf _snprintf data/autogen-5.19.96/compat/windows-config.h:46:18: [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. #define snprintf _snprintf data/autogen-5.19.96/getdefs/gdemit.c:237:18: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. pzOut += sprintf(pzOut, " =%c%s;\n", sep_char, pzDef); data/autogen-5.19.96/getdefs/gdemit.c:277:5: [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(pzOut, zStart); data/autogen-5.19.96/getdefs/gdemit.c:425:5: [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(pzOut, zStart); data/autogen-5.19.96/getdefs/gdinit.c:195:13: [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(pz, R_OK) != 0) continue; data/autogen-5.19.96/getdefs/gdinit.c:281: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(bf, len, pat_wrapper, pz); data/autogen-5.19.96/getdefs/gdinit.c:407:27: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. pzEndIndex += sprintf(pzEndIndex, "%s", preamble); data/autogen-5.19.96/getdefs/getdefs.c:152:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. pzEndIndex += sprintf(pzEndIndex, "%-40s [%d]\n", pzDef, idx); data/autogen-5.19.96/getdefs/getdefs.c:260:17: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. out_scan += sprintf(out_scan, zLineId, line, fname); data/autogen-5.19.96/getdefs/getdefs.c:262:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. out_scan += sprintf(out_scan, "#%s\n", if_text); data/autogen-5.19.96/getdefs/getdefs.c:275:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(def_str, " %s'", name_bf); data/autogen-5.19.96/getdefs/getdefs.c:283:18: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. out_scan += sprintf(out_scan, "%s%s';\n", zNameTag, name_bf); data/autogen-5.19.96/getdefs/getdefs.c:295:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zNoData, fname, line); data/autogen-5.19.96/getdefs/getdefs.c:316:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(pzOut, zGlobal); data/autogen-5.19.96/getdefs/getdefs.c:318:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. pzOut += sprintf(pzOut, zLineId, line, pzFile); data/autogen-5.19.96/getdefs/getdefs.c:358:17: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(pzOut, zNoData, pzFile, line); data/autogen-5.19.96/getdefs/getdefs.c:375:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(pzOut, zErr, re_res, zRER, zAttribRe, pzDef); data/autogen-5.19.96/getdefs/getdefs.c:391:22: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. pzOut += sprintf(pzOut, " %s;\n", *ppz++); data/autogen-5.19.96/getdefs/getdefs.c:396:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. pzOut += sprintf(pzOut, zSrcFile, OPT_ARG(SRCFILE), pzFile); data/autogen-5.19.96/getdefs/getdefs.c:399:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. pzOut += sprintf(pzOut, zLineNum, OPT_ARG(LINENUM), line); data/autogen-5.19.96/getdefs/getdefs.c:514:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(outFp, zAgDef, OPT_ARG(TEMPLATE)); data/autogen-5.19.96/getdefs/getdefs.c:528:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(outFp, zFmt, pzName, *ppz++); data/autogen-5.19.96/getdefs/getdefs.c:537:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(outFp, zFmt, pzName, *ppz++); data/autogen-5.19.96/getdefs/getdefs.c:706:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zNoSubexp, lineNo, fname, pzDef); data/autogen-5.19.96/getdefs/getdefs.c:822:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pzNew, "%s[%d]%s", zNm, data/autogen-5.19.96/getdefs/getdefs.c:847:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, zDne, OPT_ARG(OUTPUT)); data/autogen-5.19.96/getdefs/getdefs.c:853:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, zFileFmt, *ppz++); data/autogen-5.19.96/getdefs/getdefs.c:970:5: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(pzAutogen, (char **)VOIDP(paparg)); data/autogen-5.19.96/getdefs/getdefs.c:996:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(pzBase+2, OPT_ARG(BASE_NAME)); data/autogen-5.19.96/getdefs/getdefs.c:1033: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(pzBase+2, pz); data/autogen-5.19.96/snprintfv/compat.h:265:37: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. args __attribute__((format (printf, format_idx, arg_idx))) data/autogen-5.19.96/snprintfv/compat.h:280:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (stream, SNV_ASSERT_FMT, __FILE__, __LINE__, \ data/autogen-5.19.96/snprintfv/compat.h:288:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (stream, SNV_ASSERT_FMT, __FILE__, __LINE__, \ data/autogen-5.19.96/snprintfv/compat.h:296:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (stream, SNV_ASSERT_FMT, __FILE__, __LINE__, \ data/autogen-5.19.96/snprintfv/printf.h:801:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #undef printf data/autogen-5.19.96/snprintfv/printf.h:802:8: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #undef vprintf data/autogen-5.19.96/snprintfv/printf.h:805:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #undef fprintf data/autogen-5.19.96/snprintfv/printf.h:806:8: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #undef vfprintf data/autogen-5.19.96/snprintfv/printf.h:807:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef sprintf data/autogen-5.19.96/snprintfv/printf.h:808:8: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef vsprintf data/autogen-5.19.96/snprintfv/printf.h:809:8: [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. #undef snprintf data/autogen-5.19.96/snprintfv/printf.h:810:8: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #undef vsnprintf data/autogen-5.19.96/snprintfv/printf.h:820:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define printf snv_printf data/autogen-5.19.96/snprintfv/printf.h:821:9: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define vprintf snv_vprintf data/autogen-5.19.96/snprintfv/printf.h:824:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define fprintf snv_fprintf data/autogen-5.19.96/snprintfv/printf.h:825:9: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define vfprintf snv_vfprintf data/autogen-5.19.96/snprintfv/printf.h:826:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #define sprintf snv_sprintf data/autogen-5.19.96/snprintfv/printf.h:827:9: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #define vsprintf snv_vsprintf data/autogen-5.19.96/snprintfv/printf.h:828: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. #define snprintf snv_snprintf data/autogen-5.19.96/snprintfv/printf.h:829:9: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define vsnprintf snv_vsnprintf data/autogen-5.19.96/xml2ag/fork.c:70:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, fs_err_fmt, xml2agOptions.pzProgName, data/autogen-5.19.96/xml2ag/fork.c:80:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, fs_err_fmt, xml2agOptions.pzProgName, data/autogen-5.19.96/xml2ag/fork.c:87:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, fs_err_fmt, xml2agOptions.pzProgName, data/autogen-5.19.96/xml2ag/fork.c:98:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, fs_err_fmt, xml2agOptions.pzProgName, data/autogen-5.19.96/xml2ag/fork.c:143:17: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(pz, zAg); data/autogen-5.19.96/xml2ag/fork.c:147:17: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(pz + len, zAg); data/autogen-5.19.96/xml2ag/fork.c:159:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pzArg, "--templ-dirs=%s", pA); data/autogen-5.19.96/xml2ag/fork.c:166:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pzArg, "--definitions=%s", OPT_ARG( DEFINITIONS )); data/autogen-5.19.96/xml2ag/fork.c:172:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pzArg, "--shell=%s", OPT_ARG( SHELL )); data/autogen-5.19.96/xml2ag/fork.c:182:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pzArg, "--equate=%s", OPT_ARG( EQUATE )); data/autogen-5.19.96/xml2ag/fork.c:188:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pzArg, "--base-name=%s", OPT_ARG( BASE_NAME )); data/autogen-5.19.96/xml2ag/fork.c:218:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pzArg, "--trace=%s", kwlist[ OPT_VALUE_TRACE ]); data/autogen-5.19.96/xml2ag/fork.c:224:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pzArg, "--trace-out=%s", OPT_ARG( TRACE_OUT )); data/autogen-5.19.96/xml2ag/fork.c:246:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pzArg, "--skip-suffix=%s", pA); data/autogen-5.19.96/xml2ag/fork.c:257:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pzArg, "--select-suffix=%s", pA); data/autogen-5.19.96/xml2ag/fork.c:268:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pzArg, "--define=%s", pA); data/autogen-5.19.96/xml2ag/fork.c:279:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pzArg, "--undefine=%s", pA); data/autogen-5.19.96/xml2ag/fork.c:290:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pzArg, "--make-dep=%s", pA); data/autogen-5.19.96/xml2ag/fork.c:296:9: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(xml2agOptions.origArgVect[0], xml2agOptions.origArgVect); data/autogen-5.19.96/xml2ag/fork.c:303:9: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(zAg, xml2agOptions.origArgVect); data/autogen-5.19.96/xml2ag/fork.c:304:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, fs_err_fmt, xml2agOptions.pzProgName, data/autogen-5.19.96/xml2ag/xml2ag.c:87:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zConflict); data/autogen-5.19.96/xml2ag/xml2ag.c:135:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ag_pipe_fp, z_not_doc, pDoc->type); data/autogen-5.19.96/xml2ag/xml2ag.c:297:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ag_pipe_fp, def_hdr, tpl_nm, suffx); data/autogen-5.19.96/xml2ag/xml2ag.c:302:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ag_pipe_fp, xml_fmt, "name", TRIM(pDoc->name, NULL)); data/autogen-5.19.96/xml2ag/xml2ag.c:305:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ag_pipe_fp, xml_fmt, "version", TRIM(pDoc->version, NULL)); data/autogen-5.19.96/xml2ag/xml2ag.c:308:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ag_pipe_fp, xml_fmt, "encoding", TRIM(pDoc->encoding, NULL)); data/autogen-5.19.96/xml2ag/xml2ag.c:311:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ag_pipe_fp, xml_fmt, "URL", TRIM(pDoc->URL, NULL)); data/autogen-5.19.96/xml2ag/xml2ag.c:314:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ag_pipe_fp, xml_fmt, "standalone", "true"); data/autogen-5.19.96/xml2ag/xml2ag.c:335:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ag_pipe_fp, zTextFmt, TRIM(pzCont, NULL)); data/autogen-5.19.96/xml2ag/xml2ag.c:392:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(ag_pipe_fp, zTextFmt, pzTxt); data/autogen-5.19.96/agen5/agCgi.c:118:31: [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. nm_map->cgi_val = getenv(nm_map->name); data/autogen-5.19.96/agen5/agDep.c:396: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. char const * TMPDIR = getenv("TMPDIR"); data/autogen-5.19.96/agen5/agInit.c:248: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. if (getenv(env_name) == NULL) { data/autogen-5.19.96/agen5/agInit.c:281: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. if (getenv(GUILE_WARN_DEP_STR) == NULL) data/autogen-5.19.96/agen5/agInit.c:284:19: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ld_lib_path = getenv(LD_LIB_PATH_STR); data/autogen-5.19.96/agen5/agUtils.c:200:25: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char const * mdep = getenv(AG_MAKE_DEP_NAME); data/autogen-5.19.96/agen5/agUtils.c:202: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. mdep = getenv(DEP_OUT_NAME); data/autogen-5.19.96/agen5/agUtils.c:387:24: [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. return check_env ? getenv(de_name) : NULL; data/autogen-5.19.96/agen5/autogen.c:120: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. char const * lc = getenv("LC_ALL"); data/autogen-5.19.96/agen5/defLoad.c:394:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv(REQUEST_METHOD) != NULL) { data/autogen-5.19.96/agen5/expFormat.c:165: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. char const * pz = getenv("AUTOGEN_DNE_DATE"); data/autogen-5.19.96/autoopts/env.c:44:36: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char const * env_opts = getenv(pOpts->pzPROGNAME); data/autogen-5.19.96/autoopts/env.c:115:20: [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. os->pzOptArg = getenv(env_name); data/autogen-5.19.96/autoopts/init.c:104: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. pz = pathfind(getenv("PATH"), (char *)pname, "rx"); data/autogen-5.19.96/autoopts/load.c:60:13: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. if (realpath(buf, z) == NULL) data/autogen-5.19.96/autoopts/load.c:210:25: [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. path = pathfind(getenv("PATH"), (char *)prg_path, "rx"); data/autogen-5.19.96/autoopts/load.c:268: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. dir_part = getenv(buf); data/autogen-5.19.96/autoopts/makeshell.c:90:28: [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. else if ((shell_prog = getenv("SHELL")), data/autogen-5.19.96/autoopts/pgusage.c:44:31: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char const * tmpdir = getenv(TMPDIR); data/autogen-5.19.96/autoopts/pgusage.c:78:45: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char const * pager = (char const *)getenv(PAGER_NAME); data/autogen-5.19.96/autoopts/sort.c:180:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ( (getenv("POSIXLY_CORRECT") != NULL) data/autogen-5.19.96/autoopts/usage.c:62: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. txt = getenv("AUTOOPTS_USAGE"); data/autogen-5.19.96/agen5/ag-text.c:41:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char const ag_text_strtable[16331] = data/autogen-5.19.96/agen5/ag-text.h:860:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char const ag_text_strtable[16331]; data/autogen-5.19.96/agen5/agCgi.c:78: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(res, PARSE_INPUT_AG_DEF_STR, PARSE_INPUT_AG_DEF_STR_LEN); data/autogen-5.19.96/agen5/agCgi.c:102:17: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). tmpfd = mkstemp(cgi_stderr); data/autogen-5.19.96/agen5/agDep.c:31: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 fname[1]; data/autogen-5.19.96/agen5/agDep.c:78:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->fname, pz, l + 1); data/autogen-5.19.96/agen5/agDep.c:151:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->fname, pz, l + 1); data/autogen-5.19.96/agen5/agDep.c:200:13: [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(tfile_name, OPT_ARG(BASE_NAME), dep_name_len); data/autogen-5.19.96/agen5/agDep.c:201:13: [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(tfile_name + dep_name_len, TEMP_SUFFIX, data/autogen-5.19.96/agen5/agDep.c:207:13: [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(tfile_name, dep_file, dep_name_len); data/autogen-5.19.96/agen5/agDep.c:208:13: [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(tfile_name + dep_name_len, TEMP_SUFFIX + 2, data/autogen-5.19.96/agen5/agDep.c:218:13: [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(q, tfile_name, dep_name_len); data/autogen-5.19.96/agen5/agDep.c:222:14: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). fd = mkstemp(tfile_name); data/autogen-5.19.96/agen5/agDep.c:266:13: [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(pz, pnm, pnm_sz); data/autogen-5.19.96/agen5/agDep.c:269:13: [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(pz, bnm, bnm_sz + 1); data/autogen-5.19.96/agen5/agDep.c:309:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pzn, dep_file, len); data/autogen-5.19.96/agen5/agDep.c:342:24: [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). close( open(dep_target, O_CREAT, fil_mode)); data/autogen-5.19.96/agen5/agDep.c:452:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pt, pz, ln); data/autogen-5.19.96/agen5/agDep.c:453:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pt + ln, targ, sizeof(targ)); data/autogen-5.19.96/agen5/agInit.c:125:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(res, str, sz); data/autogen-5.19.96/agen5/agInit.c:291:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, LD_LIB_PATH_PFX, LD_LIB_PATH_PFX_LEN); data/autogen-5.19.96/agen5/agInit.c:292:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p + LD_LIB_PATH_PFX_LEN, ld_lib_path, psz); data/autogen-5.19.96/agen5/agInit.c:307: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 z[ SCRIBBLE_SIZE+8 ] = "__autogen__"; data/autogen-5.19.96/agen5/agShell.c:521: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 zLine[ 1024 ]; data/autogen-5.19.96/agen5/agShell.c:568:13: [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(scan, zLine, llen); data/autogen-5.19.96/agen5/agUtils.c:56: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 z[ 2 * SCRIBBLE_SIZE ]; data/autogen-5.19.96/agen5/agUtils.c:162: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). trace_fp = fopen(fname, "a"); data/autogen-5.19.96/agen5/agUtils.c:166: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). trace_fp = fopen(fname, "w"); data/autogen-5.19.96/agen5/agUtils.c:467: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 p[10]; /* provide a scratch pad for escape processing */ data/autogen-5.19.96/agen5/autogen.h:189:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char str[4]; /* {'A', 'G', 'L', 'B'} */ data/autogen-5.19.96/agen5/autogen.h:241: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 td_start_mac[MAX_SUFFIX_LEN]; data/autogen-5.19.96/agen5/autogen.h:242: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 td_end_mac[ MAX_SUFFIX_LEN]; data/autogen-5.19.96/agen5/autogen.h:296: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 os_sfx[ 1 ]; data/autogen-5.19.96/agen5/autogen.h:397:6: [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. MODE char const no_def_str[1] VALUE( "" ); data/autogen-5.19.96/agen5/autogen.h:470:6: [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. MODE char const * server_args[2] VALUE( { NULL } ); data/autogen-5.19.96/agen5/autogen.h:514:6: [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. MODE char end_mac_mark[8] VALUE( "" ); data/autogen-5.19.96/agen5/autogen.h:516:6: [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. MODE char st_mac_mark[8] VALUE( "" ); data/autogen-5.19.96/agen5/cgi-fsm.c:61:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, exhaustion, sizeof(exhaustion)); data/autogen-5.19.96/agen5/cgi-fsm.c:157:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char const zCgiStrings[133] = data/autogen-5.19.96/agen5/cgi-fsm.c:265:13: [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(pzOut, txt, sizeof(txt) - 1); data/autogen-5.19.96/agen5/cgi-fsm.c:277:13: [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(pzOut, txt, sizeof(txt)); data/autogen-5.19.96/agen5/cgi-fsm.c:304: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 z[4]; data/autogen-5.19.96/agen5/defDirect.c:340: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 z[32]; data/autogen-5.19.96/agen5/defDirect.c:658:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char full_name[ AG_PATH_MAX + 1 ]; data/autogen-5.19.96/agen5/defDirect.c:714:21: [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(full_name, "r" FOPEN_TEXT_FLAG); data/autogen-5.19.96/agen5/defFind.c:41: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 hn_str[0]; data/autogen-5.19.96/agen5/defFind.c:46: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. MOD_LOCAL char zDefinitionName[ AG_PATH_MAX ]; data/autogen-5.19.96/agen5/defFind.c:207: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(VOIDP(pzD), VOIDP(pzS), srcLen); data/autogen-5.19.96/agen5/defFind.c:620: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. unsigned char z[SCRIBBLE_SIZE]; data/autogen-5.19.96/agen5/defFind.c:657:13: [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(z, pz, z_len - 1); data/autogen-5.19.96/agen5/defFind.c:664:13: [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(z, pz, z_len); data/autogen-5.19.96/agen5/defFind.c:694:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new->hn_str, z, z_len); data/autogen-5.19.96/agen5/defLex.c:537: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(VOIDP(pCtx->scx_scan), VOIDP(scm_i_string_chars(res)), res_len); data/autogen-5.19.96/agen5/defLex.c:633: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 here_mark[MAX_HEREMARK_LEN]; data/autogen-5.19.96/agen5/defLex.c:666:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(here_mark, scan, markLen); data/autogen-5.19.96/agen5/defLex.c:717: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. if (dest > (char *)token_str) data/autogen-5.19.96/agen5/defLoad.c:259:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&(de->de_name), &(de_list->de_name), data/autogen-5.19.96/agen5/defLoad.c:262:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&(de_list->de_name), &(def.de_name), data/autogen-5.19.96/agen5/defLoad.c:486: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(def_fname, "r" FOPEN_TEXT_FLAG); data/autogen-5.19.96/agen5/defParse-fsm.c:305:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char const zDpStrings[290] = data/autogen-5.19.96/agen5/expExtract.c:32: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 * fp = fopen(fname, "r"); data/autogen-5.19.96/agen5/expExtract.c:345: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 z[ AG_PATH_MAX+1 ]; data/autogen-5.19.96/agen5/expExtract.c:352: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 * apz[2]; data/autogen-5.19.96/agen5/expFormat.c:309: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 num_bf[16]; data/autogen-5.19.96/agen5/expFormat.c:499: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 fname[ AG_PATH_MAX ]; data/autogen-5.19.96/agen5/expFormat.c:527:21: [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(fname, "r"); data/autogen-5.19.96/agen5/expFormat.c:883:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char fname[ AG_PATH_MAX ]; data/autogen-5.19.96/agen5/expMake.c:101:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pzOut, MAKE_SCRIPT_NL + 2, MAKE_SCRIPT_NL_LEN - 2); data/autogen-5.19.96/agen5/expMake.c:137:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pzOut, MAKE_SCRIPT_NL, MAKE_SCRIPT_NL_LEN); data/autogen-5.19.96/agen5/expMake.c:195:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, src, l); data/autogen-5.19.96/agen5/expMake.c:360:13: [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(out, text, l); data/autogen-5.19.96/agen5/expOutput.c:156: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(pz, fname, nmsz); data/autogen-5.19.96/agen5/expOutput.c:182: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). p->stk_fp = fopen(pz, mode); data/autogen-5.19.96/agen5/expOutput.c:245: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(pz, scm_i_string_chars(new_file), sz); data/autogen-5.19.96/agen5/expOutput.c:664:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp_fnm, pz_temp_tpl, tmplen + 1); data/autogen-5.19.96/agen5/expOutput.c:665:19: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). tmpfd = mkstemp(tmp_fnm); data/autogen-5.19.96/agen5/expOutput.c:699:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new_fname, scm_i_string_chars(new_file), sz); data/autogen-5.19.96/agen5/expOutput.c:925:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(scan_p, GUARD_SFX, GUARD_SFX_LEN + 1); data/autogen-5.19.96/agen5/expPrint.c:273: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(scan, HIDE_EMAIL_START_STR, HIDE_EMAIL_START_STR_LEN); data/autogen-5.19.96/agen5/expState.c:645: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 z[AG_PATH_MAX]; data/autogen-5.19.96/agen5/expString.c:187:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, src_str, len); data/autogen-5.19.96/agen5/expString.c:190:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, rep_str, (size_t)repl_len); data/autogen-5.19.96/agen5/expString.c:416:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(VOIDP(pzScan), scm_i_string_chars(car), cpy_len); data/autogen-5.19.96/agen5/expString.c:424:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(VOIDP(pzScan), VOIDP(pzSep), sep_len); data/autogen-5.19.96/agen5/expString.c:490: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(scan, prefix, pfx_size); data/autogen-5.19.96/agen5/expString.c:510:13: [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(scan+1, prefix, pfx_size - 1); data/autogen-5.19.96/agen5/expString.c:843: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. unsigned char ch_map[ 1 << 8 /* bits-per-byte */ ]; data/autogen-5.19.96/agen5/fmemopen.c:190:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(bf, pFMC->buffer, pFMC->buf_size); data/autogen-5.19.96/agen5/fmemopen.c:228: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(pBuf, pFMC->buffer + pFMC->next_ix, sz); data/autogen-5.19.96/agen5/fmemopen.c:260:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. && (((char *)pBuf)[sz - 1] != NUL)) ? 1 : 0; data/autogen-5.19.96/agen5/fmemopen.c:283: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(pFMC->buffer + pFMC->next_ix, pBuf, sz); data/autogen-5.19.96/agen5/funcCase.c:77: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 erbf[ SCRIBBLE_SIZE ]; data/autogen-5.19.96/agen5/funcCase.c:1053:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(VOIDP(apCaseLoad), base_load_table, sizeof( base_load_table )); data/autogen-5.19.96/agen5/funcCase.c:1284:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, sel_arg, (size_t)arg_len); data/autogen-5.19.96/agen5/funcDef.c:172:13: [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(VOIDP(pz), pDL->pzExpr, (size_t)(pzScan - pDL->pzExpr)); data/autogen-5.19.96/agen5/funcDef.c:418:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). for_index = atoi(pz); data/autogen-5.19.96/agen5/funcDef.c:842:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(VOIDP(apDefineLoad), base_load_table, sizeof(base_load_table)); data/autogen-5.19.96/agen5/funcEval.c:36: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 z[48]; data/autogen-5.19.96/agen5/funcEval.c:722:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(copy, src, src_len); data/autogen-5.19.96/agen5/funcFor.c:549: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(pz, pzSrc, srcLen); data/autogen-5.19.96/agen5/funcFor.c:872:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(VOIDP(load_for_macro_procs), base_load_table, data/autogen-5.19.96/agen5/funcIf.c:56:16: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). res = (atoi(pz) == 0) ? false : true; data/autogen-5.19.96/agen5/funcIf.c:299:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(VOIDP(load_for_if_after_else_procs), base_load_table, data/autogen-5.19.96/agen5/funcIf.c:366:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(VOIDP(apIfLoad), base_load_table, sizeof(base_load_table)); data/autogen-5.19.96/agen5/funcIf.c:439:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(VOIDP(while_tbl), base_load_table, sizeof(base_load_table)); data/autogen-5.19.96/agen5/functions.c:480:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest, scan, (size_t)src_len); data/autogen-5.19.96/agen5/functions.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 z[ 64 ]; data/autogen-5.19.96/agen5/functions.h:193:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char const zFnStrg[144] = data/autogen-5.19.96/agen5/functions.h:253:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char const * const ag_fun_names[FUNC_CT] = { data/autogen-5.19.96/agen5/loadPseudo.c:132: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(pOS->os_sfx, text, spn); data/autogen-5.19.96/agen5/loadPseudo.c:206:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(nmbuf, pz+2, len); data/autogen-5.19.96/agen5/loadPseudo.c:215:13: [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(sp, HANDLE_HASH_SHELL, HANDLE_HASH_SHELL_LEN); data/autogen-5.19.96/agen5/loadPseudo.c:216:13: [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(sp + HANDLE_HASH_SHELL_LEN, nmbuf, len + 1); data/autogen-5.19.96/agen5/opts.c:108:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char const autogen_opt_strs[3212] = data/autogen-5.19.96/agen5/opts.c:1111:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char const * const apzHomeList[3] = { data/autogen-5.19.96/agen5/opts.c:1392: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 const * const names[7] = { data/autogen-5.19.96/agen5/pseudo-fsm.h:168:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char const zPmStrings[169] = data/autogen-5.19.96/agen5/scribble.c:38: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. unsigned char sb_buf[1]; data/autogen-5.19.96/agen5/tpLoad.c:125:13: [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(res_name, in_name, nm_len); data/autogen-5.19.96/agen5/tpLoad.c:310:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(txt, PSEUDO_MAC_TPL_FILE, PSEUDO_MAC_TPL_FILE_LEN+1); data/autogen-5.19.96/agen5/tpLoad.c:430: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 tpl_file[ AG_PATH_MAX ]; data/autogen-5.19.96/agen5/tpParse.c:113:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pzCopy, pzFuncName, l); data/autogen-5.19.96/agen5/tpParse.c:309: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 fmt[16]; data/autogen-5.19.96/agen5/tpProcess.c:402: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 z[AG_PATH_MAX]; data/autogen-5.19.96/agen5/tpProcess.c:418:13: [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(z, pst, len); data/autogen-5.19.96/autoopts/ag-char-map.h:396: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. static unsigned char const * ag_char_map_spanners[47]; data/autogen-5.19.96/autoopts/alloca.c:112:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char align[ALIGN_SIZE]; /* To force sizeof(header). */ data/autogen-5.19.96/autoopts/ao-strs.c:41:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char const ao_strs_strtable[6714] = data/autogen-5.19.96/autoopts/ao-strs.h:336:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char const ao_strs_strtable[6714]; data/autogen-5.19.96/autoopts/autoopts.h:460:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char line_fmt_buf[32]; data/autogen-5.19.96/autoopts/autoopts/options.h:154: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 strVal[1]; ///< OPARG_TYPE_STRING data/autogen-5.19.96/autoopts/autoopts/options.h:200: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 const * apzArgs[MIN_ARG_ALLOC_CT]; ///< element array data/autogen-5.19.96/autoopts/autoopts/options.h:703: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. unsigned char * tkn_list[1]; ///< array of pointers to tokens data/autogen-5.19.96/autoopts/autoopts/usage-txt.h:50: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 const * apz_str[103]; data/autogen-5.19.96/autoopts/autoopts/usage-txt.h:58:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char const option_lib_text[4267]; data/autogen-5.19.96/autoopts/autoopts/usage-txt.h:183:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char const option_lib_text[4267] = data/autogen-5.19.96/autoopts/configfile.c:573: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 const * dir_names[DIRECTIVE_TABLE 0]; data/autogen-5.19.96/autoopts/configfile.c:621:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ftxt, pz, len); data/autogen-5.19.96/autoopts/configfile.c:688: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 z[24] = "["; data/autogen-5.19.96/autoopts/configfile.c:689:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(z+1, opts->pzPROGNAME, len); data/autogen-5.19.96/autoopts/configfile.c:797: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 z[64], *pz = z; data/autogen-5.19.96/autoopts/configfile.c:804:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pz+2, pznm, nm_len); data/autogen-5.19.96/autoopts/configfile.c:835: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 bf[4]; data/autogen-5.19.96/autoopts/configfile.c:963: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 f_name[ AG_PATH_MAX+1 ]; data/autogen-5.19.96/autoopts/configfile.c:1031:13: [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(pz, opts->pzRcName, nln); data/autogen-5.19.96/autoopts/cook.c:87: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 z[4]; data/autogen-5.19.96/autoopts/cook.c:109: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 z[4]; data/autogen-5.19.96/autoopts/dup2.c:116:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). tempfd = open ("NUL", O_RDONLY); data/autogen-5.19.96/autoopts/dup2.c:124:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[_MAX_PATH]; data/autogen-5.19.96/autoopts/dup2.c:128:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return open(path, O_RDONLY); data/autogen-5.19.96/autoopts/enum.c:108: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 fmt[16]; /* format for all-but-last entries on a line */ data/autogen-5.19.96/autoopts/enum.c:194:22: [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. if (strncmp((char *)paz_names[idx], (char *)name, len) == 0) { data/autogen-5.19.96/autoopts/enum.c:380:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pz, nm_list[ix], nln); data/autogen-5.19.96/autoopts/enum.c:384:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pz, PLUS_STR, PLUS_STR_LEN); data/autogen-5.19.96/autoopts/enum.c:468: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 nm_buf[ AO_NAME_SIZE ]; data/autogen-5.19.96/autoopts/enum.c:470: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(nm_buf, pz, len); data/autogen-5.19.96/autoopts/env.c:191: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 zEnvName[ AO_NAME_SIZE ]; data/autogen-5.19.96/autoopts/env.c:228:13: [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(pzFlagName, st.pOD->pz_NAME, nln); data/autogen-5.19.96/autoopts/env.c:249:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pzFlagName, st.pOD->pz_NAME, nln); data/autogen-5.19.96/autoopts/file.c:73:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, fname, l); data/autogen-5.19.96/autoopts/file.c:104:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open(pOD->optArg.argString, mode.file_flags); data/autogen-5.19.96/autoopts/file.c:128: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). FILE * fp = fopen(pOD->optArg.argString, mode.file_mode); data/autogen-5.19.96/autoopts/find.c:50:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, *nm_pp, (size_t)res); data/autogen-5.19.96/autoopts/find.c:344: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 name_buf[128]; data/autogen-5.19.96/autoopts/genshell.c:72:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char const genshellopt_opt_strs[1769] = data/autogen-5.19.96/autoopts/gettext.h:227:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg_ctxt_id[msgctxt_len + msgid_len]; data/autogen-5.19.96/autoopts/gettext.h:229: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 buf[1024]; data/autogen-5.19.96/autoopts/gettext.h:238: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 (msg_ctxt_id, msgctxt, msgctxt_len - 1); data/autogen-5.19.96/autoopts/gettext.h:240: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 (msg_ctxt_id + msgctxt_len, msgid, msgid_len); data/autogen-5.19.96/autoopts/gettext.h:275:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg_ctxt_id[msgctxt_len + msgid_len]; data/autogen-5.19.96/autoopts/gettext.h:277: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 buf[1024]; data/autogen-5.19.96/autoopts/gettext.h:286: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 (msg_ctxt_id, msgctxt, msgctxt_len - 1); data/autogen-5.19.96/autoopts/gettext.h:288: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 (msg_ctxt_id + msgctxt_len, msgid, msgid_len); data/autogen-5.19.96/autoopts/load.c:51:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, pz, name_len + 1); data/autogen-5.19.96/autoopts/load.c:58: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 z[PATH_MAX+1]; data/autogen-5.19.96/autoopts/load.c:67:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, z, name_len + 1); data/autogen-5.19.96/autoopts/load.c:236: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(buf, path, dir_len); data/autogen-5.19.96/autoopts/load.c:237: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(buf + dir_len, fname, fname_len); data/autogen-5.19.96/autoopts/load.c:282:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, dir_part, dir_len); data/autogen-5.19.96/autoopts/load.c:283:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf + dir_len, name, nm_len); data/autogen-5.19.96/autoopts/makeshell.c:323: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 tm_nm_buf[AO_NAME_SIZE]; data/autogen-5.19.96/autoopts/makeshell.c:439: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 int_val_buf[32]; data/autogen-5.19.96/autoopts/makeshell.c:598: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 name_bf[32]; data/autogen-5.19.96/autoopts/makeshell.c:652:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(name_bf, name, min_match_ct); data/autogen-5.19.96/autoopts/makeshell.c:721: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). FILE * fp = fopen(fname, "r" FOPEN_BINARY_FLAG); data/autogen-5.19.96/autoopts/nested.c:37: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 xml_txt[8]; data/autogen-5.19.96/autoopts/nested.c:175: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(pNV->pzName, name, nm_len); data/autogen-5.19.96/autoopts/nested.c:210:40: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). new_val->v.boolVal = (unsigned)atoi(val); data/autogen-5.19.96/autoopts/nested.c:216: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(new_val->pzName, name, nm_len); data/autogen-5.19.96/autoopts/nested.c:253: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(new_val->pzName, name, nm_len); data/autogen-5.19.96/autoopts/nested.c:282:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new_val->pzName, name, nm_len); data/autogen-5.19.96/autoopts/nested.c:476: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 z[72] = "</"; data/autogen-5.19.96/autoopts/nested.c:571:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pz, val_str, v_len); data/autogen-5.19.96/autoopts/nested.c:724: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(res_val->pzName, name, nm_len); data/autogen-5.19.96/autoopts/parse-duration.c:193: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 buf[8]; data/autogen-5.19.96/autoopts/parse-duration.c:202: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 (buf, in_pz, 4); data/autogen-5.19.96/autoopts/parse-duration.c:207: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 (buf, in_pz + 4, 2); data/autogen-5.19.96/autoopts/parse-duration.c:212: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 (buf, in_pz + 6, 2); data/autogen-5.19.96/autoopts/parse-duration.c:291: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 buf[4]; data/autogen-5.19.96/autoopts/parse-duration.c:300: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 (buf, in_pz, 2); data/autogen-5.19.96/autoopts/parse-duration.c:305: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 (buf, in_pz + 2, 2); data/autogen-5.19.96/autoopts/parse-duration.c:310: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 (buf, in_pz + 4, 2); data/autogen-5.19.96/autoopts/pgusage.c:55:18: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). int fd = mkstemp(bf); data/autogen-5.19.96/autoopts/putshell.c:146:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, nl, nl_len); data/autogen-5.19.96/autoopts/restore.c:109: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(p, pOpts, sizeof(*p)); data/autogen-5.19.96/autoopts/restore.c:110: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(p + 1, pOpts->pOptDesc, (size_t)p->optCt * sizeof(tOptDesc)); data/autogen-5.19.96/autoopts/restore.c:150: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(pOpts, p, sizeof(*p)); data/autogen-5.19.96/autoopts/restore.c:151: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(pOpts->pOptDesc, p+1, (size_t)p->optCt * sizeof(tOptDesc)); data/autogen-5.19.96/autoopts/restore.c:208:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pOpts, p, sizeof(*p)); data/autogen-5.19.96/autoopts/restore.c:209:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pOpts->pOptDesc, p+1, (size_t)p->optCt * sizeof(tOptDesc)); data/autogen-5.19.96/autoopts/save.c:70: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 f_name[ AG_PATH_MAX+1 ]; data/autogen-5.19.96/autoopts/save.c:112: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 z[AG_PATH_MAX]; data/autogen-5.19.96/autoopts/save.c:141:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(z, res, (size_t)(dirchp - res)); data/autogen-5.19.96/autoopts/save.c:523:22: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open(fname, O_RDWR); data/autogen-5.19.96/autoopts/save.c:565: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(fname, "a" FOPEN_BINARY_FLAG); data/autogen-5.19.96/autoopts/save.c:727: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(buf+1, list, len + 1); data/autogen-5.19.96/autoopts/save.c:821:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(temp_str, dir, flen); data/autogen-5.19.96/autoopts/select.c:70:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char in[FD_SETSIZE / CHAR_BIT]; data/autogen-5.19.96/autoopts/select.c:71:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char out[FD_SETSIZE / CHAR_BIT]; data/autogen-5.19.96/autoopts/select.c:276:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char anyfds_in[FD_SETSIZE / CHAR_BIT]; data/autogen-5.19.96/autoopts/select.c:433:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&handle_rfds, rfds, sizeof (fd_set)); data/autogen-5.19.96/autoopts/select.c:434:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&handle_wfds, wfds, sizeof (fd_set)); data/autogen-5.19.96/autoopts/select.c:435:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&handle_xfds, xfds, sizeof (fd_set)); data/autogen-5.19.96/autoopts/select.c:509:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&handle_rfds, rfds, sizeof (fd_set)); data/autogen-5.19.96/autoopts/select.c:510:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&handle_wfds, wfds, sizeof (fd_set)); data/autogen-5.19.96/autoopts/select.c:511:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&handle_xfds, xfds, sizeof (fd_set)); data/autogen-5.19.96/autoopts/sort.c:303:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(opts->origArgVect + 1, opt_txt, data/autogen-5.19.96/autoopts/sort.c:306:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(opts->origArgVect + 1 + optsIdx, ppzOpds, data/autogen-5.19.96/autoopts/strdup.c:47:19: [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 (char *) memcpy (new, s, len); data/autogen-5.19.96/autoopts/sys_socket.in.h:116: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 __ss_padding[_SS_PADSIZE]; data/autogen-5.19.96/autoopts/text_mmap.c:133:32: [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). mapinfo->txt_zero_fd = open("/dev/zero", O_RDONLY); data/autogen-5.19.96/autoopts/text_mmap.c:202: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). mapinfo->txt_fd = open(fname, o_flag); data/autogen-5.19.96/autoopts/usage.c:234: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 help[24]; data/autogen-5.19.96/autoopts/usage.c:265:13: [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(help, "-h"); data/autogen-5.19.96/autoopts/usage.c:270:13: [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(help, "--help"); data/autogen-5.19.96/autoopts/usage.c:274:13: [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(help, "help"); data/autogen-5.19.96/autoopts/usage.c:655: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 z[ 80 ]; data/autogen-5.19.96/autoopts/usage.c:714: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 vfmt[sizeof(vfmtfmt)]; data/autogen-5.19.96/autoopts/usage.c:891: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 pth_buf[AG_PATH_MAX+1]; data/autogen-5.19.96/autoopts/usage.c:984: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 z[80]; data/autogen-5.19.96/columns/columns.c:43:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char zLine[ LINE_LIMIT ]; data/autogen-5.19.96/columns/columns.c:44:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char zFmtLine[ LINE_LIMIT ]; data/autogen-5.19.96/columns/columns.c:132: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 pfx_buf[24 + sizeof(pad_fmt)]; data/autogen-5.19.96/columns/columns.c:160:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, OPT_ARG(LINE_SEPARATION), len); data/autogen-5.19.96/columns/columns.c:398: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 zFmt[ 12 ]; data/autogen-5.19.96/columns/columns.c:552: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 zFmt[32]; data/autogen-5.19.96/columns/opts.c:81:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char const columns_opt_strs[2139] = data/autogen-5.19.96/columns/opts.c:759:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char const * const apzHomeList[3] = { data/autogen-5.19.96/compat/pathfind.c:207: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(res, path, psz); data/autogen-5.19.96/compat/pathfind.c:246: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 zPath[ AG_PATH_MAX + 1 ]; data/autogen-5.19.96/compat/strftime.c:88:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define memcpy(d, s, n) bcopy ((s), (d), (n)) data/autogen-5.19.96/compat/strftime.c:88:26: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define memcpy(d, s, n) bcopy ((s), (d), (n)) data/autogen-5.19.96/compat/strftime.c:177:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char const spaces[16] = " "; data/autogen-5.19.96/compat/strftime.c:186:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((P), spaces, (size_t) _this); \ data/autogen-5.19.96/compat/strftime.c:221: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. memcpy ((PTR) p, (PTR) (s), (size_t) _n)) data/autogen-5.19.96/compat/strftime.c:426:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1 + (sizeof (int) < sizeof (time_t) data/autogen-5.19.96/compat/windows-config.h:93:9: [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). #define open _open data/autogen-5.19.96/getdefs/gdemit.c:173: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 zEntryName[ MAXNAMELEN ]; data/autogen-5.19.96/getdefs/gdemit.c:390: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(out, pfx, sizeof(pfx) - 1); data/autogen-5.19.96/getdefs/gdemit.c:488: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(pzOut, zEnd, sizeof(zEnd)); data/autogen-5.19.96/getdefs/gdinit.c:66:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pzD, pzR, len); data/autogen-5.19.96/getdefs/gdinit.c:170: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 z[ 4096 ]; data/autogen-5.19.96/getdefs/gdinit.c:291: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 zRER[MAXNAMELEN]; data/autogen-5.19.96/getdefs/getdefs.c:153:14: [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. pzOut += sprintf(pzOut, "[%d]", idx); data/autogen-5.19.96/getdefs/getdefs.c:196: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 def_bf[ MAXNAMELEN * 2 + 8 ]; data/autogen-5.19.96/getdefs/getdefs.c:197: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 name_bf[ MAXNAMELEN ]; data/autogen-5.19.96/getdefs/getdefs.c:213:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(def_str, def_scan, len); data/autogen-5.19.96/getdefs/getdefs.c:231:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(name_bf, def_scan, len); data/autogen-5.19.96/getdefs/getdefs.c:370: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 zRER[ MAXNAMELEN ]; data/autogen-5.19.96/getdefs/getdefs.c:406:10: [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(pzOut, "};\n#endif\n"); data/autogen-5.19.96/getdefs/getdefs.c:407:10: [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. else strcpy(pzOut, "};\n"); data/autogen-5.19.96/getdefs/getdefs.c:577: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). FILE * fp = fopen(pzFname, "r" FOPEN_BINARY_FLAG); data/autogen-5.19.96/getdefs/getdefs.c:784: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 zNm[ 128 ] = { NUL }; data/autogen-5.19.96/getdefs/getdefs.c:846: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(OPT_ARG(OUTPUT), "w" FOPEN_BINARY_FLAG); data/autogen-5.19.96/getdefs/getdefs.c:995:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(pzBase, "-b"); data/autogen-5.19.96/getdefs/getdefs.c:1006:13: [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(pzBase, "-b"); data/autogen-5.19.96/getdefs/getdefs.c:1023: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 zSrch[ MAXPATHLEN ]; data/autogen-5.19.96/getdefs/getdefs.c:1032:13: [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(pzBase, "-b"); data/autogen-5.19.96/getdefs/getdefs.c:1077: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(OPT_ARG(ORDERING), "a" FOPEN_BINARY_FLAG); data/autogen-5.19.96/getdefs/getdefs.c:1081: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(OPT_ARG(ORDERING), "w" FOPEN_BINARY_FLAG); data/autogen-5.19.96/getdefs/getdefs.h:49:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char zUserNameCh[ 256 ] = { '\0' }; data/autogen-5.19.96/snprintfv/filament.c:160: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 (fil->value, init, len); data/autogen-5.19.96/snprintfv/filament.c:185:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. value = memcpy (snv_new (char, 1 + fil->length), data/autogen-5.19.96/snprintfv/filament.c:220:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (fil->value, fil->buffer, fil->length); data/autogen-5.19.96/snprintfv/filament.h:56:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[FILAMENT_BUFSIZ]; /* usually string == &buffer[0] */ data/autogen-5.19.96/snprintfv/filament.h:197:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (fil->value + fil->length, str, n); data/autogen-5.19.96/snprintfv/format.c:335: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 expbuf[10]; data/autogen-5.19.96/snprintfv/format.c:816:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[LDBL_MAX_10_EXP * 2 + 20], *p = buffer; data/autogen-5.19.96/snprintfv/format.c:818:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[DBL_MAX_10_EXP * 2 + 20], *p = buffer; data/autogen-5.19.96/snprintfv/format.c:913:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[256], *p, *end; data/autogen-5.19.96/snprintfv/mem.c:72: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 (result, str, len + 1); data/autogen-5.19.96/snprintfv/printf.c:1002:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[1] = { 0 }; data/autogen-5.19.96/xml2ag/fork.c:39:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(av, xml2agOptions.origArgVect, csz); data/autogen-5.19.96/xml2ag/fork.c:146:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pz, xml2agOptions.pzProgPath, len); data/autogen-5.19.96/xml2ag/fork.c:202:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(pzArg, "--loop-limit=%d", (int)OPT_VALUE_LOOP_LIMIT); data/autogen-5.19.96/xml2ag/fork.c:208:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(pzArg, "--timeout=%d", (int)OPT_VALUE_TIMEOUT); data/autogen-5.19.96/xml2ag/xml2ag.c:187: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 zNil[1] = ""; data/autogen-5.19.96/xml2ag/xmlopts.c:78:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char const xml2ag_opt_strs[2872] = data/autogen-5.19.96/xml2ag/xmlopts.c:1033: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 const * const names[7] = { data/autogen-5.19.96/agen5/agCgi.c:80: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). assert(rsz > strlen(res)); data/autogen-5.19.96/agen5/agCgi.c:81: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). return AGREALOC(res, strlen(res)+1, "CGI input"); data/autogen-5.19.96/agen5/agCgi.c:146: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). len = strlen(cgi_query); data/autogen-5.19.96/agen5/agDep.c:74: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). size_t l = strlen(pz); data/autogen-5.19.96/agen5/agDep.c:147: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). size_t l = strlen(pz); data/autogen-5.19.96/agen5/agDep.c:198: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). dep_name_len = strlen(OPT_ARG(BASE_NAME)); data/autogen-5.19.96/agen5/agDep.c:205: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). dep_name_len = strlen(dep_file); data/autogen-5.19.96/agen5/agDep.c:262: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 pnm_sz = strlen(pnm); data/autogen-5.19.96/agen5/agDep.c:263: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 bnm_sz = strlen(bnm); data/autogen-5.19.96/agen5/agDep.c:399: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). tmpdir_len = strlen(TMPDIR); data/autogen-5.19.96/agen5/agDep.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). q = p + strlen(p) - (TEMP_SUFFIX_LEN - 2); data/autogen-5.19.96/agen5/agDep.c:448: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). size_t ln = strlen(pz); data/autogen-5.19.96/agen5/agInit.c:104:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t sz = strlen(str) + 1; data/autogen-5.19.96/agen5/agInit.c:289:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t psz = strlen(ld_lib_path) + 1; data/autogen-5.19.96/agen5/agShell.c:163:5: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(100000); /* 1/10 of a second */ data/autogen-5.19.96/agen5/agShell.c:288: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). + strlen(autogenOptions.pzProgPath), data/autogen-5.19.96/agen5/agShell.c:562: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 llen = strlen(zLine); data/autogen-5.19.96/agen5/agUtils.c:97: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). pzD = AGALOC(strlen(pz)+1, "derived base"); data/autogen-5.19.96/agen5/agUtils.c:123:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t siz = strlen(pz)+3; data/autogen-5.19.96/agen5/agUtils.c:252: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). char * pz = AGALOC(strlen(mdep) + 5, "mdep"); data/autogen-5.19.96/agen5/autogen.c:476: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). msg += strlen(msg); data/autogen-5.19.96/agen5/autogen.c:618:58: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). die(AUTOGEN_EXIT_FS_ERROR, STRDUP_FAIL_FMT, (int)strlen(str)); data/autogen-5.19.96/agen5/defDirect.c:54: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). return scan + strlen(scan); data/autogen-5.19.96/agen5/defDirect.c:157: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). else dirv_end = scan + strlen(scan); data/autogen-5.19.96/agen5/defDirect.c:211: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). else res = scan + strlen(scan); data/autogen-5.19.96/agen5/defDirect.c:254: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). else res = scan + strlen(scan); data/autogen-5.19.96/agen5/defDirect.c:342:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(z, dir, 31); data/autogen-5.19.96/agen5/defDirect.c:895:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pCtx = (scan_ctx_t *)AGALOC(sizeof(scan_ctx_t) + strlen(pzText) + 4, data/autogen-5.19.96/agen5/defFind.c:440: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). canonical_name(zDefinitionName, name, (int)strlen(name)); data/autogen-5.19.96/agen5/defFind.c:661: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). z_len = strlen(pz) + 1; data/autogen-5.19.96/agen5/defFind.c:766:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(zDefinitionName, name, sizeof(zDefinitionName) - 1); data/autogen-5.19.96/agen5/defFind.c:771: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). canonical_name(zDefinitionName, name, (int)strlen(name)); data/autogen-5.19.96/agen5/defLex.c:118: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). pz = cctx->scx_scan + strlen(cctx->scx_scan); data/autogen-5.19.96/agen5/defLex.c:410: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(cctx->scx_scan) > 64 ) data/autogen-5.19.96/agen5/defLex.c:418: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(token_str) > 64 ) data/autogen-5.19.96/agen5/defLex.c:436:63: [1] (buffer) strlen: Does not handle 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 * pzEnd = (char *)skip_scheme(pzText, pzText + strlen(pzText)); data/autogen-5.19.96/agen5/defLex.c:463: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 ((int)strlen(pzEnd) >= schemeLen) { data/autogen-5.19.96/agen5/defLex.c:488:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * pzEnd = (char *)skip_scheme(pzText, pzText + strlen(pzText)); data/autogen-5.19.96/agen5/expExtract.c:157: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). ssize_t mlen = (ssize_t)(strlen(start) + strlen(end) + 3); data/autogen-5.19.96/agen5/expExtract.c:157: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). ssize_t mlen = (ssize_t)(strlen(start) + strlen(end) + 3); data/autogen-5.19.96/agen5/expExtract.c:191: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). pzE += strlen(end); data/autogen-5.19.96/agen5/expFormat.c:149:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((strlen(pfx_pz) == 2) && (*pfx_pz == '-')) { data/autogen-5.19.96/agen5/expFormat.c:340: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). msg_ln = strlen(msg); data/autogen-5.19.96/agen5/expFormat.c:389: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). size_t prefix_len = strlen(pfx) + 1; data/autogen-5.19.96/agen5/expFormat.c:406:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memmove(md, txt, strlen(txt) + 1); data/autogen-5.19.96/agen5/expFormat.c:415: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). txt = md + strlen(md); data/autogen-5.19.96/agen5/expFormat.c:447: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). p = res + strlen(res); data/autogen-5.19.96/agen5/expFormat.c:942: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). int pfx_size = (int)strlen(prefx); data/autogen-5.19.96/agen5/expOutput.c:56:18: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int ch = getc(fp); data/autogen-5.19.96/agen5/expOutput.c:85: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). ssize_t sz = (ssize_t)(strlen(fmt) + strlen(fname) + 24); data/autogen-5.19.96/agen5/expOutput.c:85: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). ssize_t sz = (ssize_t)(strlen(fmt) + strlen(fname) + 24); data/autogen-5.19.96/agen5/expOutput.c:574: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). size_t tmp_sz = strlen(tmpdir); data/autogen-5.19.96/agen5/expOutput.c:787:22: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int ch = fgetc(cur_fpstack->stk_fp); data/autogen-5.19.96/agen5/expOutput.c:874: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). osz = strlen(opz); data/autogen-5.19.96/agen5/expPrint.c:265: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). (strlen(end_adr) * 6) // e.g. "k" data/autogen-5.19.96/agen5/expPrint.c:267: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). + HIDE_EMAIL_END_FMT_LEN + strlen(disp)); data/autogen-5.19.96/agen5/expState.c:66: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). res += (int)strlen(de->de_val.dvu_text); data/autogen-5.19.96/agen5/expState.c:669: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). ssize_t sz = (ssize_t)(strlen(fmt) + strlen(args[0]) + 24); data/autogen-5.19.96/agen5/expState.c:669: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). ssize_t sz = (ssize_t)(strlen(fmt) + strlen(args[0]) + 24); data/autogen-5.19.96/agen5/expState.c:802: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). strlen(args[0]) + strlen(fmt) + LOG10_2to32 + 1); data/autogen-5.19.96/agen5/expState.c:802: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). strlen(args[0]) + strlen(fmt) + LOG10_2to32 + 1); data/autogen-5.19.96/agen5/expString.c:128: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). size_t needle_len = strlen(needle); data/autogen-5.19.96/agen5/expString.c:469: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). size_t pfx_size = strlen(prefix); data/autogen-5.19.96/agen5/fmemopen.c:74:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _Prop_( read, "Read from buffer" ) \ data/autogen-5.19.96/agen5/fmemopen.c:142:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). case 'r': *pRes = FLAG_BIT(read); data/autogen-5.19.96/agen5/fmemopen.c:152:37: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). case '+': *pRes |= FLAG_BIT(read) | FLAG_BIT(write); data/autogen-5.19.96/agen5/fmemopen.c:610:63: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cookie_read_function_t * pRd = (pFMC->mode & FLAG_BIT(read)) data/autogen-5.19.96/agen5/funcCase.c:140: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 vlen = strlen(pattern); data/autogen-5.19.96/agen5/funcCase.c:141: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 tlen = strlen(sample); data/autogen-5.19.96/agen5/funcCase.c:179: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). size_t vlen = strlen(pattern); data/autogen-5.19.96/agen5/funcCase.c:292: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 vlen = strlen(pattern); data/autogen-5.19.96/agen5/funcCase.c:293: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 tlen = strlen(sample); data/autogen-5.19.96/agen5/funcCase.c:329: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 vlen = strlen(pattern); data/autogen-5.19.96/agen5/funcCase.c:531: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). if (m[0].rm_eo != (int)strlen(sample)) data/autogen-5.19.96/agen5/funcCase.c:549: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). else if (m[0].rm_eo != (int)strlen(pzText)) data/autogen-5.19.96/agen5/funcCase.c:571: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). else if (m[0].rm_eo != (int)strlen(pzText)) data/autogen-5.19.96/agen5/funcCase.c:727:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( (m[0].rm_eo != (int)strlen( sample )) data/autogen-5.19.96/agen5/funcCase.c:746: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). else if ( (m[0].rm_eo != (int)strlen(pzText)) data/autogen-5.19.96/agen5/funcCase.c:769: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). else if ( (m[0].rm_eo != (int)strlen(pzText)) data/autogen-5.19.96/agen5/funcDef.c:125: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). pzScan = (char *)skip_expr(pzScan, strlen(pzScan)); data/autogen-5.19.96/agen5/funcDef.c:140: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). pzScan = (char *)skip_expr(pzScan, strlen(pzScan)); data/autogen-5.19.96/agen5/funcDef.c:353: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). pzText = (char *)skip_expr(pzText, strlen(pzText)); data/autogen-5.19.96/agen5/funcDef.c:755: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). + ((uint32_t)ct * sizeof(macro_t)) + strlen(scan) + 0x100; data/autogen-5.19.96/agen5/funcEval.c:705: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). copy += strlen(copy) + 1; data/autogen-5.19.96/agen5/funcFor.c:541: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). size_t nmlen = strlen(pzName); data/autogen-5.19.96/agen5/funcIf.c:71:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = (int)strlen(pz); data/autogen-5.19.96/agen5/functions.c:438: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). size_t cname_len = strlen(cname); data/autogen-5.19.96/agen5/functions.c:466: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). tpl->td_scan = cname + strlen(cname) + 1; data/autogen-5.19.96/agen5/functions.c:520:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(z+3, pzSrc, (size_t)60); data/autogen-5.19.96/agen5/loadPseudo.c:39: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). char * pzEnd = (char *)text + strlen(text); data/autogen-5.19.96/agen5/loadPseudo.c:97:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char const *pe = pzSfxFmt + strlen(pzSfxFmt); data/autogen-5.19.96/agen5/loadPseudo.c:153: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). str_length = strlen(pzSfxFmt); data/autogen-5.19.96/agen5/tpLoad.c:212: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 nm_len = strlen(in_name); data/autogen-5.19.96/agen5/tpLoad.c:233: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). nm_len = strlen(in_name); data/autogen-5.19.96/agen5/tpLoad.c:394: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). + strlen(fname) + 0x10) data/autogen-5.19.96/agen5/tpParse.c:208: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). pzEnd = (res != NULL) ? res : pz + strlen(pz); data/autogen-5.19.96/agen5/tpParse.c:339: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). ln, mac->md_end_idx, (unsigned int)strlen(pz)); data/autogen-5.19.96/agen5/tpProcess.c:433: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). open_output_file(out_file, strlen(out_file), write_mode, 0); data/autogen-5.19.96/autoopts/ag-char-map.h:518: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). if (s >= e) e = s + strlen(s); data/autogen-5.19.96/autoopts/ag-char-map.h:529: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). if (s == e) e += strlen(e); data/autogen-5.19.96/autoopts/autoopts.c:84: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). fprintf(stderr, zalloc_fail, (int)strlen(str)); data/autogen-5.19.96/autoopts/configfile.c:89: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). res = optionLoadNested(txt, fname, strlen(fname)); data/autogen-5.19.96/autoopts/configfile.c:480: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). return txt + strlen(txt); data/autogen-5.19.96/autoopts/configfile.c:586:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(dir_names[ix]); data/autogen-5.19.96/autoopts/configfile.c:642: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). size_t name_len = strlen(opts->pzProgName); data/autogen-5.19.96/autoopts/configfile.c:679: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(opts->pzPROGNAME); data/autogen-5.19.96/autoopts/configfile.c:793: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 nm_len = strlen(pznm); data/autogen-5.19.96/autoopts/configfile.c:1022:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(f_name); data/autogen-5.19.96/autoopts/configfile.c:1023:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t nln = strlen(opts->pzRcName) + 1; data/autogen-5.19.96/autoopts/enum.c:73:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(*(paz++)) + 1; data/autogen-5.19.96/autoopts/enum.c:168: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). size_t len = strlen((char *)name); data/autogen-5.19.96/autoopts/enum.c:359: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). len += strlen(nm_list[ix]) + PLUS_STR_LEN + 1; data/autogen-5.19.96/autoopts/enum.c:379: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). nln = strlen(nm_list[ix]); data/autogen-5.19.96/autoopts/env.c:223: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). nln = strlen(st.pOD->pz_NAME) + 1; data/autogen-5.19.96/autoopts/env.c:244: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). nln = strlen(st.pOD->pz_NAME) + 1; data/autogen-5.19.96/autoopts/find.c:266: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). opt_ambiguities(opts, name, (int)strlen(name)); data/autogen-5.19.96/autoopts/gettext.h:223: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). size_t msgctxt_len = strlen (msgctxt) + 1; data/autogen-5.19.96/autoopts/gettext.h:224:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t msgid_len = strlen (msgid) + 1; data/autogen-5.19.96/autoopts/gettext.h:271: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). size_t msgctxt_len = strlen (msgctxt) + 1; data/autogen-5.19.96/autoopts/gettext.h:272:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t msgid_len = strlen (msgid) + 1; data/autogen-5.19.96/autoopts/load.c:45: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). name_len = strlen(pz); data/autogen-5.19.96/autoopts/load.c:63: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). name_len = strlen(z); data/autogen-5.19.96/autoopts/load.c:128:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(fname); data/autogen-5.19.96/autoopts/load.c:226: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). fname_len = strlen(fname) + 1; // + NUL byte data/autogen-5.19.96/autoopts/load.c:277:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t dir_len = strlen(dir_part); data/autogen-5.19.96/autoopts/load.c:278:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t nm_len = strlen(name) + 1; data/autogen-5.19.96/autoopts/load.c:307:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t l = strlen(src) + 1; data/autogen-5.19.96/autoopts/load.c:312: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). end = txt + strlen(txt); data/autogen-5.19.96/autoopts/load.c:345: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). return txt + strlen(txt); data/autogen-5.19.96/autoopts/makeshell.c:202:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int ch = fgetc(fp); data/autogen-5.19.96/autoopts/makeshell.c:600: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). unsigned int max_match_ct = strlen(name) - 1; data/autogen-5.19.96/autoopts/makeshell.c:795: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). script_trailer = txt + strlen(txt) + START_MARK_LEN + 1; data/autogen-5.19.96/autoopts/nested.c:817: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). od->optArg.argString, od->pz_Name, strlen(od->pz_Name)); data/autogen-5.19.96/autoopts/parse-duration.c:184: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). ps = pz + strlen (pz); data/autogen-5.19.96/autoopts/parse-duration.c:196:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (in_pz) != 8) data/autogen-5.19.96/autoopts/parse-duration.c:282: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). ps = pz + strlen (pz); data/autogen-5.19.96/autoopts/parse-duration.c:294:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (in_pz) != 6) data/autogen-5.19.96/autoopts/parse-duration.c:396: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). char * pe = pz + strlen (pz); data/autogen-5.19.96/autoopts/pgusage.c:47: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). bfsz = TMP_FILE_FMT_LEN + strlen(tmpdir) + 10; data/autogen-5.19.96/autoopts/pgusage.c:54:24: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). mode_t svmsk = umask(cmask); data/autogen-5.19.96/autoopts/pgusage.c:56:15: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). (void)umask(svmsk); data/autogen-5.19.96/autoopts/pgusage.c:88: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). bfsz = 2 * strlen(fname) + strlen(pager) + PAGE_USAGE_FMT_LEN; data/autogen-5.19.96/autoopts/pgusage.c:88: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). bfsz = 2 * strlen(fname) + strlen(pager) + PAGE_USAGE_FMT_LEN; data/autogen-5.19.96/autoopts/putshell.c:108: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). size_t nl_len = strlen(nl); data/autogen-5.19.96/autoopts/save.c:156: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). size_t sz = strlen(res) + strlen(opts->pzRcName) + 2; data/autogen-5.19.96/autoopts/save.c:156: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). size_t sz = strlen(res) + strlen(opts->pzRcName) + 2; data/autogen-5.19.96/autoopts/save.c:240: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). space_ct = 17 - strlen(pz); data/autogen-5.19.96/autoopts/save.c:492: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 const name_len = strlen(opts->pzProgName); data/autogen-5.19.96/autoopts/save.c:521:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). new_sz = map_info.txt_size - strlen(scan); data/autogen-5.19.96/autoopts/save.c:527: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). else if (write(fd, next, strlen(next)) < 0) data/autogen-5.19.96/autoopts/save.c:724: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). size_t len = strlen(list); data/autogen-5.19.96/autoopts/select.c:138:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). BOOL read, write, except; data/autogen-5.19.96/autoopts/select.c:245:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read && (rbits->in[fd / CHAR_BIT] & (1 << (fd & (CHAR_BIT - 1))))) data/autogen-5.19.96/autoopts/strdup.c:41: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). size_t len = strlen (s) + 1; data/autogen-5.19.96/autoopts/text_mmap.c:100:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t rdct = read(mapinfo->txt_fd, pz, sz); data/autogen-5.19.96/autoopts/time.c:93: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). size_t sz = sizeof(fmt) + strlen(opts->pzPkgDataDir); data/autogen-5.19.96/autoopts/unistd.in.h:1487:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef read data/autogen-5.19.96/autoopts/unistd.in.h:1488:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define read rpl_read data/autogen-5.19.96/autoopts/unistd.in.h:1490:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_FUNCDECL_RPL (read, ssize_t, (int fd, void *buf, size_t count) data/autogen-5.19.96/autoopts/unistd.in.h:1492:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_RPL (read, ssize_t, (int fd, void *buf, size_t count)); data/autogen-5.19.96/autoopts/unistd.in.h:1495:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef read data/autogen-5.19.96/autoopts/unistd.in.h:1496:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define read _read data/autogen-5.19.96/autoopts/unistd.in.h:1498:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_MDA (read, ssize_t, (int fd, void *buf, size_t count)); data/autogen-5.19.96/autoopts/unistd.in.h:1503:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_SYS_CAST (read, ssize_t, (int fd, void *buf, size_t count)); data/autogen-5.19.96/autoopts/unistd.in.h:1505:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (read); data/autogen-5.19.96/autoopts/unistd.in.h:1507:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef read data/autogen-5.19.96/autoopts/unistd.in.h:1508:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define read _read data/autogen-5.19.96/autoopts/unistd.in.h:1853:11: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. # undef usleep data/autogen-5.19.96/autoopts/unistd.in.h:1854:12: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. # define usleep rpl_usleep data/autogen-5.19.96/autoopts/unistd.in.h:1856:19: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_FUNCDECL_RPL (usleep, int, (useconds_t n)); data/autogen-5.19.96/autoopts/unistd.in.h:1857:19: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_CXXALIAS_RPL (usleep, int, (useconds_t n)); data/autogen-5.19.96/autoopts/unistd.in.h:1860:19: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_FUNCDECL_SYS (usleep, int, (useconds_t n)); data/autogen-5.19.96/autoopts/unistd.in.h:1864:24: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_CXXALIAS_SYS_CAST (usleep, int, (useconds_t n)); data/autogen-5.19.96/autoopts/unistd.in.h:1866:19: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_CXXALIASWARN (usleep); data/autogen-5.19.96/autoopts/unistd.in.h:1868:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. # undef usleep data/autogen-5.19.96/autoopts/unistd.in.h:1870:18: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_WARN_ON_USE (usleep, "usleep is unportable - " data/autogen-5.19.96/autoopts/unlocked-io.h:51:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getc data/autogen-5.19.96/autoopts/unlocked-io.h:52:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc(_z) getc_unlocked (_z) data/autogen-5.19.96/autoopts/unlocked-io.h:54:29: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc_unlocked(_z) getc (_z) data/autogen-5.19.96/autoopts/unlocked-io.h:58:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getchar data/autogen-5.19.96/autoopts/unlocked-io.h:59:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getchar() getchar_unlocked () data/autogen-5.19.96/autoopts/unlocked-io.h:61:30: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getchar_unlocked() getchar () data/autogen-5.19.96/autoopts/unlocked-io.h:65:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef fgetc data/autogen-5.19.96/autoopts/unlocked-io.h:66:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define fgetc(_z) fgetc_unlocked (_z) data/autogen-5.19.96/autoopts/unlocked-io.h:68:30: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define fgetc_unlocked(_z) fgetc (_z) data/autogen-5.19.96/autoopts/usage.c:254:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(help + 2, od->pz_Name, 20); data/autogen-5.19.96/autoopts/usage.c:258:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(help, od->pz_Name, 20); data/autogen-5.19.96/autoopts/usage.c:418: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(text); data/autogen-5.19.96/autoopts/usage.c:732: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). l = strlen(od->pz_Name); data/autogen-5.19.96/columns/columns.c:91: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). OPT_VALUE_WIDTH -= (long int)strlen( OPT_ARG( LINE_SEPARATION)); data/autogen-5.19.96/columns/columns.c:143: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). ? strlen( OPT_ARG(LINE_SEPARATION)) : 0; data/autogen-5.19.96/columns/columns.c:159: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). len = strlen(OPT_ARG(LINE_SEPARATION)); data/autogen-5.19.96/columns/columns.c:243:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ? (int)strlen(OPT_ARG(SEPARATION)) : 0; data/autogen-5.19.96/columns/columns.c:259:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen( pzText ); data/autogen-5.19.96/columns/columns.c:512: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). char * pz = pzE + strlen( pzE ) data/autogen-5.19.96/columns/columns.c:513: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( OPT_ARG(SEPARATION)); data/autogen-5.19.96/columns/columns.c:545: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). pz += strlen(pz) - strlen( OPT_ARG(SEPARATION)); data/autogen-5.19.96/columns/columns.c:545: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). pz += strlen(pz) - strlen( OPT_ARG(SEPARATION)); data/autogen-5.19.96/compat/compat.h:129: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/autogen-5.19.96/compat/pathfind.c:88: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 res = strlen(path); data/autogen-5.19.96/compat/pathfind.c:166: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(path, upone, strlen(upone) + 1); data/autogen-5.19.96/compat/pathfind.c:175: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). memmove(++scn, upone, strlen(upone) + 1); data/autogen-5.19.96/compat/pathfind.c:217: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). memmove(noop, noop + 2, strlen(noop + 1)); data/autogen-5.19.96/compat/pathfind.c:320: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). result = malloc( 2 + strlen( dot_path ) + strlen( string ) ); data/autogen-5.19.96/compat/pathfind.c:320: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). result = malloc( 2 + strlen( dot_path ) + strlen( string ) ); data/autogen-5.19.96/compat/pathfind.c:322: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). result_len = (int)strlen(result); data/autogen-5.19.96/compat/pathfind.c:328: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). result = malloc( 3 + strlen( string ) ); data/autogen-5.19.96/compat/pathfind.c:353: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). if ((unsigned)ix >= strlen( string )) data/autogen-5.19.96/compat/snprintf.c:42: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). rval = strlen(rp); data/autogen-5.19.96/compat/snprintf.c:61: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). return (strlen(vsprintf(str, fmt, ap))); data/autogen-5.19.96/compat/strchr.c:51:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char const *e = s + strlen(s); data/autogen-5.19.96/compat/strftime.c:363: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). size_t aw_len = strlen (a_wkday); data/autogen-5.19.96/compat/strftime.c:364: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). size_t am_len = strlen (a_month); data/autogen-5.19.96/compat/strftime.c:365: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). size_t ap_len = strlen (ampm); data/autogen-5.19.96/compat/strftime.c:376:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t wkday_len = strlen (f_wkday); data/autogen-5.19.96/compat/strftime.c:377:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t month_len = strlen (f_month); data/autogen-5.19.96/compat/strftime.c:410: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). zonelen = strlen (zone); data/autogen-5.19.96/compat/strftime.c:637: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). size_t len = strlen (era->name_fmt); data/autogen-5.19.96/compat/strftime.c:696:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t digitlen = strlen (cp); data/autogen-5.19.96/compat/windows-config.h:95:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define read _read data/autogen-5.19.96/getdefs/gdemit.c:424: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). pzDefList += strlen(pzDefList) + 1; data/autogen-5.19.96/getdefs/gdemit.c:538: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). pcEnd = pzText + strlen(pzText); data/autogen-5.19.96/getdefs/gdinit.c:181:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * pz = z + strlen(z); data/autogen-5.19.96/getdefs/gdinit.c:271: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). size_t len = strlen((char *)pz) + 16; data/autogen-5.19.96/getdefs/gdinit.c:409: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). pzEndIndex = pzIndexEOF = pzIndexText + strlen(pzIndexText); data/autogen-5.19.96/getdefs/getdefs.c:62: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(pzDef); data/autogen-5.19.96/getdefs/getdefs.c:117:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(pzDef); data/autogen-5.19.96/getdefs/getdefs.c:360: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). pzOut += strlen(pzOut); data/autogen-5.19.96/getdefs/getdefs.c:700: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(pzDef) > 30) { data/autogen-5.19.96/getdefs/getdefs.c:737: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). pzOut = pzDta = (char *)malloc(2 * strlen(pzDef) + 8000); data/autogen-5.19.96/getdefs/getdefs.c:756:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pzDta = (char *)realloc(VOIDP(pzDta), strlen(pzDta) + 1); data/autogen-5.19.96/getdefs/getdefs.c:821: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). pzNew = (char *)malloc(strlen(pzOld) + nmLn + 10); data/autogen-5.19.96/getdefs/getdefs.c:994: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). pzBase = malloc(strlen(OPT_ARG(BASE_NAME)) + 3); data/autogen-5.19.96/getdefs/getdefs.c:1005: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). pzBase = malloc(strlen(pzS) + 3); data/autogen-5.19.96/getdefs/getdefs.c:1031: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). pzBase = malloc(strlen(pz) + 3); data/autogen-5.19.96/snprintfv/filament.h:219: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). size_t length = strlen (str); data/autogen-5.19.96/snprintfv/format.c:1126:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (p); data/autogen-5.19.96/snprintfv/mem.c:70: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). size_t len = strlen (str); data/autogen-5.19.96/snprintfv/stream.c:191: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). return (int)((size_t)num + strlen (s)); data/autogen-5.19.96/xml2ag/fork.c:139: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 * pz = malloc(strlen( xml2agOptions.pzProgPath ) + 7); data/autogen-5.19.96/xml2ag/fork.c:158:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pzArg = malloc(14 + strlen(pA)); data/autogen-5.19.96/xml2ag/fork.c:165: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). pzArg = malloc(15 + strlen( OPT_ARG( DEFINITIONS ))); data/autogen-5.19.96/xml2ag/fork.c:171: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). pzArg = malloc(9 + strlen( OPT_ARG( SHELL ))); data/autogen-5.19.96/xml2ag/fork.c:181: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). pzArg = malloc(10 + strlen( OPT_ARG( EQUATE ))); data/autogen-5.19.96/xml2ag/fork.c:187: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). pzArg = malloc(13 + strlen( OPT_ARG( BASE_NAME ))); data/autogen-5.19.96/xml2ag/fork.c:217: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). pzArg = malloc(9 + strlen( kwlist[ OPT_VALUE_TRACE ] )); data/autogen-5.19.96/xml2ag/fork.c:223: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). pzArg = malloc(13 + strlen( OPT_ARG( TRACE_OUT ))); data/autogen-5.19.96/xml2ag/fork.c:245:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pzArg = malloc(15 + strlen(pA)); data/autogen-5.19.96/xml2ag/fork.c:256:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pzArg = malloc(17 + strlen(pA)); data/autogen-5.19.96/xml2ag/fork.c:267:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pzArg = malloc(10 + strlen(pA)); data/autogen-5.19.96/xml2ag/fork.c:278:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pzArg = malloc(12 + strlen(pA)); data/autogen-5.19.96/xml2ag/fork.c:289:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pzArg = malloc(12 + strlen(pA)); data/autogen-5.19.96/xml2ag/xml2ag.c:203: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). char const * pzEnd = pzSrc + strlen( pzSrc ); ANALYSIS SUMMARY: Hits = 1080 Lines analyzed = 70490 in approximately 2.05 seconds (34429 lines/second) Physical Source Lines of Code (SLOC) = 40183 Hits@level = [0] 103 [1] 253 [2] 299 [3] 22 [4] 481 [5] 25 Hits@level+ = [0+] 1183 [1+] 1080 [2+] 827 [3+] 528 [4+] 506 [5+] 25 Hits/KSLOC@level+ = [0+] 29.4403 [1+] 26.877 [2+] 20.5808 [3+] 13.1399 [4+] 12.5924 [5+] 0.622154 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.