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/remake-4.3+dbg-1.5+dfsg/lib/error.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/dirname.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/alloca.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/fd-hook.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/stddef.in.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/error.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/getdtablesize.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/strerror-override.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/glob.in.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/xalloc.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/glob.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/stpcpy.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/alloca.in.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/basename-lgpl.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/exitfail.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/_Noreturn.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/concat-filename.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/msvc-inval.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/stdbool.in.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/msvc-inval.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/sys_types.in.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/access.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/limits.in.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/concat-filename.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/unistd.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/getprogname.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/dosname.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/dirname-lgpl.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/strerror.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/fcntl.in.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/dup2.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/exitfail.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/strerror-override.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/gettext.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/stripslash.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/findprog-in.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/arg-nonnull.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/malloc.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/msvc-nothrow.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/fnmatch.in.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/fd-hook.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/getprogname.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/c++defs.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/msvc-nothrow.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/fnmatch.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/intprops.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/warn-on-use.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/xalloc-die.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/stdint.in.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/string.in.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/fcntl.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/getloadavg.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/xmalloc.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/close.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/xconcat-filename.c Examining data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/findprog.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/xalloc-oversized.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/errno.in.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/filename.h Examining data/remake-4.3+dbg-1.5+dfsg/lib/verify.h Examining data/remake-4.3+dbg-1.5+dfsg/unittest/test_profile.c Examining data/remake-4.3+dbg-1.5+dfsg/glob/glob.c Examining data/remake-4.3+dbg-1.5+dfsg/glob/fnmatch.h Examining data/remake-4.3+dbg-1.5+dfsg/glob/fnmatch.c Examining data/remake-4.3+dbg-1.5+dfsg/glob/glob.h Examining data/remake-4.3+dbg-1.5+dfsg/src/implicit.h Examining data/remake-4.3+dbg-1.5+dfsg/src/getopt.c Examining data/remake-4.3+dbg-1.5+dfsg/src/profile.h Examining data/remake-4.3+dbg-1.5+dfsg/src/dep.h Examining data/remake-4.3+dbg-1.5+dfsg/src/rule.h Examining data/remake-4.3+dbg-1.5+dfsg/src/profile.c Examining data/remake-4.3+dbg-1.5+dfsg/src/function.h Examining data/remake-4.3+dbg-1.5+dfsg/src/buildargv.h Examining data/remake-4.3+dbg-1.5+dfsg/src/alloc.c Examining data/remake-4.3+dbg-1.5+dfsg/src/os.h Examining data/remake-4.3+dbg-1.5+dfsg/src/main.h Examining data/remake-4.3+dbg-1.5+dfsg/src/ar.c Examining data/remake-4.3+dbg-1.5+dfsg/src/mock.c Examining data/remake-4.3+dbg-1.5+dfsg/src/commands.c Examining data/remake-4.3+dbg-1.5+dfsg/src/dir.c Examining data/remake-4.3+dbg-1.5+dfsg/src/config.h Examining data/remake-4.3+dbg-1.5+dfsg/src/trace.c Examining data/remake-4.3+dbg-1.5+dfsg/src/variable.c Examining data/remake-4.3+dbg-1.5+dfsg/src/gnuremake.h Examining data/remake-4.3+dbg-1.5+dfsg/src/version.c Examining data/remake-4.3+dbg-1.5+dfsg/src/hash.h Examining data/remake-4.3+dbg-1.5+dfsg/src/misc.c Examining data/remake-4.3+dbg-1.5+dfsg/src/job.h Examining data/remake-4.3+dbg-1.5+dfsg/src/trace.h Examining data/remake-4.3+dbg-1.5+dfsg/src/implicit.c Examining data/remake-4.3+dbg-1.5+dfsg/src/filedef.h Examining data/remake-4.3+dbg-1.5+dfsg/src/expand.h Examining data/remake-4.3+dbg-1.5+dfsg/src/getopt.h Examining data/remake-4.3+dbg-1.5+dfsg/src/types.h Examining data/remake-4.3+dbg-1.5+dfsg/src/w32/w32os.c Examining data/remake-4.3+dbg-1.5+dfsg/src/make.h Examining data/remake-4.3+dbg-1.5+dfsg/src/job.c Examining data/remake-4.3+dbg-1.5+dfsg/src/strcache.c Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/cmd.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/msg.c Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/fns.c Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/break.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/stack.c Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/cmd.c Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/file2line.c Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/fns.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/break.c Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/file2line.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/setqx.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/eval.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/where.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/next.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/break.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/delete.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/show.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/skip.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/down.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/comment.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/setqx.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/where.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/next.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/break.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/delete.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/show.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/skip.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/down.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/comment.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/help.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/up.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/continue.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/write.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/edit.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/set.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/expand.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/step.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/quit.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/pwd.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/list.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/source.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/info.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/shell.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/print.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/finish.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/run.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/frame.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/setq.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/chdir.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/load.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help/target.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/up.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/continue.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/write.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/edit.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/set.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/expand.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/step.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/quit.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/pwd.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/list.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/source.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/info.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/shell.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/print.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/finish.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/run.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/frame.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/setq.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/chdir.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/load.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/target.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/stack.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/info.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/msg.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger/subcmd.h Examining data/remake-4.3+dbg-1.5+dfsg/src/file.h Examining data/remake-4.3+dbg-1.5+dfsg/src/gettext.h Examining data/remake-4.3+dbg-1.5+dfsg/src/output.c Examining data/remake-4.3+dbg-1.5+dfsg/src/function.c Examining data/remake-4.3+dbg-1.5+dfsg/src/posixos.c Examining data/remake-4.3+dbg-1.5+dfsg/src/globals.h Examining data/remake-4.3+dbg-1.5+dfsg/src/guile.c Examining data/remake-4.3+dbg-1.5+dfsg/src/debug.h Examining data/remake-4.3+dbg-1.5+dfsg/src/variable.h Examining data/remake-4.3+dbg-1.5+dfsg/src/read.h Examining data/remake-4.3+dbg-1.5+dfsg/src/print.h Examining data/remake-4.3+dbg-1.5+dfsg/src/load.c Examining data/remake-4.3+dbg-1.5+dfsg/src/globals.c Examining data/remake-4.3+dbg-1.5+dfsg/src/remake.c Examining data/remake-4.3+dbg-1.5+dfsg/src/makeint.h Examining data/remake-4.3+dbg-1.5+dfsg/src/gmk-default.h Examining data/remake-4.3+dbg-1.5+dfsg/src/default.c Examining data/remake-4.3+dbg-1.5+dfsg/src/print.c Examining data/remake-4.3+dbg-1.5+dfsg/src/vpath.c Examining data/remake-4.3+dbg-1.5+dfsg/src/file_basic.h Examining data/remake-4.3+dbg-1.5+dfsg/src/debug.c Examining data/remake-4.3+dbg-1.5+dfsg/src/main.c Examining data/remake-4.3+dbg-1.5+dfsg/src/remote-stub.c Examining data/remake-4.3+dbg-1.5+dfsg/src/getopt1.c Examining data/remake-4.3+dbg-1.5+dfsg/src/mock.h Examining data/remake-4.3+dbg-1.5+dfsg/src/signame.c Examining data/remake-4.3+dbg-1.5+dfsg/src/file_basic.c Examining data/remake-4.3+dbg-1.5+dfsg/src/read.c Examining data/remake-4.3+dbg-1.5+dfsg/src/vpath.h Examining data/remake-4.3+dbg-1.5+dfsg/src/commands.h Examining data/remake-4.3+dbg-1.5+dfsg/src/expand.c Examining data/remake-4.3+dbg-1.5+dfsg/src/arscan.c Examining data/remake-4.3+dbg-1.5+dfsg/src/rule.c Examining data/remake-4.3+dbg-1.5+dfsg/src/buildargv.c Examining data/remake-4.3+dbg-1.5+dfsg/src/debugger.h Examining data/remake-4.3+dbg-1.5+dfsg/src/output.h Examining data/remake-4.3+dbg-1.5+dfsg/src/hash.c Examining data/remake-4.3+dbg-1.5+dfsg/src/loadapi.c Examining data/remake-4.3+dbg-1.5+dfsg/src/remote-cstms.c Examining data/remake-4.3+dbg-1.5+dfsg/src/file.c FINAL RESULTS: data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:784:8: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. #undef gets data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:786:18: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); data/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:287: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:301: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:302: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:304: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:306: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:309: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:312: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:314: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:316: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:318: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1370: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1372: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1375: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1379: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1383: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1386: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1388: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1390: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/remake-4.3+dbg-1.5+dfsg/src/remake.c:1631:28: [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. EINTRLOOP (llen, readlink (lpath, lbuf, GET_PATH_MAX)); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:289:14: [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. extern char *getlogin __P ((void)); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:656:26: [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. success = (name = getlogin ()) != NULL; data/remake-4.3+dbg-1.5+dfsg/lib/access.c:26:1: [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. access (const char *file, int mode) data/remake-4.3+dbg-1.5+dfsg/lib/error.c:274: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, message, args); data/remake-4.3+dbg-1.5+dfsg/lib/error.c:389:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (stderr, file_name != NULL ? "%s:%u: " : " ", data/remake-4.3+dbg-1.5+dfsg/lib/getloadavg.c:833:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (name_list[0].n_name, LDAV_SYMBOL); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:294:14: [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. extern char *getlogin __P ((void)); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:657:26: [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. success = (name = getlogin ()) != NULL; data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:321:12: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define fprintf rpl_fprintf data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:325:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (fprintf, int, (FILE *fp, const char *format, ...) data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:329:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_FUNCDECL_RPL (fprintf, int, (FILE *fp, const char *format, ...) data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:333:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_RPL (fprintf, int, (FILE *fp, const char *format, ...)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:335:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIAS_SYS (fprintf, int, (FILE *fp, const char *format, ...)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:338:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_CXXALIASWARN (fprintf); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:343: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. # undef fprintf data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:346:18: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _GL_WARN_ON_USE (fprintf, "fprintf is not always POSIX compliant - " data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:458:11: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef fscanf data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:459:12: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define fscanf rpl_fscanf data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:461:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (fscanf, int, (FILE *stream, const char *format, ...) data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:464:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (fscanf, int, (FILE *stream, const char *format, ...)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:466:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (fscanf, int, (FILE *stream, const char *format, ...)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:469:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIASWARN (fscanf); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:880:11: [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. # undef popen data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:881:12: [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. # define popen rpl_popen data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:883:19: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_FUNCDECL_RPL (popen, FILE *, (const char *cmd, const char *mode) data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:885:19: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_CXXALIAS_RPL (popen, FILE *, (const char *cmd, const char *mode)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:888:19: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_FUNCDECL_SYS (popen, FILE *, (const char *cmd, const char *mode) data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:891:19: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_CXXALIAS_SYS (popen, FILE *, (const char *cmd, const char *mode)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:893:19: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_CXXALIASWARN (popen); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:895:9: [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. # undef popen data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:897:18: [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. _GL_WARN_ON_USE (popen, "popen is buggy on some platforms - " data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:908: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. # define printf __printf__ data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:925:21: [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. _GL_CXXALIAS_RPL_1 (printf, __printf__, int, (const char *format, ...)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:928: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. # define printf rpl_printf data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:930:19: [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. _GL_FUNCDECL_RPL (printf, int, data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:934:19: [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. _GL_CXXALIAS_RPL (printf, int, (const char *format, ...)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:938:19: [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. _GL_CXXALIAS_SYS (printf, int, (const char *format, ...)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:941:19: [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. _GL_CXXALIASWARN (printf); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:946:10: [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/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:949:18: [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. _GL_WARN_ON_USE (printf, "printf is not always POSIX compliant - " data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1081:12: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef scanf data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1083:13: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define scanf __scanf__ data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1091:21: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL_1 (scanf, __scanf__, int, (const char *format, ...)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1094:12: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef scanf data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1095:13: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define scanf rpl_scanf data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1097:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (scanf, int, (const char *format, ...) data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1100:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (scanf, int, (const char *format, ...)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1103:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (scanf, int, (const char *format, ...)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1106:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIASWARN (scanf); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1113:12: [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 rpl_snprintf data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1115:19: [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. _GL_FUNCDECL_RPL (snprintf, int, data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1119:19: [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. _GL_CXXALIAS_RPL (snprintf, int, data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1123:19: [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. _GL_FUNCDECL_SYS (snprintf, int, data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1128:19: [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. _GL_CXXALIAS_SYS (snprintf, int, data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1131:19: [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. _GL_CXXALIASWARN (snprintf); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1133: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. # undef snprintf data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1135: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. _GL_WARN_ON_USE (snprintf, "snprintf is unportable - " data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1152:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define sprintf rpl_sprintf data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1154:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_FUNCDECL_RPL (sprintf, int, (char *str, const char *format, ...) data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1157:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_RPL (sprintf, int, (char *str, const char *format, ...)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1159:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_SYS (sprintf, int, (char *str, const char *format, ...)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1162:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIASWARN (sprintf); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1165:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # undef sprintf data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1167:18: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_WARN_ON_USE (sprintf, "sprintf is not always POSIX compliant - " data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1277:12: [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 rpl_vfprintf data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1281:19: [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. _GL_FUNCDECL_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args) data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1285:19: [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. _GL_FUNCDECL_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args) data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1289:19: [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. _GL_CXXALIAS_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1294:24: [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. _GL_CXXALIAS_SYS_CAST (vfprintf, int, data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1298:19: [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. _GL_CXXALIASWARN (vfprintf); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1303:10: [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/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1306:18: [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. _GL_WARN_ON_USE (vfprintf, "vfprintf is not always POSIX compliant - " data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1314:11: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef vfscanf data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1315:12: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define vfscanf rpl_vfscanf data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1317:19: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (vfscanf, int, data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1321:19: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (vfscanf, int, data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1324:19: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (vfscanf, int, data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1327:19: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIASWARN (vfscanf); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1334:12: [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 rpl_vprintf data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1338:19: [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. _GL_FUNCDECL_RPL (vprintf, int, (const char *format, va_list args) data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1342:19: [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. _GL_FUNCDECL_RPL (vprintf, int, (const char *format, va_list args) data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1346:19: [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. _GL_CXXALIAS_RPL (vprintf, int, (const char *format, va_list args)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1351:24: [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. _GL_CXXALIAS_SYS_CAST (vprintf, int, (const char *format, va_list args)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1354:19: [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. _GL_CXXALIASWARN (vprintf); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1359:10: [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/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1362:18: [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. _GL_WARN_ON_USE (vprintf, "vprintf is not always POSIX compliant - " data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1370:11: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef vscanf data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1371:12: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define vscanf rpl_vscanf data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1373:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (vscanf, int, (const char *format, va_list args) data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1376:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (vscanf, int, (const char *format, va_list args)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1378:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (vscanf, int, (const char *format, va_list args)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1380:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIASWARN (vscanf); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1386:12: [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 rpl_vsnprintf data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1388:19: [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. _GL_FUNCDECL_RPL (vsnprintf, int, data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1392:19: [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. _GL_CXXALIAS_RPL (vsnprintf, int, data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1396:19: [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. _GL_FUNCDECL_SYS (vsnprintf, int, data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1401:19: [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. _GL_CXXALIAS_SYS (vsnprintf, int, data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1404:19: [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. _GL_CXXALIASWARN (vsnprintf); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1406: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. # undef vsnprintf data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1408:18: [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. _GL_WARN_ON_USE (vsnprintf, "vsnprintf is unportable - " data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1416:12: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define vsprintf rpl_vsprintf data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1418:19: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_FUNCDECL_RPL (vsprintf, int, data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1422:19: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_RPL (vsprintf, int, data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1428:24: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_SYS_CAST (vsprintf, int, data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1432:19: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIASWARN (vsprintf); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1435:9: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # undef vsprintf data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1437:18: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_WARN_ON_USE (vsprintf, "vsprintf is not always POSIX compliant - " data/remake-4.3+dbg-1.5+dfsg/lib/strerror.c:33:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef sprintf data/remake-4.3+dbg-1.5+dfsg/lib/strerror.c:59:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (buf, fmt, n); data/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:259: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:260: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:262: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:264: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:266: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:268: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:270: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:273: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:846: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:848: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:849: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:851: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:853: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:994: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:995: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:997: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:999: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1002: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1005: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1007: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1009: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1011: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/remake-4.3+dbg-1.5+dfsg/src/alloc.c:83:10: [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). return strcpy (result, ptr); data/remake-4.3+dbg-1.5+dfsg/src/debug.h:136:4: [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 _x; fflush (stdout) data/remake-4.3+dbg-1.5+dfsg/src/debug.h:168:39: [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 (_x, file->name); \ data/remake-4.3+dbg-1.5+dfsg/src/debug.h:171:39: [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 DB(_l,_x) do{ if(ISDB(_l)) {printf _x; fflush (stdout);} }while(0) data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/edit.h:40:12: [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. rc = system (edit_cmd); data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help.h:33:7: [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(psz_fmt, p_subcmd->name, p_subcmd->short_doc); data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/list.h:81:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(target_cmd, "%s%s", psz_target, DEPENDS_COMMANDS); data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/run.h:21:3: [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 (psz_make_cmd, ppsz_argv); data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/shell.h:25:10: [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. int rc=system(psz_varname); data/remake-4.3+dbg-1.5+dfsg/src/debugger/fns.c:396:30: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. if (psz_nodollar && 1 == sscanf(psz_nodollar, "(%s)", psz_try)) { data/remake-4.3+dbg-1.5+dfsg/src/debugger/msg.c:34:40: [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 VA_PRINTF(fp, lastarg, args) vfprintf((fp), (lastarg), (args)) data/remake-4.3+dbg-1.5+dfsg/src/debugger/msg.c:44:39: [4] (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 VA_PRINTF(fp, lastarg, args) fprintf((fp), (lastarg), va_alist) data/remake-4.3+dbg-1.5+dfsg/src/function.c:1061:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (p, *argvp); data/remake-4.3+dbg-1.5+dfsg/src/function.c:1066:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (p, *argvp); data/remake-4.3+dbg-1.5+dfsg/src/function.c:1581:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buf, "SHELL=%s", sh->value); data/remake-4.3+dbg-1.5+dfsg/src/function.c:1592:11: [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. fpipe = popen (text, "rt"); data/remake-4.3+dbg-1.5+dfsg/src/function.c:1880:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (apath, starting_directory); data/remake-4.3+dbg-1.5+dfsg/src/implicit.c:526:21: [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 (depname, nptr); data/remake-4.3+dbg-1.5+dfsg/src/implicit.c:539:23: [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 (o, p + 1); data/remake-4.3+dbg-1.5+dfsg/src/job.c:223:23: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. unsigned size = sprintf (temp_path + path_size, data/remake-4.3+dbg-1.5+dfsg/src/job.c:1316:23: [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. proc_return = system (cmdline); data/remake-4.3+dbg-1.5+dfsg/src/job.c:1707:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (n, "%s:%lu", cmds->fileinfo.filenm, cmds->fileinfo.lineno); data/remake-4.3+dbg-1.5+dfsg/src/job.c:2245:3: [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/remake-4.3+dbg-1.5+dfsg/src/job.c:2278: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 (shell, new_argv); data/remake-4.3+dbg-1.5+dfsg/src/job.c:3141: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 (shell, p); data/remake-4.3+dbg-1.5+dfsg/src/load.c:200:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (p, SYMBOL_EXTENSION); data/remake-4.3+dbg-1.5+dfsg/src/load.c:225:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (&newval[loadlen], *ldname); data/remake-4.3+dbg-1.5+dfsg/src/main.c:798:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (errmsg, data/remake-4.3+dbg-1.5+dfsg/src/main.c:801:7: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (stderr, errmsg); data/remake-4.3+dbg-1.5+dfsg/src/main.c:805:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (errmsg, data/remake-4.3+dbg-1.5+dfsg/src/main.c:812:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (&errmsg[strlen(errmsg)], data/remake-4.3+dbg-1.5+dfsg/src/main.c:840:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf (stderr, errmsg); data/remake-4.3+dbg-1.5+dfsg/src/main.c:889:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (sh_path, "%s", search_token); data/remake-4.3+dbg-1.5+dfsg/src/main.c:904:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (sh_path, "%s", search_token); data/remake-4.3+dbg-1.5+dfsg/src/main.c:927:15: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (sh_path, "%s/%s", p, search_token); data/remake-4.3+dbg-1.5+dfsg/src/main.c:949:15: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (sh_path, "%s/%s", p, search_token); data/remake-4.3+dbg-1.5+dfsg/src/main.c:1657: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 (template, tmpdir); data/remake-4.3+dbg-1.5+dfsg/src/main.c:1669: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 (template, DEFAULT_TMPFILE); data/remake-4.3+dbg-1.5+dfsg/src/main.c:2254:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (*p, "%s=%u", MAKELEVEL_NAME, makelevel); data/remake-4.3+dbg-1.5+dfsg/src/main.c:2259:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (*p, "MAKE_RESTARTS=%s%u", data/remake-4.3+dbg-1.5+dfsg/src/main.c:2270:15: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (b, "MAKE_RESTARTS=%s%u", data/remake-4.3+dbg-1.5+dfsg/src/main.c:3056:11: [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, flags->cs->long_name); data/remake-4.3+dbg-1.5+dfsg/src/make.h:198:22: [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__ printf data/remake-4.3+dbg-1.5+dfsg/src/makeint.h:226:21: [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__ printf data/remake-4.3+dbg-1.5+dfsg/src/misc.c:352:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (filenm, ".make-spin-%s", type); data/remake-4.3+dbg-1.5+dfsg/src/misc.c:377:7: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). char *mktemp (char *template); data/remake-4.3+dbg-1.5+dfsg/src/misc.c:406:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (*name, template); data/remake-4.3+dbg-1.5+dfsg/src/misc.c:417:10: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). (void) mktemp (*name); data/remake-4.3+dbg-1.5+dfsg/src/output.c:135:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (p, fmt , program); data/remake-4.3+dbg-1.5+dfsg/src/output.c:137:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (p, fmt, program, starting_directory); data/remake-4.3+dbg-1.5+dfsg/src/output.c:139:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (p, fmt, program, makelevel); data/remake-4.3+dbg-1.5+dfsg/src/output.c:141:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (p, fmt, program, makelevel, starting_directory); data/remake-4.3+dbg-1.5+dfsg/src/output.c:572:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (p, "%s: ", program); data/remake-4.3+dbg-1.5+dfsg/src/output.c:574:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (p, "%s[%u]: ", program, makelevel); data/remake-4.3+dbg-1.5+dfsg/src/output.c:579:3: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf (p, fmt, args); data/remake-4.3+dbg-1.5+dfsg/src/output.c:602:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (p, "%s:%lu: ", flocp->filenm, flocp->lineno + flocp->offset); data/remake-4.3+dbg-1.5+dfsg/src/output.c:604:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (p, "%s: ", program); data/remake-4.3+dbg-1.5+dfsg/src/output.c:606:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (p, "%s[%u]: ", program, makelevel); data/remake-4.3+dbg-1.5+dfsg/src/output.c:610:3: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf (p, fmt, args); data/remake-4.3+dbg-1.5+dfsg/src/output.c:634:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (p, "%s:%lu: *** ", flocp->filenm, flocp->lineno + flocp->offset); data/remake-4.3+dbg-1.5+dfsg/src/output.c:636:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (p, "%s: *** ", program); data/remake-4.3+dbg-1.5+dfsg/src/output.c:638:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (p, "%s[%u]: *** ", program, makelevel); data/remake-4.3+dbg-1.5+dfsg/src/output.c:642:3: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf (p, fmt, args); data/remake-4.3+dbg-1.5+dfsg/src/output.c:645:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (p, stop); data/remake-4.3+dbg-1.5+dfsg/src/print.c:85:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (p, fmt , program); data/remake-4.3+dbg-1.5+dfsg/src/print.c:87:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (p, fmt, program, starting_directory); data/remake-4.3+dbg-1.5+dfsg/src/print.c:89:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (p, fmt, program, makelevel); data/remake-4.3+dbg-1.5+dfsg/src/print.c:91:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (p, fmt, program, makelevel, starting_directory); data/remake-4.3+dbg-1.5+dfsg/src/print.c:123:3: [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, args); data/remake-4.3+dbg-1.5+dfsg/src/print.c:165:3: [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, args); data/remake-4.3+dbg-1.5+dfsg/src/profile.c:165:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. len = sprintf(callgrind_fname, CALLGRIND_FILE_TEMPLATE, callgrind_pid); data/remake-4.3+dbg-1.5+dfsg/src/profile.c:179:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(callgrind_fd, CALLGRIND_PREAMBLE_TEMPLATE1, data/remake-4.3+dbg-1.5+dfsg/src/profile.c:263:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(callgrind_fd, CALLGRIND_PREAMBLE_TEMPLATE2, callgrind_pid, data/remake-4.3+dbg-1.5+dfsg/src/read.c:746:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (collapsed, line); data/remake-4.3+dbg-1.5+dfsg/src/read.c:3016: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). strcat (strcpy (defdir, djdir->value), "/include"); data/remake-4.3+dbg-1.5+dfsg/src/read.c:3083:27: [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. char *logname = getlogin (); data/remake-4.3+dbg-1.5+dfsg/src/remake.c:819:15: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (fmt, dep_name (d), file->name); data/remake-4.3+dbg-1.5+dfsg/src/remake.c:1603:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (lpath, name); data/remake-4.3+dbg-1.5+dfsg/src/remake.c:1644: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 (lpath, lbuf); data/remake-4.3+dbg-1.5+dfsg/src/remake.c:1650: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+1, lbuf); data/remake-4.3+dbg-1.5+dfsg/src/remake.c:1796:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buf, "%s/%s", *dp, libbuf); data/remake-4.3+dbg-1.5+dfsg/src/remote-cstms.c:99:11: [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 (normalized_cwd, starting_directory); data/remake-4.3+dbg-1.5+dfsg/src/variable.c:874:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buf, "%s%s%s", data/remake-4.3+dbg-1.5+dfsg/src/variable.c:1154:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (*result, "%s=%u", MAKELEVEL_NAME, makelevel + 1); data/remake-4.3+dbg-1.5+dfsg/src/variable.c:1384:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (path_string, "PATH=.;%s", pathv ? pathv->value : ""); data/remake-4.3+dbg-1.5+dfsg/src/variable.c:1886:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (t, file->name); data/remake-4.3+dbg-1.5+dfsg/glob/fnmatch.c:123:33: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. # if !defined _LIBC && !defined getenv data/remake-4.3+dbg-1.5+dfsg/glob/fnmatch.c:124:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. extern char *getenv (); data/remake-4.3+dbg-1.5+dfsg/glob/fnmatch.c:299:26: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1; data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:139:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. extern char *getenv (); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:624:34: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *home_dir = getenv ("SYS$LOGIN"); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:626:34: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *home_dir = getenv ("HOME"); data/remake-4.3+dbg-1.5+dfsg/lib/fnmatch.c:123:33: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. # if !defined _LIBC && !defined getenv data/remake-4.3+dbg-1.5+dfsg/lib/fnmatch.c:124:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. extern char *getenv (); data/remake-4.3+dbg-1.5+dfsg/lib/fnmatch.c:299:26: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1; data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:139:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. extern char *getenv (); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:625:34: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *home_dir = getenv ("SYS$LOGIN"); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:627:34: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *home_dir = getenv ("HOME"); data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:593:11: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # undef random data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:594:12: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # define random rpl_random data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:596:19: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_FUNCDECL_RPL (random, long, (void)); data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:597:19: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_RPL (random, long, (void)); data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:600:19: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_FUNCDECL_SYS (random, long, (void)); data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:604:24: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_SYS_CAST (random, long, (void)); data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:606:19: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIASWARN (random); data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:608:9: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # undef random data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:610:18: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_WARN_ON_USE (random, "random is unportable - " data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:618:11: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # undef srandom data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:619:12: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # define srandom rpl_srandom data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:621:19: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_FUNCDECL_RPL (srandom, void, (unsigned int seed)); data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:622:19: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_RPL (srandom, void, (unsigned int seed)); data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:625:19: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_FUNCDECL_SYS (srandom, void, (unsigned int seed)); data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:629:24: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_SYS_CAST (srandom, void, (unsigned int seed)); data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:631:19: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIASWARN (srandom); data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:633:9: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # undef srandom data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:635:18: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_WARN_ON_USE (srandom, "srandom is unportable - " data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:674:11: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # undef setstate data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:675:12: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # define setstate rpl_setstate data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:677:19: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_FUNCDECL_RPL (setstate, char *, (char *arg_state) _GL_ARG_NONNULL ((1))); data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:678:19: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_RPL (setstate, char *, (char *arg_state)); data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:681:19: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_FUNCDECL_SYS (setstate, char *, (char *arg_state) _GL_ARG_NONNULL ((1))); data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:685:24: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_SYS_CAST (setstate, char *, (char *arg_state)); data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:687:19: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIASWARN (setstate); data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:689:9: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # undef setstate data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:691:18: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_WARN_ON_USE (setstate, "setstate is unportable - " data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:860:12: [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. # define realpath rpl_realpath data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:862:19: [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. _GL_FUNCDECL_RPL (realpath, char *, (const char *name, char *resolved) data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:864:19: [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. _GL_CXXALIAS_RPL (realpath, char *, (const char *name, char *resolved)); data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:867:19: [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. _GL_FUNCDECL_SYS (realpath, char *, (const char *name, char *resolved) data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:870:19: [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. _GL_CXXALIAS_SYS (realpath, char *, (const char *name, char *resolved)); data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:872:19: [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. _GL_CXXALIASWARN (realpath); data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:874:9: [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. # undef realpath data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:876:18: [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. _GL_WARN_ON_USE (realpath, "realpath is unportable - use gnulib module " data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/edit.h:26:26: [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 ((editor = (char *) getenv ("EDITOR")) == NULL) data/remake-4.3+dbg-1.5+dfsg/src/function.c:2000:26: [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. ENULLLOOP (rp, realpath (in, out)); data/remake-4.3+dbg-1.5+dfsg/src/getopt.c:210:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. #ifndef getenv data/remake-4.3+dbg-1.5+dfsg/src/getopt.c:211:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. extern char *getenv (); data/remake-4.3+dbg-1.5+dfsg/src/getopt.c:398:21: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. posixly_correct = getenv ("POSIXLY_CORRECT"); data/remake-4.3+dbg-1.5+dfsg/src/getopt.c:960:1: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. getopt (int argc, char *const *argv, const char *optstring) data/remake-4.3+dbg-1.5+dfsg/src/getopt.c:985:11: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt (argc, argv, "abc:d:0123456789"); data/remake-4.3+dbg-1.5+dfsg/src/getopt.h:103:12: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt (int argc, char *const *argv, const char *shortopts); data/remake-4.3+dbg-1.5+dfsg/src/getopt.h:105:12: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt (); data/remake-4.3+dbg-1.5+dfsg/src/getopt.h:107:12: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt_long (int argc, char *const *argv, const char *shortopts, data/remake-4.3+dbg-1.5+dfsg/src/getopt.h:119:12: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt (); data/remake-4.3+dbg-1.5+dfsg/src/getopt.h:120:12: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt_long (); data/remake-4.3+dbg-1.5+dfsg/src/getopt1.c:65:1: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. getopt_long (int argc, char *const *argv, const char *options, data/remake-4.3+dbg-1.5+dfsg/src/getopt1.c:111:11: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long (argc, argv, "abc:d:0123456789", data/remake-4.3+dbg-1.5+dfsg/src/job.c:2260:17: [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. shell = getenv ("SHELL"); data/remake-4.3+dbg-1.5+dfsg/src/main.c:1652: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. if (((tmpdir = getenv ("TMPDIR")) == NULL || *tmpdir == '\0') data/remake-4.3+dbg-1.5+dfsg/src/main.c:2626:11: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long (argc, (char*const*)argv, options, long_options, NULL); data/remake-4.3+dbg-1.5+dfsg/src/make.h:432:7: [3] (buffer) getwd: This does not protect against buffer overflows by itself, so use with caution (CWE-120, CWE-20). Use getcwd instead. char *getwd (); data/remake-4.3+dbg-1.5+dfsg/src/make.h:433:33: [3] (buffer) getwd: This does not protect against buffer overflows by itself, so use with caution (CWE-120, CWE-20). Use getcwd instead. # define getcwd(buf, len) getwd (buf) data/remake-4.3+dbg-1.5+dfsg/src/makeint.h:619:7: [3] (buffer) getwd: This does not protect against buffer overflows by itself, so use with caution (CWE-120, CWE-20). Use getcwd instead. char *getwd (); data/remake-4.3+dbg-1.5+dfsg/src/makeint.h:620:33: [3] (buffer) getwd: This does not protect against buffer overflows by itself, so use with caution (CWE-120, CWE-20). Use getcwd instead. # define getcwd(buf, len) getwd (buf) data/remake-4.3+dbg-1.5+dfsg/src/misc.c:419:10: [3] (tmpfile) tmpnam: Temporary file race condition (CWE-377). (void) tmpnam (*name); data/remake-4.3+dbg-1.5+dfsg/src/read.c:3078:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. home_dir = getenv ("HOME"); data/remake-4.3+dbg-1.5+dfsg/src/remote-cstms.c:71:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv ("GNU_MAKE_NO_CUSTOMS") != 0) data/remake-4.3+dbg-1.5+dfsg/src/variable.c:265: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. vvalue = getenv(vname); data/remake-4.3+dbg-1.5+dfsg/src/variable.c:524: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. value = getenv (vname); data/remake-4.3+dbg-1.5+dfsg/glob/fnmatch.c:336: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 str[CHAR_CLASS_MAX_LENGTH + 1]; data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:164:10: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # ifndef bcopy data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:165:13: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. extern void bcopy (); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:168: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/remake-4.3+dbg-1.5+dfsg/glob/glob.c:168: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/remake-4.3+dbg-1.5+dfsg/glob/glob.c:399:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char onealt[strlen (pattern) - 1]; data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:414:4: [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 (onealt, pattern, begin - pattern); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:472:8: [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 (alt_start, p, next - p); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:473:8: [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 (&alt_start[next - p], rest, rest_len); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:569:4: [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 (drive_spec, pattern, dirlen); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:585: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 (newp, pattern, dirlen); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:714:8: [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 (newp, home_dir, home_len); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:715:8: [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 (&newp[home_len], &dirname[1], dirlen); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:737:8: [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 (newp, dirname + 1, end_name - dirname); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:788:8: [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 (newp, home_dir, home_len); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:789:8: [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 (&newp[home_len], end_name, rest_len); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:838:43: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. pglob->gl_pathv[pglob->gl_pathc] = memcpy (dircopy, dirname, data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:980: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 (pglob->gl_pathv[pglob->gl_pathc], dir, dir_len); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:982: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 (&pglob->gl_pathv[pglob->gl_pathc][dir_len + 1], data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:1159: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 (new, dirname, dirlen); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:1161: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 (&new[dirlen + 1], array[i], eltlen); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:1200:6: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (open) data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:1263:4: [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 (fullname, directory, dirlen); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:1265:4: [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 (&fullname[dirlen + 1], pattern, patlen + 1); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:1351: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 ((__ptr_t) new->name, name, len); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:1375: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 (names->name, pattern, len); data/remake-4.3+dbg-1.5+dfsg/lib/alloca.c:122: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/remake-4.3+dbg-1.5+dfsg/lib/concat-filename.c:64: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 (result, directory, directory_len); data/remake-4.3+dbg-1.5+dfsg/lib/dirname-lgpl.c:81: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 (dir, file, length); data/remake-4.3+dbg-1.5+dfsg/lib/dup2.c:118: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/remake-4.3+dbg-1.5+dfsg/lib/dup2.c:126: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/remake-4.3+dbg-1.5+dfsg/lib/dup2.c:130: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/remake-4.3+dbg-1.5+dfsg/lib/error.c:180: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 errbuf[1024]; data/remake-4.3+dbg-1.5+dfsg/lib/fcntl.c:61: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 fds_to_close[OPEN_MAX_MAX / CHAR_BIT]; data/remake-4.3+dbg-1.5+dfsg/lib/fcntl.in.h:137:11: [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). # undef open data/remake-4.3+dbg-1.5+dfsg/lib/fcntl.in.h:138: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). # define open rpl_open data/remake-4.3+dbg-1.5+dfsg/lib/fcntl.in.h:140:19: [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). _GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...) data/remake-4.3+dbg-1.5+dfsg/lib/fcntl.in.h:142:19: [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). _GL_CXXALIAS_RPL (open, int, (const char *filename, int flags, ...)); data/remake-4.3+dbg-1.5+dfsg/lib/fcntl.in.h:144:19: [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). _GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...)); data/remake-4.3+dbg-1.5+dfsg/lib/fcntl.in.h:149:19: [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). _GL_CXXALIASWARN (open); data/remake-4.3+dbg-1.5+dfsg/lib/fcntl.in.h:152: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). # undef open data/remake-4.3+dbg-1.5+dfsg/lib/fcntl.in.h:154:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_WARN_ON_USE (open, "open is not always POSIX compliant - " data/remake-4.3+dbg-1.5+dfsg/lib/findprog-in.c:226:25: [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 (progpathname + 2, progname, data/remake-4.3+dbg-1.5+dfsg/lib/fnmatch.c:336: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 str[CHAR_CLASS_MAX_LENGTH + 1]; data/remake-4.3+dbg-1.5+dfsg/lib/getloadavg.c:511: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 ldavgbuf[3 * (INT_STRLEN_BOUND (int) + sizeof ".00 ")]; data/remake-4.3+dbg-1.5+dfsg/lib/getloadavg.c:515:8: [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). fd = open (LINUX_LDAV_FILE, O_RDONLY); data/remake-4.3+dbg-1.5+dfsg/lib/getloadavg.c:572:8: [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 (NETBSD_LDAV_FILE, "r"); data/remake-4.3+dbg-1.5+dfsg/lib/getloadavg.c:877:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open ("/dev/kmem", O_RDONLY | O_CLOEXEC); data/remake-4.3+dbg-1.5+dfsg/lib/getprogname.c:152: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. char status64[1216]; data/remake-4.3+dbg-1.5+dfsg/lib/getprogname.c:222: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 filename[50]; data/remake-4.3+dbg-1.5+dfsg/lib/getprogname.c:225:3: [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 (filename, "/proc/pinfo/%d", (int) getpid ()); data/remake-4.3+dbg-1.5+dfsg/lib/getprogname.c:226:8: [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). fd = open (filename, O_RDONLY); data/remake-4.3+dbg-1.5+dfsg/lib/getprogname.c:243:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return memcpy (namecopy, name, namelen); data/remake-4.3+dbg-1.5+dfsg/lib/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/remake-4.3+dbg-1.5+dfsg/lib/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/remake-4.3+dbg-1.5+dfsg/lib/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/remake-4.3+dbg-1.5+dfsg/lib/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/remake-4.3+dbg-1.5+dfsg/lib/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/remake-4.3+dbg-1.5+dfsg/lib/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/remake-4.3+dbg-1.5+dfsg/lib/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/remake-4.3+dbg-1.5+dfsg/lib/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/remake-4.3+dbg-1.5+dfsg/lib/glob.c:164:10: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # ifndef bcopy data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:165:13: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. extern void bcopy (); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:168: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/remake-4.3+dbg-1.5+dfsg/lib/glob.c:168: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/remake-4.3+dbg-1.5+dfsg/lib/glob.c:404:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char onealt[strlen (pattern) - 1]; data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:419:4: [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 (onealt, pattern, begin - pattern); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:477:8: [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 (alt_start, p, next - p); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:478:8: [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 (&alt_start[next - p], rest, rest_len); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:570:4: [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 (drive_spec, pattern, dirlen); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:586: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 (newp, pattern, dirlen); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:715:8: [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 (newp, home_dir, home_len); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:716:8: [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 (&newp[home_len], &dirname[1], dirlen); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:738:8: [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 (newp, dirname + 1, end_name - dirname); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:789:8: [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 (newp, home_dir, home_len); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:790:8: [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 (&newp[home_len], end_name, rest_len); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:839:43: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. pglob->gl_pathv[pglob->gl_pathc] = memcpy (dircopy, dirname, data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:981: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 (pglob->gl_pathv[pglob->gl_pathc], dir, dir_len); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:983: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 (&pglob->gl_pathv[pglob->gl_pathc][dir_len + 1], data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:1160: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 (new, dirname, dirlen); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:1162: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 (&new[dirlen + 1], array[i], eltlen); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:1201:6: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (open) data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:1264:4: [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 (fullname, directory, dirlen); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:1266:4: [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 (&fullname[dirlen + 1], pattern, patlen + 1); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:1352: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 ((__ptr_t) new->name, name, len); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:1376: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 (names->name, pattern, len); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:298:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # undef fopen data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:299:12: [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). # define fopen rpl_fopen data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:301:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_FUNCDECL_RPL (fopen, FILE *, (const char *filename, const char *mode) data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:303:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIAS_RPL (fopen, FILE *, (const char *filename, const char *mode)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:305:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIAS_SYS (fopen, FILE *, (const char *filename, const char *mode)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:308:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIASWARN (fopen); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:311:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # undef fopen data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:313: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). _GL_WARN_ON_USE (fopen, "fopen on native Windows platforms is not POSIX compliant - " data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1175:12: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). # define tmpfile rpl_tmpfile data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1177:19: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_FUNCDECL_RPL (tmpfile, FILE *, (void)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1178:19: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_CXXALIAS_RPL (tmpfile, FILE *, (void)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1180:19: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_CXXALIAS_SYS (tmpfile, FILE *, (void)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1183:19: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_CXXALIASWARN (tmpfile); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1186:9: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). # undef tmpfile data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:1188:18: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_WARN_ON_USE (tmpfile, "tmpfile is not usable on mingw - " data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:417:12: [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). # define mkstemp rpl_mkstemp data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:419: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). _GL_FUNCDECL_RPL (mkstemp, int, (char * /*template*/) _GL_ARG_NONNULL ((1))); data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:420: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). _GL_CXXALIAS_RPL (mkstemp, int, (char * /*template*/)); data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:423: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). _GL_FUNCDECL_SYS (mkstemp, int, (char * /*template*/) _GL_ARG_NONNULL ((1))); data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:425: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). _GL_CXXALIAS_SYS (mkstemp, int, (char * /*template*/)); data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:427: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). _GL_CXXALIASWARN (mkstemp); data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:429:9: [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). # undef mkstemp data/remake-4.3+dbg-1.5+dfsg/lib/stdlib.in.h:431: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). _GL_WARN_ON_USE (mkstemp, "mkstemp is unportable - " data/remake-4.3+dbg-1.5+dfsg/lib/strerror.c:39: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[STACKBUF_LEN]; data/remake-4.3+dbg-1.5+dfsg/lib/strerror.c:69:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buf, msg, len + 1); data/remake-4.3+dbg-1.5+dfsg/lib/xmalloc.c:113: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. return memcpy (xmalloc (s), p, s); data/remake-4.3+dbg-1.5+dfsg/src/arscan.c:214: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 ar_name[16]; /* Member file name, sometimes / terminated. */ data/remake-4.3+dbg-1.5+dfsg/src/arscan.c:215: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 ar_date[12]; /* File date, decimal seconds since Epoch. */ data/remake-4.3+dbg-1.5+dfsg/src/arscan.c:216: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 ar_uid[6], ar_gid[6]; /* User and group IDs, in ASCII decimal. */ data/remake-4.3+dbg-1.5+dfsg/src/arscan.c:217: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 ar_mode[8]; /* File mode, in ASCII octal. */ data/remake-4.3+dbg-1.5+dfsg/src/arscan.c:218: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 ar_size[10]; /* File size, in ASCII decimal. */ data/remake-4.3+dbg-1.5+dfsg/src/arscan.c:219: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 ar_fmag[2]; /* Always contains ARFMAG. */ data/remake-4.3+dbg-1.5+dfsg/src/arscan.c:289: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 desc = open (archive, O_RDONLY, 0); data/remake-4.3+dbg-1.5+dfsg/src/arscan.c:295: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 buf[SARMAG]; data/remake-4.3+dbg-1.5+dfsg/src/arscan.c:391: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 name[ARNAME_MAX + 1]; data/remake-4.3+dbg-1.5+dfsg/src/arscan.c:398: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 namebuf[ARNAME_MAX + 1]; data/remake-4.3+dbg-1.5+dfsg/src/arscan.c:505: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, member_header.ar_name, sizeof member_header.ar_name); data/remake-4.3+dbg-1.5+dfsg/src/arscan.c:537:30: [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). int name_off = atoi (name + 1); data/remake-4.3+dbg-1.5+dfsg/src/arscan.c:553:30: [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). int name_len = atoi (name + 3); data/remake-4.3+dbg-1.5+dfsg/src/arscan.c:571:19: [2] (integer) atol: 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). eltsize = atol (TOCHAR (member_header.ar_size)); data/remake-4.3+dbg-1.5+dfsg/src/arscan.c:576:24: [2] (integer) atol: 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). atol (TOCHAR (member_header.ar_date)), data/remake-4.3+dbg-1.5+dfsg/src/arscan.c:577:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). atoi (TOCHAR (member_header.ar_uid)), data/remake-4.3+dbg-1.5+dfsg/src/arscan.c:578:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). atoi (TOCHAR (member_header.ar_gid)), data/remake-4.3+dbg-1.5+dfsg/src/arscan.c:747:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). EINTRLOOP (fd, open (arname, O_RDWR, 0666)); data/remake-4.3+dbg-1.5+dfsg/src/arscan.c:765:3: [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 (TOCHAR (ar_hdr.ar_date), "%lu", (long unsigned) statbuf.st_mtime); data/remake-4.3+dbg-1.5+dfsg/src/commands.c:74: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 (p, file->name, cp - file->name); data/remake-4.3+dbg-1.5+dfsg/src/commands.c:79: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 (p, cp + 1, len - 1); data/remake-4.3+dbg-1.5+dfsg/src/commands.c:210: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 (cp, c, len); data/remake-4.3+dbg-1.5+dfsg/src/commands.c:281: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 (bp, c, len); data/remake-4.3+dbg-1.5+dfsg/src/commands.c:287: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 (cp, c, len); data/remake-4.3+dbg-1.5+dfsg/src/commands.c:292: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 (qp, c, len); data/remake-4.3+dbg-1.5+dfsg/src/debugger/cmd.c:412: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 open_depth[MAX_NEST_DEPTH]; data/remake-4.3+dbg-1.5+dfsg/src/debugger/cmd.c:413: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 close_depth[MAX_NEST_DEPTH]; data/remake-4.3+dbg-1.5+dfsg/src/debugger/cmd.c:520: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 prompt[PROMPT_LENGTH]; data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/pwd.h:24: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 wd[300]; data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/source.h:34: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). p_source_file = fopen(psz_expanded_file, "r"); data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/source.h:38: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 line[2048]; data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/write.h:93:26: [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). else if (!(outfd = fopen (psz_filename, "w"))) { data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/write.h:140:2: [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 wd[300]; data/remake-4.3+dbg-1.5+dfsg/src/debugger/fns.c:53:9: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # ifdef bcopy data/remake-4.3+dbg-1.5+dfsg/src/debugger/fns.c:54:11: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # undef bcopy data/remake-4.3+dbg-1.5+dfsg/src/debugger/fns.c:317:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&floc, &(p_target->cmds->fileinfo.filenm), sizeof(gmk_floc)); data/remake-4.3+dbg-1.5+dfsg/src/dir.c:67: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 dos_filename[14]; data/remake-4.3+dbg-1.5+dfsg/src/dir.c:630: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 (p, name, dirend - name); data/remake-4.3+dbg-1.5+dfsg/src/dir.c:663: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 (cp, p, dirend - p); data/remake-4.3+dbg-1.5+dfsg/src/dir.c:714: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 (cp, filename, dirend - filename); data/remake-4.3+dbg-1.5+dfsg/src/dir.c:912: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 (d->d_name, df->name, len); data/remake-4.3+dbg-1.5+dfsg/src/expand.c:70: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 (ptr, string, length); data/remake-4.3+dbg-1.5+dfsg/src/expand.c:341:25: [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 (pattern, subst_beg, subst_end - subst_beg); data/remake-4.3+dbg-1.5+dfsg/src/expand.c:346:25: [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 (replace, replace_beg, data/remake-4.3+dbg-1.5+dfsg/src/expand.c:443: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 (tmp, str, end - str); data/remake-4.3+dbg-1.5+dfsg/src/file.c:332: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 (nm, dp->name, nl); data/remake-4.3+dbg-1.5+dfsg/src/file.c:706: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[FILE_TIMESTAMP_PRINT_LEN_BOUND + 1]; data/remake-4.3+dbg-1.5+dfsg/src/file.c:776:5: [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 (p, "%04d-%02d-%02d %02d:%02d:%02d", data/remake-4.3+dbg-1.5+dfsg/src/file.c:780:5: [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 (p, "%ld", (long) t); data/remake-4.3+dbg-1.5+dfsg/src/file.c:782:5: [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 (p, "%lu", (unsigned long) t); data/remake-4.3+dbg-1.5+dfsg/src/file.c:789:3: [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 (p, ".%09d", FILE_TIMESTAMP_NS (ts)); data/remake-4.3+dbg-1.5+dfsg/src/file.c:869:2: [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[FILE_TIMESTAMP_PRINT_LEN_BOUND + 1]; data/remake-4.3+dbg-1.5+dfsg/src/file.c:1025: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[FILE_TIMESTAMP_PRINT_LEN_BOUND + 1]; data/remake-4.3+dbg-1.5+dfsg/src/file.c:1168: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, f->name, l); data/remake-4.3+dbg-1.5+dfsg/src/function.c:298: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 (new_chars, pattern, len); data/remake-4.3+dbg-1.5+dfsg/src/function.c:385: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 (&result[idx], chain->name, len); data/remake-4.3+dbg-1.5+dfsg/src/function.c:673: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[20]; data/remake-4.3+dbg-1.5+dfsg/src/function.c:678:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "%d", i); data/remake-4.3+dbg-1.5+dfsg/src/function.c:725:7: [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). i = atoi (argv[0]); data/remake-4.3+dbg-1.5+dfsg/src/function.c:753:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). start = atoi (argv[0]); data/remake-4.3+dbg-1.5+dfsg/src/function.c:758:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). count = atoi (argv[1]) - start + 1; data/remake-4.3+dbg-1.5+dfsg/src/function.c:1410: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[256]; data/remake-4.3+dbg-1.5+dfsg/src/function.c:1421:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "%d", exit_code); data/remake-4.3+dbg-1.5+dfsg/src/function.c:1578: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[PATH_MAX + 7]; data/remake-4.3+dbg-1.5+dfsg/src/function.c:1908: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 (apath, name, root_len); data/remake-4.3+dbg-1.5+dfsg/src/function.c:1962:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. dest = memcpy (dest, start, len); data/remake-4.3+dbg-1.5+dfsg/src/function.c:2057:22: [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). ENULLLOOP (fp, fopen (fn, mode)); data/remake-4.3+dbg-1.5+dfsg/src/function.c:2085:22: [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). ENULLLOOP (fp, fopen (fn, "r")); data/remake-4.3+dbg-1.5+dfsg/src/function.c:2095: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. char buf[1024]; data/remake-4.3+dbg-1.5+dfsg/src/function.c:2348: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 (abeg, beg, len); data/remake-4.3+dbg-1.5+dfsg/src/function.c:2433: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 (body + 2, fname, flen); data/remake-4.3+dbg-1.5+dfsg/src/function.c:2443: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 num[11]; data/remake-4.3+dbg-1.5+dfsg/src/function.c:2445:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (num, "%d", i); data/remake-4.3+dbg-1.5+dfsg/src/function.c:2456: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 num[11]; data/remake-4.3+dbg-1.5+dfsg/src/function.c:2458:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (num, "%d", i); data/remake-4.3+dbg-1.5+dfsg/src/hash.c:24:31: [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 CLONE(o, t, n) ((t *) memcpy (MALLOC (t, (n)), (o), sizeof (t) * (n))) data/remake-4.3+dbg-1.5+dfsg/src/hash.c:364: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(&val, (p), 4); \ data/remake-4.3+dbg-1.5+dfsg/src/hash.c:422: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 (&val, (p), n); \ data/remake-4.3+dbg-1.5+dfsg/src/hash.c:441: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 (&val, (p), n); \ data/remake-4.3+dbg-1.5+dfsg/src/implicit.c:458: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. memcpy (pathdir, filename, pathlen); data/remake-4.3+dbg-1.5+dfsg/src/implicit.c:476: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. memcpy (stem_str, stem, stemlen); data/remake-4.3+dbg-1.5+dfsg/src/implicit.c:483: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. memcpy (stem_str, filename, pathlen); data/remake-4.3+dbg-1.5+dfsg/src/implicit.c:484: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. memcpy (stem_str + pathlen, stem, stemlen); data/remake-4.3+dbg-1.5+dfsg/src/implicit.c:532:27: [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 (o, filename, pathlen); data/remake-4.3+dbg-1.5+dfsg/src/implicit.c:535:23: [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 (o, nptr, p - nptr); data/remake-4.3+dbg-1.5+dfsg/src/implicit.c:537:23: [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 (o, stem, stemlen); data/remake-4.3+dbg-1.5+dfsg/src/implicit.c:597:23: [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 (depname, nptr, len); data/remake-4.3+dbg-1.5+dfsg/src/implicit.c:604:23: [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 (o, nptr, i); data/remake-4.3+dbg-1.5+dfsg/src/implicit.c:609:27: [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 (o, "$(*F)", 5); data/remake-4.3+dbg-1.5+dfsg/src/implicit.c:614:27: [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 (o, "$*", 2); data/remake-4.3+dbg-1.5+dfsg/src/implicit.c:617:23: [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 (o, p + 1, len - i - 1); data/remake-4.3+dbg-1.5+dfsg/src/implicit.c:940: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 (stem_str, filename, pathlen); data/remake-4.3+dbg-1.5+dfsg/src/implicit.c:941: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 (stem_str + pathlen, stem, stemlen); data/remake-4.3+dbg-1.5+dfsg/src/implicit.c:969: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 (p, rule->targets[ri], data/remake-4.3+dbg-1.5+dfsg/src/implicit.c:972: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 (p, file->stem, fullstemlen); data/remake-4.3+dbg-1.5+dfsg/src/implicit.c:974: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 (p, rule->suffixes[ri], data/remake-4.3+dbg-1.5+dfsg/src/job.c:117: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 pidstring[100]; data/remake-4.3+dbg-1.5+dfsg/src/job.c:121:3: [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 (pidstring, "%Id", pid); data/remake-4.3+dbg-1.5+dfsg/src/job.c:123:3: [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 (pidstring, "%lu", (unsigned long) pid); data/remake-4.3+dbg-1.5+dfsg/src/job.c:188: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 temp_path[MAXPATHLEN]; /* need to know its length */ data/remake-4.3+dbg-1.5+dfsg/src/job.c:267: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 (path, temp_path, final_size); data/remake-4.3+dbg-1.5+dfsg/src/job.c:928:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&file, c->file, sizeof(file_t)); data/remake-4.3+dbg-1.5+dfsg/src/job.c:1159: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. char pid_str[20] = ">>"; data/remake-4.3+dbg-1.5+dfsg/src/job.c:1863: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). EINTRLOOP (proc_fd, open (LOADAVG, O_RDONLY)); data/remake-4.3+dbg-1.5+dfsg/src/job.c:1882: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. char avg[PROC_LOADAVG_SIZE+1]; data/remake-4.3+dbg-1.5+dfsg/src/job.c:1903:29: [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). int cnt = atoi (p+1); data/remake-4.3+dbg-1.5+dfsg/src/job.c:2025:9: [2] (race) vfork: On some old systems, vfork() permits race conditions, and it's very difficult to use correctly (CWE-362). Use fork() instead. pid = vfork(); data/remake-4.3+dbg-1.5+dfsg/src/job.c:2110: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. cmd = (char *)find_in_given_path (argv[0], p, 0); data/remake-4.3+dbg-1.5+dfsg/src/job.c:2139: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 (&nargv[2], &argv[1], sizeof (char *) * l); data/remake-4.3+dbg-1.5+dfsg/src/job.c:2858: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 (fbuf, "make%d", id); data/remake-4.3+dbg-1.5+dfsg/src/job.c:2960: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 (ap, shellflags, sflags_len); data/remake-4.3+dbg-1.5+dfsg/src/job.c:3007: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 (ap, "\\.\\.\\"); data/remake-4.3+dbg-1.5+dfsg/src/job.c:3042:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (fbuf, "make%d", id); data/remake-4.3+dbg-1.5+dfsg/src/load.c:152: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 (new, *ldname, l); data/remake-4.3+dbg-1.5+dfsg/src/load.c:159: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 (symname, fp, ep - fp); data/remake-4.3+dbg-1.5+dfsg/src/load.c:222: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 (newval, loaded, loadlen); data/remake-4.3+dbg-1.5+dfsg/src/main.c:768:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (sync_mutex, "0x%Ix", handle); data/remake-4.3+dbg-1.5+dfsg/src/main.c:1282:39: [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). restarts = (unsigned int) atoi (ep); data/remake-4.3+dbg-1.5+dfsg/src/main.c:1368:34: [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). makelevel = (unsigned int) atoi (v->value); data/remake-4.3+dbg-1.5+dfsg/src/main.c:1675: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 buf[2048]; data/remake-4.3+dbg-1.5+dfsg/src/main.c:1786:11: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (p, "--eval="); data/remake-4.3+dbg-1.5+dfsg/src/main.c:2212: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. memcpy (aargv, argv, argc * sizeof (char *)); data/remake-4.3+dbg-1.5+dfsg/src/main.c:2428: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 options[1 + sizeof (switches) / sizeof (switches[0]) * 3]; data/remake-4.3+dbg-1.5+dfsg/src/main.c:2453:31: [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. long_options[i].name = (char *) (switches[i].long_name == 0 ? "" : data/remake-4.3+dbg-1.5+dfsg/src/main.c:2562: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 (vp, gv->value, oldlen); data/remake-4.3+dbg-1.5+dfsg/src/main.c:2564: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 (&vp[oldlen + 1], f->name, newlen + 1); data/remake-4.3+dbg-1.5+dfsg/src/main.c:2673:23: [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 opt[2] = "c"; data/remake-4.3+dbg-1.5+dfsg/src/main.c:2736:31: [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). int i = atoi (coptarg); data/remake-4.3+dbg-1.5+dfsg/src/main.c:2813: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 (&varref[2], envar, len); data/remake-4.3+dbg-1.5+dfsg/src/main.c:2967:19: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "%u", *(unsigned int *) cs->value_ptr); data/remake-4.3+dbg-1.5+dfsg/src/main.c:2987:19: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "%g", *(double *) cs->value_ptr); data/remake-4.3+dbg-1.5+dfsg/src/main.c:3089: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 (p, evalref, CSTRLEN (evalref)); data/remake-4.3+dbg-1.5+dfsg/src/main.c:3105:11: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (p, " -- "); data/remake-4.3+dbg-1.5+dfsg/src/main.c:3110: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 (p, r, l); data/remake-4.3+dbg-1.5+dfsg/src/make.h:420:10: [2] (integer) atol: 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). long int atol (); data/remake-4.3+dbg-1.5+dfsg/src/makeint.h:159:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. # define PATH_VAR(var) char var[PATH_MAX+1] data/remake-4.3+dbg-1.5+dfsg/src/makeint.h:607:10: [2] (integer) atol: 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). long int atol (); data/remake-4.3+dbg-1.5+dfsg/src/misc.c:157: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 (result + ri, s, l); data/remake-4.3+dbg-1.5+dfsg/src/misc.c:312: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 (c, d, sizeof (struct dep)); data/remake-4.3+dbg-1.5+dfsg/src/misc.c:349: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 filenm[256]; data/remake-4.3+dbg-1.5+dfsg/src/misc.c:375:5: [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 mkstemp (char *template); data/remake-4.3+dbg-1.5+dfsg/src/misc.c:410: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). EINTRLOOP (fd, mkstemp (*name)); data/remake-4.3+dbg-1.5+dfsg/src/misc.c:424:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). EINTRLOOP (fd, open (*name, O_CREAT|O_EXCL|O_WRONLY, 0600)); data/remake-4.3+dbg-1.5+dfsg/src/misc.c:430:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file = fopen (*name, "w"); data/remake-4.3+dbg-1.5+dfsg/src/output.c:218: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 buffer[8192]; data/remake-4.3+dbg-1.5+dfsg/src/output.c:287:17: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). FILE *tfile = tmpfile (); data/remake-4.3+dbg-1.5+dfsg/src/posixos.c:155:3: [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 (auth, "%d,%d", job_fds[0], job_fds[1]); data/remake-4.3+dbg-1.5+dfsg/src/print.c:304: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(&floc, &(p_target->floc), sizeof(gmk_floc)); data/remake-4.3+dbg-1.5+dfsg/src/print.c:306: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(&floc, &(p_target->cmds->fileinfo.filenm), sizeof(gmk_floc)); data/remake-4.3+dbg-1.5+dfsg/src/print.c:373: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[FILE_TIMESTAMP_PRINT_LEN_BOUND + 1]; data/remake-4.3+dbg-1.5+dfsg/src/profile.c:102: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(&(new->floc), &(target->floc), sizeof(gmk_floc)); data/remake-4.3+dbg-1.5+dfsg/src/profile.c:113: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 callgrind_fname[CALLGRIND_FILENAME_LEN]; data/remake-4.3+dbg-1.5+dfsg/src/profile.c:172: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). callgrind_fd = fopen(callgrind_fname, "w"); data/remake-4.3+dbg-1.5+dfsg/src/read.c:356:23: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ENULLLOOP (ebuf.fp, fopen (filename, "r")); data/remake-4.3+dbg-1.5+dfsg/src/read.c:385: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). ebuf.fp = fopen (included, "r"); data/remake-4.3+dbg-1.5+dfsg/src/read.c:728: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. memcpy (&commands[commands_idx], line + 1, linelen - 1); data/remake-4.3+dbg-1.5+dfsg/src/read.c:1337: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 (commands, cmdleft, l); data/remake-4.3+dbg-1.5+dfsg/src/read.c:1571: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 (&definition[idx], line, len); data/remake-4.3+dbg-1.5+dfsg/src/read.c:1806: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 (s1, s2, l + 1); data/remake-4.3+dbg-1.5+dfsg/src/read.c:2543: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 (new, *string, slen + 1); data/remake-4.3+dbg-1.5+dfsg/src/read.c:3016:9: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (strcpy (defdir, djdir->value), "/include"); data/remake-4.3+dbg-1.5+dfsg/src/read.c:3259: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 (tp, s, nlen); data/remake-4.3+dbg-1.5+dfsg/src/remake.c:1225: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). EINTRLOOP (fd, open (file->name, O_RDWR | O_CREAT, 0666)); data/remake-4.3+dbg-1.5+dfsg/src/remake.c:1255:30: [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). EINTRLOOP (fd, open (file->name, O_RDWR | O_TRUNC, 0666)); data/remake-4.3+dbg-1.5+dfsg/src/remake.c:1357: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 (name, arfile->hname, arlen); data/remake-4.3+dbg-1.5+dfsg/src/remake.c:1359: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 (name + arlen + 1, memname, memlen); data/remake-4.3+dbg-1.5+dfsg/src/remake.c:1480: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 from_now_string[100]; data/remake-4.3+dbg-1.5+dfsg/src/remake.c:1483:17: [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 (from_now_string, "%lu", (unsigned long) from_now); data/remake-4.3+dbg-1.5+dfsg/src/remake.c:1485:17: [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 (from_now_string, "%.2g", from_now); data/remake-4.3+dbg-1.5+dfsg/src/remake.c:1539: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 tem[MAXPATHLEN], *tstart, *tend; data/remake-4.3+dbg-1.5+dfsg/src/remake.c:1548: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 (tem, name, p - name + 1); data/remake-4.3+dbg-1.5+dfsg/src/remote-cstms.c:141: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 waybill[MAX_DATA_SIZE], msg[128]; data/remake-4.3+dbg-1.5+dfsg/src/remote-cstms.c:225:9: [2] (race) vfork: On some old systems, vfork() permits race conditions, and it's very difficult to use correctly (CWE-362). Use fork() instead. pid = vfork (); data/remake-4.3+dbg-1.5+dfsg/src/remote-cstms.c:235:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char sock_buf[20], retsock_buf[20], id_buf[20]; data/remake-4.3+dbg-1.5+dfsg/src/remote-cstms.c:236:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char *new_argv[6] = data/remake-4.3+dbg-1.5+dfsg/src/remote-cstms.c:240: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. (void) sprintf (sock_buf, "%d", sock); data/remake-4.3+dbg-1.5+dfsg/src/remote-cstms.c:241: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. (void) sprintf (retsock_buf, "%d", retsock); data/remake-4.3+dbg-1.5+dfsg/src/remote-cstms.c:242: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. (void) sprintf (id_buf, "%x", permit.id); data/remake-4.3+dbg-1.5+dfsg/src/rule.c:135: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. memcpy (name, dname, p - dname); data/remake-4.3+dbg-1.5+dfsg/src/rule.c:198: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 (p + 1, target, len + 1); data/remake-4.3+dbg-1.5+dfsg/src/rule.c:211: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 (p + 1, source, len + 1); data/remake-4.3+dbg-1.5+dfsg/src/rule.c:259: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 (rulename, dep_name (d), slen); data/remake-4.3+dbg-1.5+dfsg/src/rule.c:272: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 (rulename + slen, dep_name (d2), s2len + 1); data/remake-4.3+dbg-1.5+dfsg/src/signame.c:43:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *sys_siglist[NSIG]; data/remake-4.3+dbg-1.5+dfsg/src/signame.c:248: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. return (char *) sys_siglist[sig]; data/remake-4.3+dbg-1.5+dfsg/src/signame.c:250:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "Signal %d", sig); data/remake-4.3+dbg-1.5+dfsg/src/strcache.c:35: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[1]; /* The buffer comes after this. */ data/remake-4.3+dbg-1.5+dfsg/src/strcache.c:140: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[1]; /* The string. */ data/remake-4.3+dbg-1.5+dfsg/src/strcache.c:149: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 (new->buffer, str, len); data/remake-4.3+dbg-1.5+dfsg/src/strcache.c:248: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 (key, str, len); data/remake-4.3+dbg-1.5+dfsg/src/trace.c:52: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(new_node->p_target, p_target, sizeof(file_t)); data/remake-4.3+dbg-1.5+dfsg/src/variable.c:474: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, v->name, l); data/remake-4.3+dbg-1.5+dfsg/src/variable.c:869: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[200]; data/remake-4.3+dbg-1.5+dfsg/src/variable.c:871:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "%u", makelevel); data/remake-4.3+dbg-1.5+dfsg/src/variable.c:1185: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 *args[2]; data/remake-4.3+dbg-1.5+dfsg/src/variable.c:1313: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 (alloc_value, v->value, oldlen); data/remake-4.3+dbg-1.5+dfsg/src/variable.c:1318: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 (&alloc_value[oldlen], val, vallen + 1); data/remake-4.3+dbg-1.5+dfsg/src/variable.c:1364: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. char *fake_env[2]; data/remake-4.3+dbg-1.5+dfsg/src/variable.c:1634: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 (name, v->name, v->length); data/remake-4.3+dbg-1.5+dfsg/src/vpath.c:382: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 (p, vpath[i], vlen); data/remake-4.3+dbg-1.5+dfsg/src/vpath.c:395: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 (p, file, name_dplen); data/remake-4.3+dbg-1.5+dfsg/src/vpath.c:409: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 (p + 1, filename, flen + 1); data/remake-4.3+dbg-1.5+dfsg/src/vpath.c:418: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 (p + 1, filename, flen + 1); data/remake-4.3+dbg-1.5+dfsg/src/vpath.c:422: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, filename, flen + 1); data/remake-4.3+dbg-1.5+dfsg/src/w32/w32os.c:33: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 jobserver_semaphore_name[MAX_PATH + 1]; data/remake-4.3+dbg-1.5+dfsg/src/w32/w32os.c:47:3: [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 (jobserver_semaphore_name, "gmake_semaphore_%d", _getpid ()); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:93: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). # define NAMLEN(dirent) strlen((dirent)->d_name) data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:382: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). if (pattern[0] && pattern[strlen (pattern) - 1] == '/') data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:399: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). char onealt[strlen (pattern) - 1]; data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:401: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). char *onealt = (char *) malloc (strlen (pattern) - 1); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:446: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). rest_len = strlen (++rest) + 1; data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:529: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). dirlen = strlen (pattern); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:708: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 home_len = strlen (home_dir); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:781: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 home_len = strlen (home_dir); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:782: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). size_t rest_len = end_name == NULL ? 0 : strlen (end_name); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:835: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 (dirname) + 1; data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:931: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). size_t filename_len = strlen (filename) + 1; data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:956: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 dir_len = strlen (dir); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:1039: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 len = strlen (pglob->gl_pathv[i]) + 2; data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:1046:6: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy (&new[len - 2], "/"); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:1114: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 dirlen = strlen (dirname); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:1143: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 eltlen = strlen (array[i]) + 1; data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:1254: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 patlen = strlen (pattern); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:1255: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 dirlen = strlen (directory); data/remake-4.3+dbg-1.5+dfsg/glob/glob.c:1365: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 len = strlen (pattern); data/remake-4.3+dbg-1.5+dfsg/lib/basename-lgpl.c:63: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). for (len = strlen (name); 1 < len && ISSLASH (name[len - 1]); len--) data/remake-4.3+dbg-1.5+dfsg/lib/concat-filename.c:45: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). result = (char *) malloc (strlen (filename) data/remake-4.3+dbg-1.5+dfsg/lib/concat-filename.c:46: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). + (suffix != NULL ? strlen (suffix) : 0) data/remake-4.3+dbg-1.5+dfsg/lib/concat-filename.c:54: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). size_t directory_len = strlen (directory); data/remake-4.3+dbg-1.5+dfsg/lib/concat-filename.c:59: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). + strlen (filename) data/remake-4.3+dbg-1.5+dfsg/lib/concat-filename.c:60: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). + (suffix != NULL ? strlen (suffix) : 0) data/remake-4.3+dbg-1.5+dfsg/lib/error.c:211: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 len = strlen (message) + 1; data/remake-4.3+dbg-1.5+dfsg/lib/findprog-in.c:223:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). XNMALLOC (2 + strlen (progname) + 1, char); data/remake-4.3+dbg-1.5+dfsg/lib/findprog-in.c:227: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). strlen (progname) + 1); data/remake-4.3+dbg-1.5+dfsg/lib/getloadavg.c:518:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). count = read (fd, ldavgbuf, sizeof ldavgbuf - 1); data/remake-4.3+dbg-1.5+dfsg/lib/getloadavg.c:834:7: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy (name_list[1].n_name, ""); data/remake-4.3+dbg-1.5+dfsg/lib/getloadavg.c:914:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). || read (channel, (char *) load_ave, sizeof (load_ave)) data/remake-4.3+dbg-1.5+dfsg/lib/getprogname.c:121: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). if (strlen (ucomm) < PST_UCOMMLEN - 1) data/remake-4.3+dbg-1.5+dfsg/lib/getprogname.c:135: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). if (strlen (p) > PST_UCOMMLEN - 1 data/remake-4.3+dbg-1.5+dfsg/lib/getprogname.c:157: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). if (strlen (ucomm) < PST_UCOMMLEN - 1) data/remake-4.3+dbg-1.5+dfsg/lib/getprogname.c:171: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). if (strlen (p) > PST_UCOMMLEN - 1 data/remake-4.3+dbg-1.5+dfsg/lib/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/remake-4.3+dbg-1.5+dfsg/lib/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/remake-4.3+dbg-1.5+dfsg/lib/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/remake-4.3+dbg-1.5+dfsg/lib/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/remake-4.3+dbg-1.5+dfsg/lib/glob.c:93: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). # define NAMLEN(dirent) strlen((dirent)->d_name) data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:387: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). if (pattern[0] && pattern[strlen (pattern) - 1] == '/') data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:404: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). char onealt[strlen (pattern) - 1]; data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:406: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). char *onealt = (char *) malloc (strlen (pattern) - 1); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:451: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). rest_len = strlen (++rest) + 1; data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:534: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). dirlen = strlen (pattern); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:709: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 home_len = strlen (home_dir); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:782: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 home_len = strlen (home_dir); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:783: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). size_t rest_len = end_name == NULL ? 0 : strlen (end_name); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:836: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 (dirname) + 1; data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:932: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). size_t filename_len = strlen (filename) + 1; data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:957: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 dir_len = strlen (dir); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:1040: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 len = strlen (pglob->gl_pathv[i]) + 2; data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:1047:6: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy (&new[len - 2], "/"); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:1115: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 dirlen = strlen (dirname); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:1144: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 eltlen = strlen (array[i]) + 1; data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:1255: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 patlen = strlen (pattern); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:1256: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 dirlen = strlen (directory); data/remake-4.3+dbg-1.5+dfsg/lib/glob.c:1366: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 len = strlen (pattern); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:265:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef fgetc data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:266:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define fgetc rpl_fgetc data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:268:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_FUNCDECL_RPL (fgetc, int, (FILE *stream) _GL_ARG_NONNULL ((1))); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:269:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_RPL (fgetc, int, (FILE *stream)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:271:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_SYS (fgetc, int, (FILE *stream)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:274:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (fgetc); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:676:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getc data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:677:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc rpl_fgetc data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:679:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_FUNCDECL_RPL (fgetc, int, (FILE *stream) _GL_ARG_NONNULL ((1))); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:680:21: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_RPL_1 (getc, rpl_fgetc, int, (FILE *stream)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:682:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_SYS (getc, int, (FILE *stream)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:685:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (getc); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:692:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getchar data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:693:12: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getchar rpl_getchar data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:695:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_FUNCDECL_RPL (getchar, int, (void)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:696:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_RPL (getchar, int, (void)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:698:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_SYS (getchar, int, (void)); data/remake-4.3+dbg-1.5+dfsg/lib/stdio.in.h:701:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (getchar); data/remake-4.3+dbg-1.5+dfsg/lib/strerror.c:65: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). len = strlen (msg); data/remake-4.3+dbg-1.5+dfsg/lib/string.in.h:411:11: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. # undef strncat data/remake-4.3+dbg-1.5+dfsg/lib/string.in.h:412:12: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. # define strncat rpl_strncat data/remake-4.3+dbg-1.5+dfsg/lib/string.in.h:414:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_FUNCDECL_RPL (strncat, char *, (char *dest, const char *src, size_t n) data/remake-4.3+dbg-1.5+dfsg/lib/string.in.h:416:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_CXXALIAS_RPL (strncat, char *, (char *dest, const char *src, size_t n)); data/remake-4.3+dbg-1.5+dfsg/lib/string.in.h:418:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_CXXALIAS_SYS (strncat, char *, (char *dest, const char *src, size_t n)); data/remake-4.3+dbg-1.5+dfsg/lib/string.in.h:421:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_CXXALIASWARN (strncat); data/remake-4.3+dbg-1.5+dfsg/lib/string.in.h:424:9: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. # undef strncat data/remake-4.3+dbg-1.5+dfsg/lib/string.in.h:426:18: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_WARN_ON_USE (strncat, "strncat is unportable - " data/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1346:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef read data/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1347:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define read rpl_read data/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1349: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1351: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1356: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1358:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (read); data/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1671: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1672: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1674: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1675: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1678: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1682: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1684: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1686: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/remake-4.3+dbg-1.5+dfsg/lib/unistd.in.h:1688: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/remake-4.3+dbg-1.5+dfsg/lib/xmalloc.c:121: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 xmemdup (string, strlen (string) + 1); data/remake-4.3+dbg-1.5+dfsg/src/alloc.c:74: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). result = malloc (strlen (ptr) + 1); data/remake-4.3+dbg-1.5+dfsg/src/alloc.c:101:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (result, str, length); data/remake-4.3+dbg-1.5+dfsg/src/ar.c:41: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). end = p + strlen (p) - 1; data/remake-4.3+dbg-1.5+dfsg/src/ar.c:64:5: [1] (buffer) strlen: Does not handle 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[strlen (p) - 1] = '\0'; data/remake-4.3+dbg-1.5+dfsg/src/arscan.c:117: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). libdesc.dsc$w_length = strlen(vms_archive); data/remake-4.3+dbg-1.5+dfsg/src/arscan.c:544: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). name_len = strlen (name); data/remake-4.3+dbg-1.5+dfsg/src/arscan.c:699: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). len = strlen(mem); data/remake-4.3+dbg-1.5+dfsg/src/arscan.c:766: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). ar_hdr.ar_date[strlen ((char *) ar_hdr.ar_date)] = ' '; data/remake-4.3+dbg-1.5+dfsg/src/buildargv.c:126: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). copybuf = (char *) alloca (strlen (input) + 1); data/remake-4.3+dbg-1.5+dfsg/src/commands.c:77: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 (cp + 1); data/remake-4.3+dbg-1.5+dfsg/src/commands.c:103:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (name) - 1; data/remake-4.3+dbg-1.5+dfsg/src/commands.c:109:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (name); data/remake-4.3+dbg-1.5+dfsg/src/commands.c:114: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 slen = strlen (dep_name (d)); data/remake-4.3+dbg-1.5+dfsg/src/commands.c:177: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). bar_len += strlen (dep_name (d)) + 1; data/remake-4.3+dbg-1.5+dfsg/src/commands.c:179: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). plus_len += strlen (dep_name (d)) + 1; data/remake-4.3+dbg-1.5+dfsg/src/commands.c:204:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (c) - 1; data/remake-4.3+dbg-1.5+dfsg/src/commands.c:208: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 (c); data/remake-4.3+dbg-1.5+dfsg/src/commands.c:273: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 (c) - 1; data/remake-4.3+dbg-1.5+dfsg/src/commands.c:277:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (c); data/remake-4.3+dbg-1.5+dfsg/src/commands.c:336: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 l = strlen (cmds->commands); data/remake-4.3+dbg-1.5+dfsg/src/commands.c:360: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). end = p + strlen (p); data/remake-4.3+dbg-1.5+dfsg/src/commands.c:532: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). memmove (out, in, strlen (in) + 1); data/remake-4.3+dbg-1.5+dfsg/src/debugger/cmd.c:301:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (1 == strlen(psz_word)) { data/remake-4.3+dbg-1.5+dfsg/src/debugger/cmd.c:357: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). if (!psz_args || 0==strlen(psz_args)) { data/remake-4.3+dbg-1.5+dfsg/src/debugger/cmd.c:362: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). unsigned int u_len = strlen(psz_varname); data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/chdir.h:24: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). if (!psz_args || 0==strlen(psz_args)) { data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/edit.h:29: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). if (!psz_args || 0==strlen(psz_args)) { data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/edit.h:32: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). unsigned int cmd_size = strlen(editor) + strlen(p_floc->filenm) + 20; data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/edit.h:32: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). unsigned int cmd_size = strlen(editor) + strlen(p_floc->filenm) + 20; data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/help.h:109:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (1 == strlen(psz_args)) { data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/info.h:216:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!basename_filenames && strlen(p_floc->filenm) data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/info.h:286: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). if (!psz_args || 0==strlen(psz_args)) { data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/info.h:324:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (0 == strlen(psz_args)) data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/info.h:335:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (0 == strlen(psz_args)) data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/info.h:352:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (0 == strlen(psz_args)) data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/info.h:373:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (0 == strlen(psz_args)) { data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/list.h:80: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). target_cmd = CALLOC(char, strlen(psz_target) + 1 + strlen(DEPENDS_COMMANDS)); data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/list.h:80: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). target_cmd = CALLOC(char, strlen(psz_target) + 1 + strlen(DEPENDS_COMMANDS)); data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/print.h:27: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). if (!psz_args || 0==strlen(psz_args)) { data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/pwd.h:23: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). if (!psz_args || 0==strlen(psz_args)) { data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/run.h:14: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). if (psz_arg && strlen(psz_arg)) { data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/run.h:15: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). unsigned int len = strlen(global_argv[0]) + strlen(psz_arg) + 2; data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/run.h:15: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). unsigned int len = strlen(global_argv[0]) + strlen(psz_arg) + 2; data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/set.h:74: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). if (!psz_flag_value || 0==strlen(psz_flag_value)) data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/set.h:88: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). if (!psz_args || 0==strlen(psz_args)) { data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/show.h:83: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 (!psz_arg || 0==strlen(psz_arg)) { data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/write.h:32: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). variable_t *p_v = lookup_variable ("SHELL", strlen ("SHELL")); data/remake-4.3+dbg-1.5+dfsg/src/debugger/command/write.h:59: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). psz_filename = CALLOC(char, strlen(psz_target_basename) + 10); data/remake-4.3+dbg-1.5+dfsg/src/debugger/fns.c:103: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 (!psz_arg || 0==strlen(psz_arg)) return 0; data/remake-4.3+dbg-1.5+dfsg/src/debugger/fns.c:121: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 (!psz_arg || 0==strlen(psz_arg)) return 0; data/remake-4.3+dbg-1.5+dfsg/src/debugger/fns.c:241: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(psz_substr) < i_min) data/remake-4.3+dbg-1.5+dfsg/src/debugger/fns.c:373: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). t = s + strlen (s) - 1; data/remake-4.3+dbg-1.5+dfsg/src/debugger/fns.c:395: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). char *psz_try = calloc(1, strlen(psz_varname)); data/remake-4.3+dbg-1.5+dfsg/src/debugger/fns.c:398: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). if ( ')' == psz_try[strlen(psz_try)-1] ) data/remake-4.3+dbg-1.5+dfsg/src/debugger/fns.c:399: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). psz_try[strlen(psz_try)-1]='\0'; data/remake-4.3+dbg-1.5+dfsg/src/debugger/fns.c:406: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). return define_variable (psz_varname, strlen(psz_varname), "", o_debugger, 0); data/remake-4.3+dbg-1.5+dfsg/src/debugger/fns.c:418: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). if (!psz_varname || 0==strlen(psz_varname)) { data/remake-4.3+dbg-1.5+dfsg/src/debugger/fns.c:436: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). p_v = lookup_variable_in_set(psz_varname, strlen(psz_varname), p_set); data/remake-4.3+dbg-1.5+dfsg/src/debugger/fns.c:439: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). p_v = lookup_variable (psz_varname, strlen (psz_varname)); data/remake-4.3+dbg-1.5+dfsg/src/debugger/fns.c:441: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). p_v = lookup_variable (psz_varname, strlen (psz_varname)); data/remake-4.3+dbg-1.5+dfsg/src/debugger/fns.c:485: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). unsigned int len = strlen(line); data/remake-4.3+dbg-1.5+dfsg/src/default.c:419: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). define_variable (s[0], strlen (s[0]), s[1], o_default, 1); data/remake-4.3+dbg-1.5+dfsg/src/default.c:428: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). undefine_variable_global (s[0], strlen (s[0]), o_default); data/remake-4.3+dbg-1.5+dfsg/src/dir.c:24: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). # define NAMLEN(dirent) strlen((dirent)->d_name) data/remake-4.3+dbg-1.5+dfsg/src/dir.c:428: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). const char *p = name + strlen (name); data/remake-4.3+dbg-1.5+dfsg/src/dir.c:523: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). dirfile_key.length = strlen (filename); data/remake-4.3+dbg-1.5+dfsg/src/dir.c:685: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). new->length = strlen (filename); data/remake-4.3+dbg-1.5+dfsg/src/dir.c:731: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). dirfile_key.length = strlen (filename); data/remake-4.3+dbg-1.5+dfsg/src/expand.c:176:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). o = variable_buffer_output (o, value, strlen (value)); data/remake-4.3+dbg-1.5+dfsg/src/expand.c:227:71: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). o = variable_buffer_output (o, p, p1 != 0 ? (size_t) (p1 - p) : strlen (p) + 1); data/remake-4.3+dbg-1.5+dfsg/src/expand.c:539:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return variable_buffer_output (buf, v->value, strlen (v->value)); data/remake-4.3+dbg-1.5+dfsg/src/expand.c:541: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). buf = variable_expand_string (buf, v->value, strlen (v->value)); data/remake-4.3+dbg-1.5+dfsg/src/expand.c:542: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). return (buf + strlen (buf)); data/remake-4.3+dbg-1.5+dfsg/src/expand.c:558: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). val = variable_append (v->name, strlen (v->name), data/remake-4.3+dbg-1.5+dfsg/src/file.c:106: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 (from_file->name); data/remake-4.3+dbg-1.5+dfsg/src/file.c:112: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). l + strlen (to_file->cmds->fileinfo.filenm) + INTSTR_LENGTH, data/remake-4.3+dbg-1.5+dfsg/src/file.c:120: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). l += strlen (to_hname); data/remake-4.3+dbg-1.5+dfsg/src/file.c:330: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 = strlen (dp->name) + 1; data/remake-4.3+dbg-1.5+dfsg/src/file.c:343: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). memmove (percent, percent+1, strlen (percent)); data/remake-4.3+dbg-1.5+dfsg/src/file.c:344: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). o = variable_buffer_output (buffer, nm, strlen (nm) + 1); data/remake-4.3+dbg-1.5+dfsg/src/file.c:783:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen (p); data/remake-4.3+dbg-1.5+dfsg/src/file.c:790:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen (p) - 1; data/remake-4.3+dbg-1.5+dfsg/src/file.c:1102: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). error (NULL, strlen (_p->name) + CSTRLEN (# _n) + strlen (_p->_n), \ data/remake-4.3+dbg-1.5+dfsg/src/file.c:1102:61: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). error (NULL, strlen (_p->name) + CSTRLEN (# _n) + strlen (_p->_n), \ data/remake-4.3+dbg-1.5+dfsg/src/file.c:1141:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t max = EXPANSION_INCREMENT (strlen (value)); data/remake-4.3+dbg-1.5+dfsg/src/file.c:1156: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 l = strlen (f->name); data/remake-4.3+dbg-1.5+dfsg/src/function.c:87:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). o = variable_buffer_output (o, t, strlen (t)); data/remake-4.3+dbg-1.5+dfsg/src/function.c:105: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). o = variable_buffer_output (o, t, strlen (t)); data/remake-4.3+dbg-1.5+dfsg/src/function.c:160: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). replace_postpercent_len = strlen (replace_percent); data/remake-4.3+dbg-1.5+dfsg/src/function.c:164: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). replace_prepercent_len = strlen (replace); data/remake-4.3+dbg-1.5+dfsg/src/function.c:171: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 (pattern), strlen (replace), 1); data/remake-4.3+dbg-1.5+dfsg/src/function.c:171: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). strlen (pattern), strlen (replace), 1); data/remake-4.3+dbg-1.5+dfsg/src/function.c:176: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). pattern_postpercent_len = strlen (pattern_percent); data/remake-4.3+dbg-1.5+dfsg/src/function.c:296: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 len = strlen (pattern) + 1; data/remake-4.3+dbg-1.5+dfsg/src/function.c:305: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). sfxlen = strlen (percent + 1); data/remake-4.3+dbg-1.5+dfsg/src/function.c:306: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). strlength = strlen (str); data/remake-4.3+dbg-1.5+dfsg/src/function.c:378: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 len = strlen (chain->name); data/remake-4.3+dbg-1.5+dfsg/src/function.c:460:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). struct variable *v = lookup_variable (argv[0], strlen (argv[0])); data/remake-4.3+dbg-1.5+dfsg/src/function.c:499:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). struct variable *v = lookup_variable (argv[0], strlen (argv[0])); data/remake-4.3+dbg-1.5+dfsg/src/function.c:601: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 fixlen = strlen (argv[0]); data/remake-4.3+dbg-1.5+dfsg/src/function.c:631:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). o = subst_expand (o, argv[2], argv[0], argv[1], strlen (argv[0]), data/remake-4.3+dbg-1.5+dfsg/src/function.c:632: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). strlen (argv[1]), 0); data/remake-4.3+dbg-1.5+dfsg/src/function.c:679: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). o = variable_buffer_output (o, buf, strlen (buf)); data/remake-4.3+dbg-1.5+dfsg/src/function.c:702: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). const char *end = s + strlen (s) - 1; data/remake-4.3+dbg-1.5+dfsg/src/function.c:788:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). o = variable_buffer_output (o, argv[0], strlen (argv[0])); data/remake-4.3+dbg-1.5+dfsg/src/function.c:812: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). var = define_variable (vp, strlen (vp), "", o_automatic, 0); data/remake-4.3+dbg-1.5+dfsg/src/function.c:824: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). o = variable_buffer_output (o, result, strlen (result)); data/remake-4.3+dbg-1.5+dfsg/src/function.c:922: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). pat->length = strlen (pat->str); data/remake-4.3+dbg-1.5+dfsg/src/function.c:994: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). o = variable_buffer_output (o, wp->str, strlen (wp->str)); data/remake-4.3+dbg-1.5+dfsg/src/function.c:1054:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len += strlen (*argvp) + 2; data/remake-4.3+dbg-1.5+dfsg/src/function.c:1062: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). p += strlen (*argvp); data/remake-4.3+dbg-1.5+dfsg/src/function.c:1134:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (words[i]); data/remake-4.3+dbg-1.5+dfsg/src/function.c:1135: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). if (i == wordi - 1 || strlen (words[i + 1]) != len data/remake-4.3+dbg-1.5+dfsg/src/function.c:1168: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). const char *endp = begp + strlen (argv[0]) - 1; data/remake-4.3+dbg-1.5+dfsg/src/function.c:1195: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). o = variable_buffer_output (o, expansion, strlen (expansion)); data/remake-4.3+dbg-1.5+dfsg/src/function.c:1223: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). const char *endp = begp + strlen (*argv) - 1; data/remake-4.3+dbg-1.5+dfsg/src/function.c:1235: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). result = strlen (expansion); data/remake-4.3+dbg-1.5+dfsg/src/function.c:1275: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). const char *endp = begp + strlen (*argv) - 1; data/remake-4.3+dbg-1.5+dfsg/src/function.c:1284: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). result = strlen (expansion); data/remake-4.3+dbg-1.5+dfsg/src/function.c:1311: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). o = variable_buffer_output (o, p, strlen (p)); data/remake-4.3+dbg-1.5+dfsg/src/function.c:1363:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). struct variable *v = lookup_variable (argv[0], strlen (argv[0])); data/remake-4.3+dbg-1.5+dfsg/src/function.c:1367: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). o = variable_buffer_output (o, v->value, strlen (v->value)); data/remake-4.3+dbg-1.5+dfsg/src/function.c:1755:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). EINTRLOOP (cc, read (pipedes[0], &buffer[i], maxlen - i)); data/remake-4.3+dbg-1.5+dfsg/src/function.c:1996:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (in, path, len); data/remake-4.3+dbg-1.5+dfsg/src/function.c:2005: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). char *ep = rp + strlen (rp) - 1; data/remake-4.3+dbg-1.5+dfsg/src/function.c:2020: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). o = variable_buffer_output (o, out, strlen (out)); data/remake-4.3+dbg-1.5+dfsg/src/function.c:2063: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 (argv[1]); data/remake-4.3+dbg-1.5+dfsg/src/function.c:2136:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (in, path, len); data/remake-4.3+dbg-1.5+dfsg/src/function.c:2141:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). o = variable_buffer_output (o, out, strlen (out)); data/remake-4.3+dbg-1.5+dfsg/src/function.c:2230: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). fatal (*expanding_var, strlen (entry_p->name), data/remake-4.3+dbg-1.5+dfsg/src/function.c:2254:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). o = variable_buffer_output (o, p, strlen (p)); data/remake-4.3+dbg-1.5+dfsg/src/function.c:2308: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). fatal (*expanding_var, strlen (entry_p->name), data/remake-4.3+dbg-1.5+dfsg/src/function.c:2420: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). flen = strlen (fname); data/remake-4.3+dbg-1.5+dfsg/src/function.c:2446: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_variable (num, strlen (num), *argv, o_automatic, 0); data/remake-4.3+dbg-1.5+dfsg/src/function.c:2459: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_variable (num, strlen (num), "", o_automatic, 0); data/remake-4.3+dbg-1.5+dfsg/src/function.c:2476: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). return o + strlen (o); data/remake-4.3+dbg-1.5+dfsg/src/getopt.c:231:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # if (!defined __STDC__ || !__STDC__) && !defined strlen data/remake-4.3+dbg-1.5+dfsg/src/getopt.c:234:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). extern int strlen (const char *); data/remake-4.3+dbg-1.5+dfsg/src/getopt.c:429:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = nonoption_flags_max_len = strlen (orig_str); data/remake-4.3+dbg-1.5+dfsg/src/getopt.c:646:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). == (unsigned int) strlen (p->name)) data/remake-4.3+dbg-1.5+dfsg/src/getopt.c:670:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nextchar += strlen (nextchar); data/remake-4.3+dbg-1.5+dfsg/src/getopt.c:701: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). nextchar += strlen (nextchar); data/remake-4.3+dbg-1.5+dfsg/src/getopt.c:718:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nextchar += strlen (nextchar); data/remake-4.3+dbg-1.5+dfsg/src/getopt.c:723:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nextchar += strlen (nextchar); data/remake-4.3+dbg-1.5+dfsg/src/getopt.c:835:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((unsigned int) (nameend - nextchar) == strlen (p->name)) data/remake-4.3+dbg-1.5+dfsg/src/getopt.c:858:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nextchar += strlen (nextchar); data/remake-4.3+dbg-1.5+dfsg/src/getopt.c:878:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nextchar += strlen (nextchar); data/remake-4.3+dbg-1.5+dfsg/src/getopt.c:892:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nextchar += strlen (nextchar); data/remake-4.3+dbg-1.5+dfsg/src/getopt.c:896:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nextchar += strlen (nextchar); data/remake-4.3+dbg-1.5+dfsg/src/hash.c:463: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 klen = strlen ((const char*)k); data/remake-4.3+dbg-1.5+dfsg/src/implicit.c:209: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 namelen = strlen (filename); data/remake-4.3+dbg-1.5+dfsg/src/job.c:201: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). const size_t sizemax = strlen (base) + strlen (ext) + 10; data/remake-4.3+dbg-1.5+dfsg/src/job.c:201: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). const size_t sizemax = strlen (base) + strlen (ext) + 10; data/remake-4.3+dbg-1.5+dfsg/src/job.c:326: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 len = strlen (*s); data/remake-4.3+dbg-1.5+dfsg/src/job.c:327:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((strlen (name) >= len && STOP_SET (name[len], MAP_DOT|MAP_NUL)) data/remake-4.3+dbg-1.5+dfsg/src/job.c:1609: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). memmove (out, in, strlen (in) + 1); data/remake-4.3+dbg-1.5+dfsg/src/job.c:1706:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *n = alloca (strlen (cmds->fileinfo.filenm) + 1 + 11 + 1); data/remake-4.3+dbg-1.5+dfsg/src/job.c:1884:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). EINTRLOOP (r, read (proc_fd, avg, PROC_LOADAVG_SIZE)); data/remake-4.3+dbg-1.5+dfsg/src/job.c:2496: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). i = strlen (line) + 1; data/remake-4.3+dbg-1.5+dfsg/src/job.c:2779: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 shell_len = strlen (shell); data/remake-4.3+dbg-1.5+dfsg/src/job.c:2780: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 line_len = strlen (line); data/remake-4.3+dbg-1.5+dfsg/src/job.c:2781: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). size_t sflags_len = shellflags ? strlen (shellflags) : 0; data/remake-4.3+dbg-1.5+dfsg/src/job.c:3088: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). line_len = strlen (new_line) - shell_len - sflags_len - 2; data/remake-4.3+dbg-1.5+dfsg/src/job.c:3090:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (new_argv[0], data/remake-4.3+dbg-1.5+dfsg/src/load.c:124: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 nmlen = strlen (*ldname); data/remake-4.3+dbg-1.5+dfsg/src/load.c:217: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 loadlen = strlen (loaded); data/remake-4.3+dbg-1.5+dfsg/src/load.c:218: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). char *newval = alloca (loadlen + strlen (*ldname) + 2); data/remake-4.3+dbg-1.5+dfsg/src/main.c:812: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). sprintf (&errmsg[strlen(errmsg)], data/remake-4.3+dbg-1.5+dfsg/src/main.c:877: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). tokend = search_token + strlen (search_token) - 3; data/remake-4.3+dbg-1.5+dfsg/src/main.c:935: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). p += strlen (p); data/remake-4.3+dbg-1.5+dfsg/src/main.c:1156: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). program = start + strlen (start); data/remake-4.3+dbg-1.5+dfsg/src/main.c:1162: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 (program); data/remake-4.3+dbg-1.5+dfsg/src/main.c:1516: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). len += 2 * strlen (v->name); data/remake-4.3+dbg-1.5+dfsg/src/main.c:1520: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). len += 2 * strlen (v->value); data/remake-4.3+dbg-1.5+dfsg/src/main.c:1563: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). char *p = (char *)dir + strlen (dir) - 1; data/remake-4.3+dbg-1.5+dfsg/src/main.c:1656: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). template = alloca (strlen (tmpdir) + CSTRLEN (DEFAULT_TMPFILE) + 2); data/remake-4.3+dbg-1.5+dfsg/src/main.c:1660:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strchr ("/\\", template[strlen (template) - 1]) == NULL) data/remake-4.3+dbg-1.5+dfsg/src/main.c:1661:15: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (template, "/"); data/remake-4.3+dbg-1.5+dfsg/src/main.c:1664: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). if (template[strlen (template) - 1] != '/') data/remake-4.3+dbg-1.5+dfsg/src/main.c:1665:15: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (template, "/"); data/remake-4.3+dbg-1.5+dfsg/src/main.c:1778: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). len += 2 * strlen (p); data/remake-4.3+dbg-1.5+dfsg/src/main.c:2154: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). size_t l = strlen (dnm); data/remake-4.3+dbg-1.5+dfsg/src/main.c:2327: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). strlen (default_goal_var->value)); data/remake-4.3+dbg-1.5+dfsg/src/main.c:2559: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). oldlen = strlen (gv->value); data/remake-4.3+dbg-1.5+dfsg/src/main.c:2560: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). newlen = strlen (f->name); data/remake-4.3+dbg-1.5+dfsg/src/main.c:2681: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). error (NILF, strlen (op), data/remake-4.3+dbg-1.5+dfsg/src/main.c:2820: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). len = strlen (value); data/remake-4.3+dbg-1.5+dfsg/src/main.c:2935: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). flagslen += 2 + strlen (cs->long_name); \ data/remake-4.3+dbg-1.5+dfsg/src/main.c:2968: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). ADD_FLAG (buf, strlen (buf)); data/remake-4.3+dbg-1.5+dfsg/src/main.c:2988: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). ADD_FLAG (buf, strlen (buf)); data/remake-4.3+dbg-1.5+dfsg/src/main.c:2998: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). ADD_FLAG (p, strlen (p)); data/remake-4.3+dbg-1.5+dfsg/src/main.c:3011: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). ADD_FLAG (sl->list[i], strlen (sl->list[i])); data/remake-4.3+dbg-1.5+dfsg/src/main.c:3057: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). p += strlen (p); data/remake-4.3+dbg-1.5+dfsg/src/main.c:3100: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 l = strlen (r); data/remake-4.3+dbg-1.5+dfsg/src/makeint.h:292:15: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). extern mode_t umask (mode_t); data/remake-4.3+dbg-1.5+dfsg/src/makeint.h:489: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). #define OS(_t,_a,_f,_s) _t((_a), strlen (_s), (_f), (_s)) data/remake-4.3+dbg-1.5+dfsg/src/makeint.h:490: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). #define OSS(_t,_a,_f,_s1,_s2) _t((_a), strlen (_s1) + strlen (_s2), \ data/remake-4.3+dbg-1.5+dfsg/src/makeint.h:490: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). #define OSS(_t,_a,_f,_s1,_s2) _t((_a), strlen (_s1) + strlen (_s2), \ data/remake-4.3+dbg-1.5+dfsg/src/makeint.h:492:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define OSSS(_t,_a,_f,_s1,_s2,_s3) _t((_a), strlen (_s1) + strlen (_s2) + strlen (_s3), \ data/remake-4.3+dbg-1.5+dfsg/src/makeint.h:492:60: [1] (buffer) strlen: Does not handle 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 OSSS(_t,_a,_f,_s1,_s2,_s3) _t((_a), strlen (_s1) + strlen (_s2) + strlen (_s3), \ data/remake-4.3+dbg-1.5+dfsg/src/makeint.h:492:75: [1] (buffer) strlen: Does not handle 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 OSSS(_t,_a,_f,_s1,_s2,_s3) _t((_a), strlen (_s1) + strlen (_s2) + strlen (_s3), \ data/remake-4.3+dbg-1.5+dfsg/src/makeint.h:497: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). #define OSN(_t,_a,_f,_s,_n) _t((_a), strlen (_s) + INTSTR_LENGTH, \ data/remake-4.3+dbg-1.5+dfsg/src/makeint.h:499:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define ONS(_t,_a,_f,_n,_s) _t((_a), INTSTR_LENGTH + strlen (_s), \ data/remake-4.3+dbg-1.5+dfsg/src/makeint.h:507: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). #define xstrlen(_s) ((_s)==NULL ? 0 : strlen (_s)) data/remake-4.3+dbg-1.5+dfsg/src/misc.c:117: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). memmove(out, in, strlen(in) + 1); data/remake-4.3+dbg-1.5+dfsg/src/misc.c:287:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). EINTRLOOP (r, read (fd, msg, len)); data/remake-4.3+dbg-1.5+dfsg/src/misc.c:383:1: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask (mode_t mask) data/remake-4.3+dbg-1.5+dfsg/src/misc.c:398:17: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). mode_t mask = umask (0077); data/remake-4.3+dbg-1.5+dfsg/src/misc.c:401: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). # define TEMPLATE_LEN strlen (template) data/remake-4.3+dbg-1.5+dfsg/src/misc.c:434:3: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask (mask); data/remake-4.3+dbg-1.5+dfsg/src/output.c:70: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 len = strlen (msg); data/remake-4.3+dbg-1.5+dfsg/src/output.c:90: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). need = strlen (program) + INTSTR_LENGTH + 2 + 1; data/remake-4.3+dbg-1.5+dfsg/src/output.c:92: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). need += strlen (starting_directory); data/remake-4.3+dbg-1.5+dfsg/src/output.c:118: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). need += strlen (fmt); data/remake-4.3+dbg-1.5+dfsg/src/output.c:234:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). EINTRLOOP (len, read (from, buffer, sizeof (buffer))); data/remake-4.3+dbg-1.5+dfsg/src/output.c:285:17: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). mode_t mask = umask (0077); data/remake-4.3+dbg-1.5+dfsg/src/output.c:301:3: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask (mask); data/remake-4.3+dbg-1.5+dfsg/src/output.c:566: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). len += strlen (fmt) + strlen (program) + INTSTR_LENGTH + 4 + 1 + 1; data/remake-4.3+dbg-1.5+dfsg/src/output.c:566: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). len += strlen (fmt) + strlen (program) + INTSTR_LENGTH + 4 + 1 + 1; data/remake-4.3+dbg-1.5+dfsg/src/output.c:575: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). p += strlen (p); data/remake-4.3+dbg-1.5+dfsg/src/output.c:582:3: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (p, "\n"); data/remake-4.3+dbg-1.5+dfsg/src/output.c:596: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). len += (strlen (fmt) + strlen (program) data/remake-4.3+dbg-1.5+dfsg/src/output.c:596: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). len += (strlen (fmt) + strlen (program) data/remake-4.3+dbg-1.5+dfsg/src/output.c:597: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). + (flocp && flocp->filenm ? strlen (flocp->filenm) : 0) data/remake-4.3+dbg-1.5+dfsg/src/output.c:607:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen (p); data/remake-4.3+dbg-1.5+dfsg/src/output.c:613:3: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (p, "\n"); data/remake-4.3+dbg-1.5+dfsg/src/output.c:628: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). len += (strlen (fmt) + strlen (program) data/remake-4.3+dbg-1.5+dfsg/src/output.c:628:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len += (strlen (fmt) + strlen (program) data/remake-4.3+dbg-1.5+dfsg/src/output.c:629: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). + (flocp && flocp->filenm ? strlen (flocp->filenm) : 0) data/remake-4.3+dbg-1.5+dfsg/src/output.c:630: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). + INTSTR_LENGTH + 8 + strlen (stop) + 1); data/remake-4.3+dbg-1.5+dfsg/src/output.c:639:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen (p); data/remake-4.3+dbg-1.5+dfsg/src/output.c:680: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). writebuf (FD_STDOUT, program, strlen (program)); data/remake-4.3+dbg-1.5+dfsg/src/posixos.c:207:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). EINTRLOOP (r, read (job_fds[0], &intake, 1)); data/remake-4.3+dbg-1.5+dfsg/src/posixos.c:311:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). EINTRLOOP (r, read (job_fds[0], &intake, 1)); data/remake-4.3+dbg-1.5+dfsg/src/posixos.c:420:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). EINTRLOOP (got_token, read (job_rfd, &intake, 1)); data/remake-4.3+dbg-1.5+dfsg/src/print.c:52: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). need = strlen (program) + INTSTR_LENGTH + 2 + 1; data/remake-4.3+dbg-1.5+dfsg/src/print.c:54: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). need += strlen (starting_directory); data/remake-4.3+dbg-1.5+dfsg/src/print.c:68: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). need += strlen (fmt); data/remake-4.3+dbg-1.5+dfsg/src/print.c:257:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!basename_filenames && strlen(p_floc->filenm) data/remake-4.3+dbg-1.5+dfsg/src/read.c:460: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). ebuf.size = strlen (buffer); data/remake-4.3+dbg-1.5+dfsg/src/read.c:698: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). linelen = strlen (line); data/remake-4.3+dbg-1.5+dfsg/src/read.c:1100: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). char *pend = p2 + strlen (p2); data/remake-4.3+dbg-1.5+dfsg/src/read.c:1115: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). lb_next += strlen (lb_next); data/remake-4.3+dbg-1.5+dfsg/src/read.c:1148: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). p2 += strlen (p2); data/remake-4.3+dbg-1.5+dfsg/src/read.c:1213: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). plen = strlen (p2); data/remake-4.3+dbg-1.5+dfsg/src/read.c:1214: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). variable_buffer_output (p2+plen, lb_next, strlen (lb_next)+1); data/remake-4.3+dbg-1.5+dfsg/src/read.c:1228: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). variable_buffer_output (p2 + strlen (p2), data/remake-4.3+dbg-1.5+dfsg/src/read.c:1229: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). semip, strlen (semip)+1); data/remake-4.3+dbg-1.5+dfsg/src/read.c:1314: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 = beg + strlen (beg) - 1; data/remake-4.3+dbg-1.5+dfsg/src/read.c:1327: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 l = strlen (cmdleft); data/remake-4.3+dbg-1.5+dfsg/src/read.c:1393: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). size_t l = strlen (dep_name (d2)); data/remake-4.3+dbg-1.5+dfsg/src/read.c:1469: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). p = name + strlen (name) - 1; data/remake-4.3+dbg-1.5+dfsg/src/read.c:1514: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). p = name + strlen (name) - 1; data/remake-4.3+dbg-1.5+dfsg/src/read.c:1540:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (p); data/remake-4.3+dbg-1.5+dfsg/src/read.c:1564: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 (line); data/remake-4.3+dbg-1.5+dfsg/src/read.c:1804: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). l = strlen (s2); data/remake-4.3+dbg-1.5+dfsg/src/read.c:1947: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 len = strlen (v->name); data/remake-4.3+dbg-1.5+dfsg/src/read.c:2164: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 l = strlen (f->name); data/remake-4.3+dbg-1.5+dfsg/src/read.c:2382: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). string_len = strlen (string); data/remake-4.3+dbg-1.5+dfsg/src/read.c:2425: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). string_len = strlen (string); data/remake-4.3+dbg-1.5+dfsg/src/read.c:2541: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). slen = strlen (*string); data/remake-4.3+dbg-1.5+dfsg/src/read.c:2658: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/remake-4.3+dbg-1.5+dfsg/src/read.c:2689: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). memmove (p-1, p, strlen (p) + 1); data/remake-4.3+dbg-1.5+dfsg/src/read.c:2991: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 (dir); data/remake-4.3+dbg-1.5+dfsg/src/read.c:3013: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 (djdir->value) + 8; data/remake-4.3+dbg-1.5+dfsg/src/read.c:3032: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 len = strlen (*cpp); data/remake-4.3+dbg-1.5+dfsg/src/read.c:3187: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 l = strlen (*stringp) + 1; data/remake-4.3+dbg-1.5+dfsg/src/read.c:3232: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). p = s + strlen (s); data/remake-4.3+dbg-1.5+dfsg/src/remake.c:392: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 (file->name) + strlen (file->parent->name) + 4; data/remake-4.3+dbg-1.5+dfsg/src/remake.c:392: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). size_t l = strlen (file->name) + strlen (file->parent->name) + 4; data/remake-4.3+dbg-1.5+dfsg/src/remake.c:402: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 (file->name) + 4; data/remake-4.3+dbg-1.5+dfsg/src/remake.c:1238:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). EINTRLOOP (e, read (fd, &buf, 1)); data/remake-4.3+dbg-1.5+dfsg/src/remake.c:1353: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). arlen = strlen (arfile->hname); data/remake-4.3+dbg-1.5+dfsg/src/remake.c:1354: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). memlen = strlen (memname); data/remake-4.3+dbg-1.5+dfsg/src/remake.c:1414: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). name_len = strlen (name) - strlen (file->name); data/remake-4.3+dbg-1.5+dfsg/src/remake.c:1414: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). name_len = strlen (name) - strlen (file->name); data/remake-4.3+dbg-1.5+dfsg/src/remake.c:1540: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). const char *p = name + strlen (name); data/remake-4.3+dbg-1.5+dfsg/src/remake.c:1593: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). if (check_symlink_flag && strlen (name) <= GET_PATH_MAX) data/remake-4.3+dbg-1.5+dfsg/src/remake.c:1700: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). liblen = strlen (lib); data/remake-4.3+dbg-1.5+dfsg/src/remake.c:1775: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 l = strlen (*dp); data/remake-4.3+dbg-1.5+dfsg/src/remake.c:1780: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). buflen = strlen (libbuf); data/remake-4.3+dbg-1.5+dfsg/src/remake.c:1783: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). else if (buflen < strlen (libbuf)) data/remake-4.3+dbg-1.5+dfsg/src/remake.c:1785: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). buflen = strlen (libbuf); data/remake-4.3+dbg-1.5+dfsg/src/remote-cstms.c:197: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 hlen = strlen (hnm); data/remake-4.3+dbg-1.5+dfsg/src/remote-cstms.c:204: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). error (NILF, hlen + strlen (err), data/remake-4.3+dbg-1.5+dfsg/src/remote-cstms.c:212: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). error (NILF, hlen + strlen (msg), "exporting to %s: %s", hnm, msg); data/remake-4.3+dbg-1.5+dfsg/src/rule.c:83: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 l = strlen (dep_name (dep)); data/remake-4.3+dbg-1.5+dfsg/src/rule.c:104: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 len = strlen (dname); data/remake-4.3+dbg-1.5+dfsg/src/rule.c:195: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 len = strlen (target); data/remake-4.3+dbg-1.5+dfsg/src/rule.c:208: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 len = strlen (source); data/remake-4.3+dbg-1.5+dfsg/src/rule.c:236: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 l = strlen (dep_name (d)); data/remake-4.3+dbg-1.5+dfsg/src/rule.c:258: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). slen = strlen (dep_name (d)); data/remake-4.3+dbg-1.5+dfsg/src/rule.c:266:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). s2len = strlen (dep_name (d2)); data/remake-4.3+dbg-1.5+dfsg/src/rule.c:402: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). r->lens[0] = (unsigned int) strlen (p->target); data/remake-4.3+dbg-1.5+dfsg/src/rule.c:505: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). r->lens[i] = (unsigned int) strlen (targets[i]); data/remake-4.3+dbg-1.5+dfsg/src/strcache.c:237: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). return add_hash (str, strlen (str)); data/remake-4.3+dbg-1.5+dfsg/src/variable.c:92: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 (target); data/remake-4.3+dbg-1.5+dfsg/src/variable.c:143: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 targlen = strlen (target); data/remake-4.3+dbg-1.5+dfsg/src/variable.c:264:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (vname, name, length); data/remake-4.3+dbg-1.5+dfsg/src/variable.c:446:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t max = EXPANSION_INCREMENT (strlen (var->value)); data/remake-4.3+dbg-1.5+dfsg/src/variable.c:522:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (vname, name, length); data/remake-4.3+dbg-1.5+dfsg/src/variable.c:544: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). nvalue = alloca (strlen (value) + scnt + 1); data/remake-4.3+dbg-1.5+dfsg/src/variable.c:664: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). p->variable.name, strlen (p->variable.name), data/remake-4.3+dbg-1.5+dfsg/src/variable.c:1063: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). gv = lookup_variable_in_set (v->name, strlen (v->name), data/remake-4.3+dbg-1.5+dfsg/src/variable.c:1241: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). v = lookup_variable (varname, strlen (varname)); data/remake-4.3+dbg-1.5+dfsg/src/variable.c:1261:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). v = lookup_variable_in_set (varname, strlen (varname), data/remake-4.3+dbg-1.5+dfsg/src/variable.c:1270:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). v = lookup_variable (varname, strlen (varname)); data/remake-4.3+dbg-1.5+dfsg/src/variable.c:1301: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). vallen = strlen (val); data/remake-4.3+dbg-1.5+dfsg/src/variable.c:1308: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). oldlen = strlen (v->value); data/remake-4.3+dbg-1.5+dfsg/src/variable.c:1355:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). v = define_variable_loc (varname, strlen (varname), data/remake-4.3+dbg-1.5+dfsg/src/variable.c:1381: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). pathlen = strlen (pathv->value); data/remake-4.3+dbg-1.5+dfsg/src/variable.c:1395: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). v = define_variable_loc (varname, strlen (varname), data/remake-4.3+dbg-1.5+dfsg/src/variable.c:1400: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). v = lookup_variable (varname, strlen (varname)); data/remake-4.3+dbg-1.5+dfsg/src/variable.c:1419: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). v = define_variable_in_set (varname, strlen (varname), default_shell, data/remake-4.3+dbg-1.5+dfsg/src/variable.c:1435: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). v = define_variable_in_set (varname, strlen (varname), p, data/remake-4.3+dbg-1.5+dfsg/src/variable.c:1444: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). v = lookup_variable (varname, strlen (varname)); data/remake-4.3+dbg-1.5+dfsg/src/variable.c:1463: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). v = define_variable_in_set (varname, strlen (varname), p, data/remake-4.3+dbg-1.5+dfsg/src/variable.c:1883: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 l = strlen (file->name); data/remake-4.3+dbg-1.5+dfsg/src/vpath.c:294: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). path->patlen = strlen (pattern); data/remake-4.3+dbg-1.5+dfsg/src/vpath.c:349: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). flen = strlen (file); data/remake-4.3+dbg-1.5+dfsg/src/vpath.c:379: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 (vpath[i]); data/remake-4.3+dbg-1.5+dfsg/src/w32/w32os.c:78: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). fatal (NILF, strlen (auth) + INTSTR_LENGTH + strlen (estr), data/remake-4.3+dbg-1.5+dfsg/src/w32/w32os.c:78: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). fatal (NILF, strlen (auth) + INTSTR_LENGTH + strlen (estr), ANALYSIS SUMMARY: Hits = 1053 Lines analyzed = 60217 in approximately 1.72 seconds (35047 lines/second) Physical Source Lines of Code (SLOC) = 39137 Hits@level = [0] 383 [1] 424 [2] 318 [3] 73 [4] 217 [5] 21 Hits@level+ = [0+] 1436 [1+] 1053 [2+] 629 [3+] 311 [4+] 238 [5+] 21 Hits/KSLOC@level+ = [0+] 36.6916 [1+] 26.9055 [2+] 16.0717 [3+] 7.94644 [4+] 6.0812 [5+] 0.536577 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.