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/elk-3.99.8/src/main.c
Examining data/elk-3.99.8/src/print.c
Examining data/elk-3.99.8/src/feature.c
Examining data/elk-3.99.8/src/heap-sc.c
Examining data/elk-3.99.8/src/debug.c
Examining data/elk-3.99.8/src/stab-convex.c
Examining data/elk-3.99.8/src/load.c
Examining data/elk-3.99.8/src/bignum.c
Examining data/elk-3.99.8/src/char.c
Examining data/elk-3.99.8/src/dump-hp9k.c
Examining data/elk-3.99.8/src/terminate.c
Examining data/elk-3.99.8/src/special.c
Examining data/elk-3.99.8/src/vector.c
Examining data/elk-3.99.8/src/env.c
Examining data/elk-3.99.8/src/loadlib.c
Examining data/elk-3.99.8/src/string.c
Examining data/elk-3.99.8/src/cstring.c
Examining data/elk-3.99.8/src/stab-hp9k300.c
Examining data/elk-3.99.8/src/promise.c
Examining data/elk-3.99.8/src/heap-gen.c
Examining data/elk-3.99.8/src/type.c
Examining data/elk-3.99.8/src/cont.c
Examining data/elk-3.99.8/src/stab-ecoff.c
Examining data/elk-3.99.8/src/io.c
Examining data/elk-3.99.8/src/stab-vanilla.c
Examining data/elk-3.99.8/src/stab-hp9k800.c
Examining data/elk-3.99.8/src/stab-macho.c
Examining data/elk-3.99.8/src/libelk.c
Examining data/elk-3.99.8/src/prim.c
Examining data/elk-3.99.8/src/error.c
Examining data/elk-3.99.8/src/stab-bsd.c
Examining data/elk-3.99.8/src/onfork.c
Examining data/elk-3.99.8/src/stkmem.c
Examining data/elk-3.99.8/src/list.c
Examining data/elk-3.99.8/src/stab.c
Examining data/elk-3.99.8/src/stab-coff.c
Examining data/elk-3.99.8/src/dump-vanilla.c
Examining data/elk-3.99.8/src/bool.c
Examining data/elk-3.99.8/src/autoload.c
Examining data/elk-3.99.8/src/dump-ecoff.c
Examining data/elk-3.99.8/src/dump-elf.c
Examining data/elk-3.99.8/src/dump.c
Examining data/elk-3.99.8/src/read.c
Examining data/elk-3.99.8/src/heap.c
Examining data/elk-3.99.8/src/exception.c
Examining data/elk-3.99.8/src/symbol.c
Examining data/elk-3.99.8/src/proc.c
Examining data/elk-3.99.8/src/math.c
Examining data/elk-3.99.8/src/malloc.c
Examining data/elk-3.99.8/src/stab-elf.c
Examining data/elk-3.99.8/include/stkmem.h
Examining data/elk-3.99.8/include/type.h
Examining data/elk-3.99.8/include/intern.h
Examining data/elk-3.99.8/include/extern.h
Examining data/elk-3.99.8/include/exception.h
Examining data/elk-3.99.8/include/object.h
Examining data/elk-3.99.8/include/kernel.h
Examining data/elk-3.99.8/include/funcproto.h
Examining data/elk-3.99.8/include/scheme.h
Examining data/elk-3.99.8/include/misc.h
Examining data/elk-3.99.8/include/cstring.h
Examining data/elk-3.99.8/include/compat.h
Examining data/elk-3.99.8/include/param.h
Examining data/elk-3.99.8/include/gc.h
Examining data/elk-3.99.8/examples/c++/constructor.cpp
Examining data/elk-3.99.8/examples/c++/class.cpp
Examining data/elk-3.99.8/lib/misc/newhandler.cpp
Examining data/elk-3.99.8/lib/misc/monitor.c
Examining data/elk-3.99.8/lib/misc/debug.c
Examining data/elk-3.99.8/lib/misc/regexp.c
Examining data/elk-3.99.8/lib/misc/hack.c
Examining data/elk-3.99.8/lib/misc/struct.c
Examining data/elk-3.99.8/lib/misc/gdbm.c
Examining data/elk-3.99.8/lib/misc/elk-eval.c
Examining data/elk-3.99.8/lib/misc/bitstring.c
Examining data/elk-3.99.8/lib/misc/record.c
Examining data/elk-3.99.8/lib/xlib/xlib.h
Examining data/elk-3.99.8/lib/xlib/gcontext.c
Examining data/elk-3.99.8/lib/xlib/key.c
Examining data/elk-3.99.8/lib/xlib/graphics.c
Examining data/elk-3.99.8/lib/xlib/color.c
Examining data/elk-3.99.8/lib/xlib/type.c
Examining data/elk-3.99.8/lib/xlib/util.c
Examining data/elk-3.99.8/lib/xlib/cursor.c
Examining data/elk-3.99.8/lib/xlib/text.c
Examining data/elk-3.99.8/lib/xlib/wm.c
Examining data/elk-3.99.8/lib/xlib/colormap.c
Examining data/elk-3.99.8/lib/xlib/error.c
Examining data/elk-3.99.8/lib/xlib/objects.c
Examining data/elk-3.99.8/lib/xlib/pixmap.c
Examining data/elk-3.99.8/lib/xlib/font.c
Examining data/elk-3.99.8/lib/xlib/window.c
Examining data/elk-3.99.8/lib/xlib/client.c
Examining data/elk-3.99.8/lib/xlib/event.c
Examining data/elk-3.99.8/lib/xlib/grab.c
Examining data/elk-3.99.8/lib/xlib/display.c
Examining data/elk-3.99.8/lib/xlib/extension.c
Examining data/elk-3.99.8/lib/xlib/pixel.c
Examining data/elk-3.99.8/lib/xlib/property.c
Examining data/elk-3.99.8/lib/xlib/init.c
Examining data/elk-3.99.8/lib/unix/fdescr.c
Examining data/elk-3.99.8/lib/unix/file.c
Examining data/elk-3.99.8/lib/unix/signal.c
Examining data/elk-3.99.8/lib/unix/wait.c
Examining data/elk-3.99.8/lib/unix/unix.h
Examining data/elk-3.99.8/lib/unix/process.c
Examining data/elk-3.99.8/lib/unix/error.c
Examining data/elk-3.99.8/lib/unix/temp.c
Examining data/elk-3.99.8/lib/unix/misc.c
Examining data/elk-3.99.8/lib/unix/passwd.c
Examining data/elk-3.99.8/lib/unix/lock.c
Examining data/elk-3.99.8/lib/unix/time.c
Examining data/elk-3.99.8/lib/unix/unix.c
Examining data/elk-3.99.8/lib/unix/system.c
Examining data/elk-3.99.8/lib/xwidgets/action.c
Examining data/elk-3.99.8/lib/xwidgets/context.c
Examining data/elk-3.99.8/lib/xwidgets/function.c
Examining data/elk-3.99.8/lib/xwidgets/xt.h
Examining data/elk-3.99.8/lib/xwidgets/class.c
Examining data/elk-3.99.8/lib/xwidgets/motif/arrow-button.c
Examining data/elk-3.99.8/lib/xwidgets/motif/main-window.c
Examining data/elk-3.99.8/lib/xwidgets/motif/drawing-area.c
Examining data/elk-3.99.8/lib/xwidgets/motif/scroll-bar.c
Examining data/elk-3.99.8/lib/xwidgets/motif/scale.c
Examining data/elk-3.99.8/lib/xwidgets/motif/label.c
Examining data/elk-3.99.8/lib/xwidgets/motif/drawn-button.c
Examining data/elk-3.99.8/lib/xwidgets/motif/push-button.c
Examining data/elk-3.99.8/lib/xwidgets/motif/cascade-btn.c
Examining data/elk-3.99.8/lib/xwidgets/motif/separator.c
Examining data/elk-3.99.8/lib/xwidgets/motif/scrolled-win.c
Examining data/elk-3.99.8/lib/xwidgets/motif/paned-window.c
Examining data/elk-3.99.8/lib/xwidgets/motif/frame.c
Examining data/elk-3.99.8/lib/xwidgets/motif/text.c
Examining data/elk-3.99.8/lib/xwidgets/motif/message-box.c
Examining data/elk-3.99.8/lib/xwidgets/motif/shell.c
Examining data/elk-3.99.8/lib/xwidgets/motif/list.c
Examining data/elk-3.99.8/lib/xwidgets/motif/bulletin-brd.c
Examining data/elk-3.99.8/lib/xwidgets/motif/row-column.c
Examining data/elk-3.99.8/lib/xwidgets/motif/toggle-btn.c
Examining data/elk-3.99.8/lib/xwidgets/motif/form.c
Examining data/elk-3.99.8/lib/xwidgets/motif/file-selectn.c
Examining data/elk-3.99.8/lib/xwidgets/motif/selectn-box.c
Examining data/elk-3.99.8/lib/xwidgets/motif/command.c
Examining data/elk-3.99.8/lib/xwidgets/motif/support.c
Examining data/elk-3.99.8/lib/xwidgets/motif/init.c
Examining data/elk-3.99.8/lib/xwidgets/widget.c
Examining data/elk-3.99.8/lib/xwidgets/identifier.c
Examining data/elk-3.99.8/lib/xwidgets/accelerator.c
Examining data/elk-3.99.8/lib/xwidgets/error.c
Examining data/elk-3.99.8/lib/xwidgets/objects.c
Examining data/elk-3.99.8/lib/xwidgets/resource.c
Examining data/elk-3.99.8/lib/xwidgets/converter.c
Examining data/elk-3.99.8/lib/xwidgets/classname.c
Examining data/elk-3.99.8/lib/xwidgets/popup.c
Examining data/elk-3.99.8/lib/xwidgets/translation.c
Examining data/elk-3.99.8/lib/xwidgets/callback.c
Examining data/elk-3.99.8/lib/xwidgets/init.c
Examining data/elk-3.99.8/lib/xwidgets/xaw/dialog.c
Examining data/elk-3.99.8/lib/xwidgets/xaw/repeater.c
Examining data/elk-3.99.8/lib/xwidgets/xaw/paned.c
Examining data/elk-3.99.8/lib/xwidgets/xaw/sme.c
Examining data/elk-3.99.8/lib/xwidgets/xaw/label.c
Examining data/elk-3.99.8/lib/xwidgets/xaw/stripchart.c
Examining data/elk-3.99.8/lib/xwidgets/xaw/tree.c
Examining data/elk-3.99.8/lib/xwidgets/xaw/scrollbar.c
Examining data/elk-3.99.8/lib/xwidgets/xaw/toggle.c
Examining data/elk-3.99.8/lib/xwidgets/xaw/shell.c
Examining data/elk-3.99.8/lib/xwidgets/xaw/menubutton.c
Examining data/elk-3.99.8/lib/xwidgets/xaw/simplemenu.c
Examining data/elk-3.99.8/lib/xwidgets/xaw/list.c
Examining data/elk-3.99.8/lib/xwidgets/xaw/smebsb.c
Examining data/elk-3.99.8/lib/xwidgets/xaw/box.c
Examining data/elk-3.99.8/lib/xwidgets/xaw/smeline.c
Examining data/elk-3.99.8/lib/xwidgets/xaw/panner.c
Examining data/elk-3.99.8/lib/xwidgets/xaw/ascii.c
Examining data/elk-3.99.8/lib/xwidgets/xaw/form.c
Examining data/elk-3.99.8/lib/xwidgets/xaw/command.c
Examining data/elk-3.99.8/lib/xwidgets/xaw/grip.c
Examining data/elk-3.99.8/lib/xwidgets/xaw/porthole.c
Examining data/elk-3.99.8/lib/xwidgets/xaw/viewport.c
Examining data/elk-3.99.8/lib/xwidgets/xaw/init.c

FINAL RESULTS:

data/elk-3.99.8/lib/unix/file.c:77:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    if (chmod(Get_Strsym(fn), Get_Integer(mode)) == -1)
data/elk-3.99.8/lib/unix/file.c:84:9:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
    if (chown(Get_Strsym(fn), Get_Integer(uid), Get_Integer(gid)) == -1)
data/elk-3.99.8/lib/unix/file.c:242:16:  [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.
    if ((len = readlink(Get_Strsym(fn), buf, len)) == -1) {
data/elk-3.99.8/src/dump.c:130:15:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        (void)chmod (fn, (st.st_mode & 0777) | (0111 & ~omask));
data/elk-3.99.8/lib/misc/elk-eval.c:70:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(buf, p);
data/elk-3.99.8/lib/unix/file.c:63:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(Get_Strsym(fn), (int)Symbols_To_Bits(mode, 1, Access_Syms))
data/elk-3.99.8/lib/unix/misc.c:38: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.
    extern char *getpass();
data/elk-3.99.8/lib/unix/misc.c:41: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.
    ret = getpass(Get_String(prompt));
data/elk-3.99.8/lib/unix/process.c:127:19:  [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.
            (void)execvp(fnp, argp);
data/elk-3.99.8/lib/unix/process.c:129:19:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            (void)execv(fnp, argp);
data/elk-3.99.8/lib/unix/process.c:165: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.
    extern char *getlogin();
data/elk-3.99.8/lib/unix/process.c:169: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.
    s = getlogin();
data/elk-3.99.8/lib/unix/process.c:228:15:  [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.
    if ((fp = popen(Get_String(cmd), flags == P_INPUT ? "r" : "w")) == 0) {
data/elk-3.99.8/lib/unix/process.c:303:9:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        execl("/bin/sh", "sh", "-c", s, (char *)0);
data/elk-3.99.8/lib/unix/process.c:352:15:  [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.
    if ((fp = popen("pwd", "r")) == 0) {
data/elk-3.99.8/lib/unix/system.c:226:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(systype, SYSTEMTYPE);
data/elk-3.99.8/lib/unix/temp.c:59:18:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
    extern char *mktemp();
data/elk-3.99.8/lib/unix/temp.c:83:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "%s/%sXXXXXX", dir, pref);
data/elk-3.99.8/lib/unix/temp.c:84:12:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
    name = mktemp(buf);
data/elk-3.99.8/lib/unix/temp.c:87:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "%s/%sa%d", dir, pref, getpid());
data/elk-3.99.8/lib/xlib/type.c:812:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (buf, "%s-slots", name);
data/elk-3.99.8/lib/xwidgets/class.c:201:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                        sprintf (s1, "callback:%s-%s", p->name, name);
data/elk-3.99.8/lib/xwidgets/class.c:204:29:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                            sprintf(s2, "callback:%s", name);
data/elk-3.99.8/lib/xwidgets/class.c:207:33:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                                sprintf (msg,
data/elk-3.99.8/lib/xwidgets/resource.c:170:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (key, "%s-%s", Class_Name (class), name);
data/elk-3.99.8/lib/xwidgets/resource.c:231:29:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                            sprintf (msg,
data/elk-3.99.8/lib/xwidgets/resource.c:239:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf (msg, "%s: can't convert %s ~s to %s", name,
data/elk-3.99.8/lib/xwidgets/resource.c:332:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (key, "%s-%s", Class_Name (XtClass (w2)), argl[i].name);
data/elk-3.99.8/lib/xwidgets/resource.c:412:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf (s, "%s: no converter for %s", argl[i].name,
data/elk-3.99.8/src/dump-ecoff.c:50:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (err, "running a.out doesn't have %s section", (name));\
data/elk-3.99.8/src/dump-elf.c:50:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (err, "running a.out doesn't have %s section", (name));\
data/elk-3.99.8/src/dump-hp9k.c:186:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (Z, "Saving shared lib %s\n", p->filename); W;
data/elk-3.99.8/src/dump-hp9k.c:224:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (Z, "Restoring shared lib %s\n", sp->desc.filename); W;
data/elk-3.99.8/src/error.c:89:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf (stderr, fmt, args);
data/elk-3.99.8/src/heap-gen.c:604:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(buf, "[Heap expansion failed (%s)]~%%", reason);
data/elk-3.99.8/src/heap-gen.c:742:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buf, "[Heap expanded to %dK (%s)]~%%", a, reason);
data/elk-3.99.8/src/heap-gen.c:1025:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (buf, "Visit: object not in prev space at %p ('%s') %d %d",
data/elk-3.99.8/src/io.c:193:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (r, "%s" SEPARATOR_STRING "%s", dir, p);
data/elk-3.99.8/src/io.c:240:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (name, "%s" SEPARATOR_STRING "%s", dir, p);
data/elk-3.99.8/src/libelk.c:200:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf (newpath, "%s\\lib", path);
data/elk-3.99.8/src/libelk.c:202:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf (newpath, "%s\\scm", path);
data/elk-3.99.8/src/libelk.c:316:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (initfile, "%s" SEPARATOR_STRING "%s", Scm_Dir, INITFILE);
data/elk-3.99.8/src/libelk.c:416:16:  [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 (fn, X_OK) != -1;
data/elk-3.99.8/src/libelk.c:443:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy (p, fn);
data/elk-3.99.8/src/loadlib.c:240:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (lib, "%s" SEPARATOR_STRING "%s", path, dlname);
data/elk-3.99.8/src/print.c:126:6:  [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.
void vfprintf (register FILE *f, register char *fmt, va_list ap) {
data/elk-3.99.8/src/print.c:130:6:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
void vsprintf (register char *s, register char *fmt, va_list ap) {
data/elk-3.99.8/src/print.c:147:9:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
        vsprintf (buf, fmt, args);
data/elk-3.99.8/src/print.c:150:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vfprintf (PORT(port)->file, fmt, args);
data/elk-3.99.8/src/print.c:613:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf (buf, "%c%s", isupper (*s) ? tolower (*s) :
data/elk-3.99.8/src/read.c:731:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (buf, "[string-port]: %u: %s", PORT(port)->lno, msg);
data/elk-3.99.8/src/read.c:734:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (buf, "~s: %u: %s", PORT(port)->lno, msg);
data/elk-3.99.8/src/stab-coff.c:63: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 (sp->name, p);
data/elk-3.99.8/src/stab-ecoff.c:115:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy (sp->name, p);
data/elk-3.99.8/src/stab-elf.c:148: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 (sp->name, name);
data/elk-3.99.8/src/stab-vanilla.c:104: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 (sp->name, buffer + start);
data/elk-3.99.8/src/stab.c:139:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy (fp->name, p);
data/elk-3.99.8/src/type.c:64:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (buf, "wrong argument type %s (expected %s)",
data/elk-3.99.8/lib/unix/process.c:158:18:  [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/elk-3.99.8/lib/unix/process.c:161: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.
    return (s = getenv(Get_String(e))) ? Make_String(s, strlen(s)) : False;
data/elk-3.99.8/lib/unix/process.c:346:9:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
    if (getwd(buf) == 0) {
data/elk-3.99.8/lib/unix/temp.c:52:18:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
    extern char *tmpnam();
data/elk-3.99.8/lib/unix/temp.c:55:18:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
    extern char *tempnam();
data/elk-3.99.8/lib/unix/temp.c:72:12:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
    name = tmpnam((char *)0);
data/elk-3.99.8/lib/unix/temp.c:76:12:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
    name = tempnam(dir, pref);
data/elk-3.99.8/src/io.c:52: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/elk-3.99.8/src/io.c:164: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.
        if ((*dirp = getenv ("HOME")) == 0)
data/elk-3.99.8/src/libelk.c:93: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/elk-3.99.8/src/libelk.c:304: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 (loadpath || (loadpath = getenv (LOADPATH_ENV)))
data/elk-3.99.8/src/libelk.c:420:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *path, *dir, *getenv();
data/elk-3.99.8/src/libelk.c:432: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.
    if ((path = getenv ("PATH")) == 0)
data/elk-3.99.8/src/loadlib.c:109:14:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    handle = LoadLibrary (obj);
data/elk-3.99.8/src/math.c:49:5:  [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.
    srandom (getpid ());
data/elk-3.99.8/src/math.c:51:5:  [3] (random) srand:
  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.
    srand (getpid ());
data/elk-3.99.8/src/math.c:1157:23:  [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.
    return Make_Long (random ());
data/elk-3.99.8/src/math.c:1165:5:  [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.
    srandom (Get_Unsigned (x));
data/elk-3.99.8/src/math.c:1167:5:  [3] (random) srand:
  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.
    srand (Get_Unsigned (x));
data/elk-3.99.8/include/cstring.h:39: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 ((_to), STRING(_from)->data, _len);\
data/elk-3.99.8/include/cstring.h:51: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 ((_to), STRING(_from)->data, _len);\
data/elk-3.99.8/include/object.h:176: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 data[1];
data/elk-3.99.8/include/object.h:248: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 stack[1];    /* must be word aligned */
data/elk-3.99.8/lib/misc/bitstring.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.
    unsigned char data[1];  /* data[0] == LSB */
data/elk-3.99.8/lib/misc/bitstring.c:74:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[9];
data/elk-3.99.8/lib/misc/bitstring.c:157: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[50];
data/elk-3.99.8/lib/misc/bitstring.c:162: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(buf, "length %u too small for integer %lu", len, ul);
data/elk-3.99.8/lib/misc/bitstring.c:176: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[50];
data/elk-3.99.8/lib/misc/bitstring.c:184: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(buf, "length %u too small for integer ~s", len);
data/elk-3.99.8/lib/misc/bitstring.c:531: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[1024], *p = buf;
data/elk-3.99.8/lib/misc/elk-eval.c:57:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[1024];
data/elk-3.99.8/lib/misc/regexp.c:137: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 msg[256];
data/elk-3.99.8/lib/misc/regexp.c:170:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *str, msg[256];
data/elk-3.99.8/lib/unix/fdescr.c:142: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 *m, buf[32];
data/elk-3.99.8/lib/unix/fdescr.c:161: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(buf, "unix-fildescriptor[%d]", n);
data/elk-3.99.8/lib/unix/fdescr.c:227: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).
    if ((n = open(Get_Strsym(fn), mode, argc == 3 ? Get_Integer(argv[2]) : 0))
data/elk-3.99.8/lib/unix/process.c:59:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char c[2];
data/elk-3.99.8/lib/unix/process.c:113: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(envp[i], "%.*s=%.*s", s1->size, s1->data,
data/elk-3.99.8/lib/unix/process.c:294:19:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
    switch (pid = vfork()) {
data/elk-3.99.8/lib/unix/system.c:177: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 hostname[MAXHOSTNAMELEN];
data/elk-3.99.8/lib/unix/system.c:191:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char systype[64], *q;
data/elk-3.99.8/lib/unix/temp.c:57: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[1024];
data/elk-3.99.8/lib/xlib/key.c:131: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[1024];
data/elk-3.99.8/lib/xlib/property.c:143: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 (STRING(s)->data, (char *)data, (int)nitems);
data/elk-3.99.8/lib/xlib/type.c:799: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[128];
data/elk-3.99.8/lib/xlib/wm.c:152:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char map[256];
data/elk-3.99.8/lib/xwidgets/class.c:194: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.
                        char s1[128], s2[128], msg[256];
data/elk-3.99.8/lib/xwidgets/context.c:160:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (p[i], sp->data, sp->size);
data/elk-3.99.8/lib/xwidgets/function.c:48: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 ((char *)VECTOR(v)->data, (char *)VECTOR(Functions)->data,
data/elk-3.99.8/lib/xwidgets/resource.c:119: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 ((char *)*rp, (char *)r, nr * sizeof (XtResource));
data/elk-3.99.8/lib/xwidgets/resource.c:122: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 ((char *)(*rp + nr), (char *)sr, snr * sizeof (XtResource));
data/elk-3.99.8/lib/xwidgets/resource.c:124: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 ((char *)(*rp + nr+snr), (char *)cr, cnr * sizeof (XtResource));
data/elk-3.99.8/lib/xwidgets/resource.c:137: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 key[128];
data/elk-3.99.8/lib/xwidgets/resource.c:195: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 ((char *)&to[i].value, (char *)&f, sizeof f);
data/elk-3.99.8/lib/xwidgets/resource.c:213: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 msg[128];
data/elk-3.99.8/lib/xwidgets/resource.c:287: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 key[128];
data/elk-3.99.8/lib/xwidgets/resource.c:410:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char s[128];
data/elk-3.99.8/src/bignum.c:71: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 (BIGNUM(big)->data, BIGNUM(x)->data, size * sizeof (gran_t));
data/elk-3.99.8/src/bignum.c:83: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 (BIGNUM(big)->data, s->data, size * sizeof (gran_t));
data/elk-3.99.8/src/bignum.c:216:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (big, POINTER(x), size);
data/elk-3.99.8/src/bignum.c:256: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 (big, POINTER(x), size);
data/elk-3.99.8/src/bignum.c:754: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 (dend, POINTER(x), dendsize);
data/elk-3.99.8/src/bignum.c:763: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 (dor, POINTER(y), dorsize);
data/elk-3.99.8/src/cont.c:123: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.
    volatile char buf[100];
data/elk-3.99.8/src/cont.c:222: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 (to, p, cp->size);
data/elk-3.99.8/src/cstring.c:45: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 *heapstr[NUMSTRBUFS];
data/elk-3.99.8/src/cstring.c:68: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 (*pp, STRING(str)->data, --len);
data/elk-3.99.8/src/dump-ecoff.c:43: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 err[100];\
data/elk-3.99.8/src/dump-ecoff.c:66: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[4096];
data/elk-3.99.8/src/dump-ecoff.c:173:20:  [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 ((afd = open (Loader_Input, O_RDONLY)) == -1) {
data/elk-3.99.8/src/dump-elf.c:44: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 err[100];\
data/elk-3.99.8/src/dump-elf.c:185: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 ((void *)nproghdr, (void *)oproghdr,
data/elk-3.99.8/src/dump-elf.c:228: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 ((void*)nsecthdr, (void *)osecthdr,
data/elk-3.99.8/src/dump-elf.c:241: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 ((void *)nsecthdr, (void *)osecthdr,
data/elk-3.99.8/src/dump-elf.c:245: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 ((void *)nbssp, (void *)obssp,
data/elk-3.99.8/src/dump-elf.c:285: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 ((void *)(naddr + sp->sh_offset), from, sp->sh_size);
data/elk-3.99.8/src/dump-hp9k.c:50: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[4096];\
data/elk-3.99.8/src/dump-hp9k.c:172: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.
   static char Z[1024];
data/elk-3.99.8/src/dump-hp9k.c:193: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 (Z, "   (new library)\n"); W;
data/elk-3.99.8/src/dump-hp9k.c:205: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 (Z, "   copy data seg from %x to %x len %d\n",
data/elk-3.99.8/src/dump-hp9k.c:208:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (sp->saved, sp->oldaddr, sp->desc.dend - sp->desc.dstart);
data/elk-3.99.8/src/dump-hp9k.c:233: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 (Z, "   (re-loading)\n"); W;
data/elk-3.99.8/src/dump-hp9k.c:252:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf (Z, "mmap failed[%d]\n", errno); W;
data/elk-3.99.8/src/dump-hp9k.c:257: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 (Z, "   copy data seg from %x to %x len %d\n", sp->saved,
data/elk-3.99.8/src/dump-hp9k.c:260: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 (sp->oldaddr, sp->saved, sp->desc.dend - sp->desc.dstart);
data/elk-3.99.8/src/dump-vanilla.c:68: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[BUFSIZ];
data/elk-3.99.8/src/dump-vanilla.c:164:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((afd = open (afn, O_RDONLY|O_BINARY)) == -1) {
data/elk-3.99.8/src/dump.c:91:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((ofd = open (ofn, O_RDWR|O_CREAT|O_TRUNC|O_BINARY, 0666)) == -1) {\
data/elk-3.99.8/src/dump.c:95:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((afd = open (A_Out_Name, O_RDONLY|O_BINARY)) == -1) {\
data/elk-3.99.8/src/feature.c:85: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 (STRING(s)->data, STRING(str)->data, len);
data/elk-3.99.8/src/feature.c:86: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 (STRING(s)->data+len, ".scm", 4);
data/elk-3.99.8/src/heap-gen.c:603:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[243];
data/elk-3.99.8/src/heap-gen.c:740: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 buf[243];
data/elk-3.99.8/src/heap-gen.c:1024: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 buf[100];
data/elk-3.99.8/src/heap-gen.c:1110: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 (forward_freep, obj_ptr, (objwords-1)*sizeof(Object));
data/elk-3.99.8/src/heap-sc.c:151:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (To, tag, size);
data/elk-3.99.8/src/heap-sc.c:168: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 (To, tag, size);
data/elk-3.99.8/src/heap-sc.c:173: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 (To, tag, size);
data/elk-3.99.8/src/heap-sc.c:186:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (To, tag, size);
data/elk-3.99.8/src/heap-sc.c:213:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (To, tag, size);
data/elk-3.99.8/src/io.c:254:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((f = fopen (name, p)) == NULL) {
data/elk-3.99.8/src/io.c:294:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (buf, STRING(pref)->data, plen);
data/elk-3.99.8/src/io.c:297:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (buf+plen, fn, len);
data/elk-3.99.8/src/io.c:312:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (buf, fn, len);
data/elk-3.99.8/src/libelk.c:169: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 unused[INITIAL_STK_OFFSET];
data/elk-3.99.8/src/libelk.c:195: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 path[MAX_PATH], *exe;
data/elk-3.99.8/src/libelk.c:198:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char newpath[MAX_PATH+5];
data/elk-3.99.8/src/libelk.c:266:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            if ((heap = atoi (av[First_Arg])) <= 0) {
data/elk-3.99.8/src/libelk.c:421:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[1025];  /* Can't use Path_Max or Safe_Malloc here */
data/elk-3.99.8/src/loadlib.c:219: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 buffer [BUFSIZ], *dlname, *eol, *path;
data/elk-3.99.8/src/math.c:84:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[32];
data/elk-3.99.8/src/math.c:108:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[64];
data/elk-3.99.8/src/math.c:111: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 (buf, "%.31g", FLONUM(x)->val);
data/elk-3.99.8/src/print.c:89: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[1];
data/elk-3.99.8/src/print.c:118: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 (STRING(new)->data, STRING(p->name)->data, p->ptr);
data/elk-3.99.8/src/print.c:121: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 (STRING(p->name)->data + p->ptr, buf, len);
data/elk-3.99.8/src/print.c:143: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[1024];
data/elk-3.99.8/src/print.c:246: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 (STRING(str)->data, STRING(p->name)->data, p->ptr);
data/elk-3.99.8/src/print.c:597: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[256];
data/elk-3.99.8/src/print.c:603:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (p, fmt, len);
data/elk-3.99.8/src/proc.c:115:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static char buf[64];
data/elk-3.99.8/src/proc.c:116: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 (buf, "#<compound %lu>", POINTER(x));
data/elk-3.99.8/src/proc.c:129:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static char buf[64];
data/elk-3.99.8/src/proc.c:130: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 (buf, "#<macro %lu>", POINTER(x));
data/elk-3.99.8/src/read.c:412:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[64];
data/elk-3.99.8/src/read.c:413:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(buf, "expression starts with '%c' but ends "
data/elk-3.99.8/src/read.c:497: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[32];
data/elk-3.99.8/src/read.c:505: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 (buf, "no reader for syntax #%c", c);
data/elk-3.99.8/src/read.c:574:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[10], *p = buf;
data/elk-3.99.8/src/read.c:728: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[100];
data/elk-3.99.8/src/stab-bsd.c:97:15:  [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 ((fd = open (name, O_RDONLY|O_BINARY)) == -1) {
data/elk-3.99.8/src/stab-convex.c:51: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).
    if ((f = open (name, O_RDONLY)) == -1) {
data/elk-3.99.8/src/stab-convex.c:66: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 (tab->strings, base + fhp->h_strptr, (unsigned int)fhp->h_strsiz);
data/elk-3.99.8/src/stab-ecoff.c:131:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen (name, "r")) == NULL)
data/elk-3.99.8/src/stab-elf.c:165: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).
    if ((f = open (name, O_RDONLY)) == -1)
data/elk-3.99.8/src/stab-hp9k300.c:119:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((f = fopen (name, "r")) == NULL)
data/elk-3.99.8/src/stab-hp9k800.c:78:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((f = fopen (name, "r")) == NULL)
data/elk-3.99.8/src/stab-vanilla.c:46:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buffer[BUFSIZ];
data/elk-3.99.8/src/stab-vanilla.c:124:10:  [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 (name, O_RDONLY|O_BINARY);
data/elk-3.99.8/src/stab-vanilla.c:126:10:  [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 (name, O_RDONLY);
data/elk-3.99.8/src/stab.c:90: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 (vec, main, sizeof vec);
data/elk-3.99.8/src/stkmem.c:78:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (s, p+1, p->len);
data/elk-3.99.8/src/stkmem.c:93: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+1, s, p->len);
data/elk-3.99.8/src/stkmem.c:107: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 (&(VECTOR(vec)->data[i]), p->gcobj, n * sizeof (Object));
data/elk-3.99.8/src/stkmem.c:118: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->gcobj, &(VECTOR(vec)->data[i]), n * sizeof (Object));
data/elk-3.99.8/src/string.c:40: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 Char_Map[256];
data/elk-3.99.8/src/string.c:58: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 (STRING(str)->data, s, len);
data/elk-3.99.8/src/string.c:121: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 (b, p->data, p->size);
data/elk-3.99.8/src/string.c:180: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 (&STRING(str)->data[len], STRING(s)->data, STRING(s)->size);
data/elk-3.99.8/src/symbol.c:117: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[128];
data/elk-3.99.8/src/type.c:60: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[100];
data/elk-3.99.8/src/vector.c:166:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (POINTER(new), POINTER(vec),
data/elk-3.99.8/include/misc.h:70:36:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    c = str ? String_Getc (port) : getc (f);\
data/elk-3.99.8/include/object.h:304:11:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    int (*equal) (Object, Object);
data/elk-3.99.8/lib/misc/elk-eval.c:59: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).
    str = Make_String(expr, strlen(expr));
data/elk-3.99.8/lib/misc/elk-eval.c:68:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(p) > sizeof buf - 1)
data/elk-3.99.8/lib/misc/gdbm.c:273: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).
    return Make_String (gdbm_error_message, strlen (gdbm_error_message));
data/elk-3.99.8/lib/misc/regexp.c:153: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).
        Primitive_Error("~a", Make_String(msg, strlen(msg)));
data/elk-3.99.8/lib/misc/regexp.c:206: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).
    Primitive_Error("~a", Make_String(msg, strlen(msg)));
data/elk-3.99.8/lib/unix/fdescr.c:162: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).
    ret = Make_Port(flags, fp, Make_String(buf, strlen(buf)));
data/elk-3.99.8/lib/unix/fdescr.c:265:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        len = read(fd, sp->data, len);
data/elk-3.99.8/lib/unix/fdescr.c:292: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).
    return ret ? Make_String(ret, strlen(ret)) : False;
data/elk-3.99.8/lib/unix/file.c:127: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).
        x = Make_String(dp->d_name, strlen(dp->d_name));
data/elk-3.99.8/lib/unix/misc.c:45: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).
    return Make_String(ret, strlen(ret));
data/elk-3.99.8/lib/unix/passwd.c:71: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).
    x = Make_String(p->pw_name, strlen(p->pw_name));
data/elk-3.99.8/lib/unix/passwd.c:73: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).
    x = Make_String(p->pw_passwd, strlen(p->pw_passwd));
data/elk-3.99.8/lib/unix/passwd.c:79: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).
    x = Make_String(p->pw_gecos, strlen(p->pw_gecos));
data/elk-3.99.8/lib/unix/passwd.c:81: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).
    x = Make_String(p->pw_dir, strlen(p->pw_dir));
data/elk-3.99.8/lib/unix/passwd.c:83: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).
    x = Make_String(p->pw_shell, strlen(p->pw_shell));
data/elk-3.99.8/lib/unix/passwd.c:139: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).
    x = Make_String(p->gr_name, strlen(p->gr_name));
data/elk-3.99.8/lib/unix/passwd.c:141: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).
    x = Make_String(p->gr_passwd, strlen(p->gr_passwd));
data/elk-3.99.8/lib/unix/process.c:70: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).
        str = Make_String(p, strlen(p));
data/elk-3.99.8/lib/unix/process.c:72: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).
        str = Make_String(*ep, strlen(*ep));
data/elk-3.99.8/lib/unix/process.c:161:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return (s = getenv(Get_String(e))) ? Make_String(s, strlen(s)) : False;
data/elk-3.99.8/lib/unix/process.c:173: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 Make_String(s, strlen(s));
data/elk-3.99.8/lib/unix/process.c:322:25:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    return Make_Integer(umask(Get_Integer(mask)));
data/elk-3.99.8/lib/unix/process.c:365: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).
    ret = Make_String(buf, strlen(buf));
data/elk-3.99.8/lib/unix/system.c:225: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).
    x = Make_String(p, strlen(p)); VECTOR(ret)->data[0] = x;
data/elk-3.99.8/lib/unix/system.c:230: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).
    x = Make_String(systype, strlen(systype)); VECTOR(ret)->data[1] = x;
data/elk-3.99.8/lib/unix/system.c:231: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).
    x = Make_String(p, strlen(p)); VECTOR(ret)->data[2] = x;
data/elk-3.99.8/lib/unix/temp.c:80:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(dir) + strlen(pref) > 1000)
data/elk-3.99.8/lib/unix/temp.c:80: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(dir) + strlen(pref) > 1000)
data/elk-3.99.8/lib/unix/temp.c:88: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).
    p = buf+strlen(dir)+strlen(pref)+1;
data/elk-3.99.8/lib/unix/temp.c:88: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).
    p = buf+strlen(dir)+strlen(pref)+1;
data/elk-3.99.8/lib/unix/temp.c:114: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).
    ret = Make_String(name, strlen(name));
data/elk-3.99.8/lib/unix/time.c:167: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).
    return Make_String(ret, strlen(ret));
data/elk-3.99.8/lib/xlib/client.c:78: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).
        s = Make_String (av[i], strlen (av[i]));
data/elk-3.99.8/lib/xlib/client.c:116: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).
        x = Make_String (s[i], strlen (s[i]));
data/elk-3.99.8/lib/xlib/client.c:213:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        x = Make_String (c.res_name, strlen (c.res_name));
data/elk-3.99.8/lib/xlib/client.c:218: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).
        x = Make_String (c.res_class, strlen (c.res_class));
data/elk-3.99.8/lib/xlib/display.c:77: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).
            Make_String (s, strlen (s)));
data/elk-3.99.8/lib/xlib/display.c:156: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).
    return Make_String (s, strlen (s));
data/elk-3.99.8/lib/xlib/display.c:166: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).
    name = Make_String (s, strlen (s));
data/elk-3.99.8/lib/xlib/extension.c:51: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).
        e = Make_String (p[i], strlen (p[i]));
data/elk-3.99.8/lib/xlib/font.c:177: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).
        f = Make_String (ret[i], strlen (ret[i]));
data/elk-3.99.8/lib/xlib/font.c:285: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).
        x = Make_String (ret[i], strlen (ret[i]));
data/elk-3.99.8/lib/xlib/key.c:104: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).
    return s ? Make_String (s, strlen (s)) : False;
data/elk-3.99.8/lib/xlib/property.c:81: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).
    return Make_String (s, strlen (s));
data/elk-3.99.8/lib/xlib/util.c:42: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).
        return Make_String (ret, strlen (ret));
data/elk-3.99.8/lib/xlib/util.c:51:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return ret ? Make_String (ret, strlen (ret)) : False;
data/elk-3.99.8/lib/xwidgets/action.c:62: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).
            tmp = Make_String (argv[i], strlen (argv[i]));
data/elk-3.99.8/lib/xwidgets/classname.c:38: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).
        strlen (class->core_class.class_name));
data/elk-3.99.8/lib/xwidgets/error.c:38: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).
    args = Cons (Make_String (msg, strlen (msg)), Null);
data/elk-3.99.8/lib/xwidgets/error.c:42: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).
    Format (Curr_Output_Port, msg, strlen (msg), 0, (Object *)0);
data/elk-3.99.8/lib/xwidgets/motif/list.c:15: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).
        Car (tail) = Make_String (text, strlen (text));
data/elk-3.99.8/lib/xwidgets/motif/list.c:35: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).
    ret = s = Make_String (text, strlen (text));
data/elk-3.99.8/lib/xwidgets/motif/support.c:72: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).
    ret = s = Make_String (text, strlen (text));
data/elk-3.99.8/lib/xwidgets/motif/support.c:348: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).
    return Make_String (text, strlen (text));
data/elk-3.99.8/lib/xwidgets/resource.c:219: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).
                    src.size = strlen (stmp);
data/elk-3.99.8/lib/xwidgets/resource.c:345: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).
            o = Make_String (s, strlen (s));
data/elk-3.99.8/lib/xwidgets/widget.c:164: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).
    return Make_String (s, strlen (s));
data/elk-3.99.8/lib/xwidgets/xaw/ascii.c:27: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).
    return Make_String (s, strlen (s));
data/elk-3.99.8/lib/xwidgets/xaw/grip.c:19: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).
        s = Make_String (p->params[i], strlen (p->params[i]));
data/elk-3.99.8/lib/xwidgets/xaw/list.c:24: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 Cons (Make_String (p->string, strlen (p->string)),
data/elk-3.99.8/lib/xwidgets/xaw/list.c:58: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 Cons (Make_String (p->string, strlen (p->string)),
data/elk-3.99.8/src/bignum.c:91: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).
    register int size = (strlen (buf) + 4) / 4;
data/elk-3.99.8/src/bignum.c:233: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).
    Format (port, p, strlen (p), 0, (Object *)0);
data/elk-3.99.8/src/bignum.c:285: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).
    ret = Make_String (p, strlen (p));
data/elk-3.99.8/src/bool.c:144:27:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        return (Types[t1].equal)(x1, x2);
data/elk-3.99.8/src/dump-ecoff.c:77:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read (afd, (char *)&fhdr, sizeof (fhdr)) != sizeof (fhdr) ||
data/elk-3.99.8/src/dump-ecoff.c:78:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            read (afd, (char *)&ahdr, sizeof (ahdr)) != sizeof (ahdr)) {
data/elk-3.99.8/src/dump-ecoff.c:86:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read (afd, (char *)sect, fhdr.f_nscns * sizeof (sect[0])) !=
data/elk-3.99.8/src/dump-ecoff.c:178:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (read (afd, (char *)&fhdr, sizeof (fhdr)) != sizeof (fhdr)) {
data/elk-3.99.8/src/dump-ecoff.c:191:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read (afd, (char *)&shdr, sizeof (shdr)) != sizeof (shdr)) {
data/elk-3.99.8/src/dump-ecoff.c:214:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((n = read (afd, buf, 4096)) > 0)
data/elk-3.99.8/src/dump-hp9k.c:54:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ((n = read (from, buf, 4096)) == -1) {\
data/elk-3.99.8/src/dump-hp9k.c:78:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read (afd, (char *)&hdr, sizeof (hdr)) != sizeof (hdr) ||
data/elk-3.99.8/src/dump-hp9k.c:80:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            read (afd, (char *)&auxhdr, sizeof (auxhdr)) != sizeof (auxhdr)) {
data/elk-3.99.8/src/dump-hp9k.c:173: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).
#  define W write(1,Z,strlen(Z))
data/elk-3.99.8/src/dump-vanilla.c:72:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read (afd, (char *)&hdr, sizeof (hdr)) != sizeof (hdr)
data/elk-3.99.8/src/dump-vanilla.c:84:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (read (afd, (char *)&ohdr, sizeof (ohdr)) != sizeof (ohdr))
data/elk-3.99.8/src/dump-vanilla.c:88:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (read (afd, (char *)&scn, sizeof (scn)) != sizeof (scn))
data/elk-3.99.8/src/dump-vanilla.c:168:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read (afd, (char *)&shdr, sizeof (shdr)) != sizeof (shdr)
data/elk-3.99.8/src/dump-vanilla.c:232:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((n = read (afd, buf, BUFSIZ)) > 0) {
data/elk-3.99.8/src/dump.c:127:21:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        int omask = umask (0);
data/elk-3.99.8/src/dump.c:128:15:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        (void)umask (omask);
data/elk-3.99.8/src/heap-gen.c:606: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(buf), 0, (Object *)0);
data/elk-3.99.8/src/heap-gen.c:743: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).
        Format (Standard_Output_Port, buf, strlen(buf), 0, (Object *)0);
data/elk-3.99.8/src/io.c:168:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            Primitive_Error ("unknown user: ~a", Make_String (s, strlen (s)));
data/elk-3.99.8/src/io.c:192: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).
        Alloca (r, char*, strlen (dir) + 1 + strlen (p) + 1);
data/elk-3.99.8/src/io.c:192: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).
        Alloca (r, char*, strlen (dir) + 1 + strlen (p) + 1);
data/elk-3.99.8/src/io.c:194: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).
        ret = Make_String (r, strlen (r));
data/elk-3.99.8/src/io.c:239: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).
        Alloca (name, char*, strlen (dir) + 1 + strlen (p) + 1);
data/elk-3.99.8/src/io.c:239: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).
        Alloca (name, char*, strlen (dir) + 1 + strlen (p) + 1);
data/elk-3.99.8/src/io.c:252: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).
    fn = Make_String (name, strlen (name));
data/elk-3.99.8/src/libelk.c:315: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).
    initfile = Safe_Malloc (strlen (Scm_Dir) + 1 + sizeof (INITFILE) + 1);
data/elk-3.99.8/src/libelk.c:320: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).
        file = Make_String (initfile, strlen (initfile));
data/elk-3.99.8/src/libelk.c:337: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).
    file = Make_String (loadfile, strlen (loadfile));
data/elk-3.99.8/src/libelk.c:464: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).
        a = Make_String (Argv[i], strlen (Argv[i]));
data/elk-3.99.8/src/load.c:50: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).
        Cons (Make_String (Scm_Dir, strlen (Scm_Dir)),
data/elk-3.99.8/src/load.c:51: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).
        Cons (Make_String (Lib_Dir, strlen (Lib_Dir)), Null))));
data/elk-3.99.8/src/load.c:76: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).
    register unsigned int len = strlen(suffix);
data/elk-3.99.8/src/load.c:174: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).
    arg = Make_String(name, strlen(name));
data/elk-3.99.8/src/loadlib.c:83: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).
                         Make_String (obj, strlen (obj)));
data/elk-3.99.8/src/loadlib.c:94: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).
                         Make_String (file, strlen (file)),
data/elk-3.99.8/src/loadlib.c:95: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).
                         Make_String (err, strlen (err)));
data/elk-3.99.8/src/loadlib.c:113: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).
                         Make_String (obj, strlen (obj)));
data/elk-3.99.8/src/loadlib.c:126: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).
                         Make_String (obj, strlen (obj)));
data/elk-3.99.8/src/loadlib.c:146: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).
                         Make_String (err, strlen (err)));
data/elk-3.99.8/src/loadlib.c:160: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).
                         Make_String (err, strlen (err)));
data/elk-3.99.8/src/loadlib.c:239: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).
        lib = malloc (strlen (path) + 1 + strlen (dlname) + 1);
data/elk-3.99.8/src/loadlib.c:239: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).
        lib = malloc (strlen (path) + 1 + strlen (dlname) + 1);
data/elk-3.99.8/src/main.c:44:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar ();
data/elk-3.99.8/src/math.c:104: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).
    return Make_String (p, strlen (p));
data/elk-3.99.8/src/math.c:144: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).
        return Make_String (s, strlen (s));
data/elk-3.99.8/src/print.c:148: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).
        Print_String (port, buf, strlen (buf));
data/elk-3.99.8/src/print.c:615: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).
                Print_Object (Make_String (buf, strlen (buf)), port,
data/elk-3.99.8/src/proc.c:105: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).
    return Make_String (PRIM(x)->name, strlen(PRIM(x)->name));
data/elk-3.99.8/src/proc.c:117: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).
        return Make_String (buf, strlen(buf));
data/elk-3.99.8/src/proc.c:131: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).
        return Make_String (buf, strlen(buf));
data/elk-3.99.8/src/stab-bsd.c:101:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read (fd, (char *)&hdr, sizeof hdr) != sizeof hdr) {
data/elk-3.99.8/src/stab-coff.c:62: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).
        sp->name = Safe_Malloc (strlen (p) + 1);
data/elk-3.99.8/src/stab-ecoff.c:114: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).
                sp->name = Safe_Malloc (strlen (p) + 1);
data/elk-3.99.8/src/stab-elf.c:147: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).
            sp->name = Safe_Malloc (strlen (name) + 1);
data/elk-3.99.8/src/stab-vanilla.c:103: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).
            sp->name = Safe_Malloc (strlen (buffer + start) + 1);
data/elk-3.99.8/src/stab.c:121: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).
            if (strncmp (p, pp->name, strlen (pp->name)) == 0)
data/elk-3.99.8/src/stab.c:125: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).
                    && strncmp (p, pp->name, strlen (pp->name)) == 0) {
data/elk-3.99.8/src/stab.c:135: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).
                    && strncmp (p, pp->name, strlen (pp->name)) == 0) {
data/elk-3.99.8/src/stab.c:138: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).
                fp->name = Safe_Malloc (strlen (p) + 1);
data/elk-3.99.8/src/symbol.c:120: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 (str);
data/elk-3.99.8/src/symbol.c:149: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 (str);
data/elk-3.99.8/src/type.c:78:60:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        int (*size)(), int const_size, int (*eqv)(), int (*equal)(),
data/elk-3.99.8/src/type.c:97:16:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    p->equal = equal;

ANALYSIS SUMMARY:

Hits = 341
Lines analyzed = 30892 in approximately 0.94 seconds (32736 lines/second)
Physical Source Lines of Code (SLOC) = 22451
Hits@level = [0]  49 [1] 131 [2] 133 [3]  19 [4]  54 [5]   4
Hits@level+ = [0+] 390 [1+] 341 [2+] 210 [3+]  77 [4+]  58 [5+]   4
Hits/KSLOC@level+ = [0+] 17.3712 [1+] 15.1886 [2+] 9.3537 [3+] 3.42969 [4+] 2.5834 [5+] 0.178166
Dot directories skipped = 2 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.