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/omake-0.10.3/src/clib/lm_compat_win32.h
Examining data/omake-0.10.3/src/clib/lm_heap.h
Examining data/omake-0.10.3/src/clib/fam_pseudo.h
Examining data/omake-0.10.3/src/clib/unixsupport.h
Examining data/omake-0.10.3/src/clib/omake_shell_sys.c
Examining data/omake-0.10.3/src/clib/lm_compat_win32.c
Examining data/omake-0.10.3/src/clib/omake_shell_spawn.c
Examining data/omake-0.10.3/src/clib/lm_heap.c
Examining data/omake-0.10.3/src/clib/readline.c
Examining data/omake-0.10.3/src/clib/lm_ctype.c
Examining data/omake-0.10.3/src/clib/lm_printf.c
Examining data/omake-0.10.3/src/clib/lm_notify.c
Examining data/omake-0.10.3/src/clib/fam_win32.c
Examining data/omake-0.10.3/src/clib/lm_channel.c
Examining data/omake-0.10.3/src/clib/fam_kqueue.c
Examining data/omake-0.10.3/src/clib/lm_terminfo.c
Examining data/omake-0.10.3/src/clib/lm_termsize.c
Examining data/omake-0.10.3/src/clib/fam_inotify.c
Examining data/omake-0.10.3/src/clib/lm_uname_ext.c
Examining data/omake-0.10.3/src/clib/lm_unix_cutil.c
Examining data/omake-0.10.3/src/clib/lm_fs_case_sensitive.c
Examining data/omake-0.10.3/test/parse/C/Test2/test.c
Examining data/omake-0.10.3/test/parse/C/Test3/test.c
Examining data/omake-0.10.3/test/parse/C/Test1/test.c
Examining data/omake-0.10.3/test/parse/C/test2.c
Examining data/omake-0.10.3/test/vmount/Test1/src/foo.c

FINAL RESULTS:

data/omake-0.10.3/src/clib/fam_inotify.c:303: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(dir->name, name);
data/omake-0.10.3/src/clib/fam_kqueue.c:427: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(dir->name, name);
data/omake-0.10.3/src/clib/fam_win32.c:302: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(name, dir->name);
data/omake-0.10.3/src/clib/fam_win32.c:317:25:  [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(event->filename, name);
data/omake-0.10.3/src/clib/fam_win32.c:408:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(dir->name, name);
data/omake-0.10.3/src/clib/lm_notify.c:72:30:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#define ErrFmt(buffer, name) sprintf(buffer, "%s: %s", name, FamErrlist[FAMErrno])
data/omake-0.10.3/src/clib/lm_printf.c:35:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    if(snprintf(buffer, sizeof(buffer), fmt, c) < 0)
data/omake-0.10.3/src/clib/lm_printf.c:38:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    if(sprintf(buffer, fmt, c) < 0)
data/omake-0.10.3/src/clib/lm_printf.c:53:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    if(snprintf(buffer, sizeof(buffer), fmt, i) < 0)
data/omake-0.10.3/src/clib/lm_printf.c:56:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    if(sprintf(buffer, fmt, i) < 0)
data/omake-0.10.3/src/clib/lm_printf.c:72:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    if(snprintf(buffer, sizeof(buffer), fmt, x) < 0)
data/omake-0.10.3/src/clib/lm_printf.c:75:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    if(sprintf(buffer, fmt, x) < 0)
data/omake-0.10.3/src/clib/lm_printf.c:111:12:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    code = snprintf(bufp, size, fmt, s);
data/omake-0.10.3/src/clib/lm_printf.c:113:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    code = sprintf(bufp, fmt, s);
data/omake-0.10.3/src/clib/lm_printf.c:159:12:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    code = snprintf(bufp, size, fmt, s);
data/omake-0.10.3/src/clib/lm_printf.c:161:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    code = sprintf(bufp, fmt, s);
data/omake-0.10.3/src/clib/lm_uname_ext.c:96: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(name->sysname, osname);
data/omake-0.10.3/src/clib/lm_uname_ext.c:98:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(name->release, "%d %s", (int) osversion.dwBuildNumber, osversion.szCSDVersion);
data/omake-0.10.3/src/clib/lm_unix_cutil.c:181:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(szBuf, "lockf_win32 failed with error %u: %s", error, (char *) lpMsgBuf); 
data/omake-0.10.3/src/clib/omake_shell_spawn.c:392: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(me.decoded.b_function, uerror_function);
data/omake-0.10.3/src/clib/omake_shell_sys.c:912: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(env + index, strp);
data/omake-0.10.3/src/clib/omake_shell_sys.c:939: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(argv + index, argp);
data/omake-0.10.3/src/clib/omake_shell_sys.c:1025:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(err, "omake_shell_sys_create_process: process creation failed: %s", (char *)lpMsgBuf);
data/omake-0.10.3/src/clib/readline.c:888: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(readp->filename, filenamep);
data/omake-0.10.3/src/clib/readline.c:1370: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(readline_file, filep);
data/omake-0.10.3/src/clib/lm_compat_win32.c:118:13:  [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.
    hinst = LoadLibrary(TEXT("KERNEL32"));
data/omake-0.10.3/src/clib/lm_compat_win32.c:131:13:  [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.
    hinst = LoadLibrary(TEXT("SHELL32"));
data/omake-0.10.3/src/clib/lm_compat_win32.c:143:17:  [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.
        hinst = LoadLibrary(TEXT("SHFOLDER"));
data/omake-0.10.3/src/clib/lm_terminfo.c:76:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
   CAMLreturn(getenv("TERM") ? Val_true : Val_false);
data/omake-0.10.3/src/clib/fam_inotify.c:97:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[1];                       // Name of the directory
data/omake-0.10.3/src/clib/fam_inotify.c:155: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[(sizeof(struct inotify_event) + 64) * 256];
data/omake-0.10.3/src/clib/fam_inotify.c:197: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(eventp->filename, ievent->name, amount);
data/omake-0.10.3/src/clib/fam_kqueue.c:129:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[1];                       // Name of the directory
data/omake-0.10.3/src/clib/fam_kqueue.c:404:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    dir_handle = open(name, DIR_OPEN_FLAGS, 0);
data/omake-0.10.3/src/clib/fam_pseudo.h:79: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 filename[NAME_MAX];            // Name of the file that changed
data/omake-0.10.3/src/clib/fam_win32.c:99:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[NOTIFY_BUFFER_SIZE];    // Event buffer
data/omake-0.10.3/src/clib/fam_win32.c:102:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[1];                       // Name of the directory
data/omake-0.10.3/src/clib/fam_win32.c:253:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[NAME_MAX];
data/omake-0.10.3/src/clib/lm_ctype.c:53: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/omake-0.10.3/src/clib/lm_ctype.c:64: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_val(s), buf, p - buf);
data/omake-0.10.3/src/clib/lm_heap.c:90:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	 char *pointers[1 << 16];
data/omake-0.10.3/src/clib/lm_notify.c:81:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char buffer[256];                   \
data/omake-0.10.3/src/clib/lm_printf.c:31:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[BUFSIZE];
data/omake-0.10.3/src/clib/lm_printf.c:49:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[BUFSIZE];
data/omake-0.10.3/src/clib/lm_printf.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 buffer[BUFSIZE];
data/omake-0.10.3/src/clib/lm_printf.c:86:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[BUFSIZE], *bufp;
data/omake-0.10.3/src/clib/lm_printf.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 buffer[BUFSIZE], *bufp;
data/omake-0.10.3/src/clib/lm_uname_ext.c:47: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 sysname[1024];
data/omake-0.10.3/src/clib/lm_uname_ext.c:48: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 nodename[1024];
data/omake-0.10.3/src/clib/lm_uname_ext.c:49: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 release[1024];
data/omake-0.10.3/src/clib/lm_uname_ext.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 version[1024];
data/omake-0.10.3/src/clib/lm_uname_ext.c:51: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 machine[1024];
data/omake-0.10.3/src/clib/lm_uname_ext.c:97: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(name->version, "%d.%d", (int) osversion.dwMajorVersion, (int) osversion.dwMinorVersion);
data/omake-0.10.3/src/clib/lm_uname_ext.c:117: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(name->machine, "i%d86", ptype);
data/omake-0.10.3/src/clib/lm_uname_ext.c:120:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(name->machine, "alpha");
data/omake-0.10.3/src/clib/lm_uname_ext.c:123:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(name->machine, "mips");
data/omake-0.10.3/src/clib/lm_uname_ext.c:126:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(name->machine, "unknown");
data/omake-0.10.3/src/clib/lm_unix_cutil.c:81:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    TCHAR path[MAX_PATH];
data/omake-0.10.3/src/clib/lm_unix_cutil.c:152: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 szBuf[1024];
data/omake-0.10.3/src/clib/lm_unix_cutil.c:233:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[8192];
data/omake-0.10.3/src/clib/lm_unix_cutil.c:492:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[2048];
data/omake-0.10.3/src/clib/lm_unix_cutil.c:493:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "lm_getlk error: %i", errno);
data/omake-0.10.3/src/clib/omake_shell_spawn.c:55:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[256];
data/omake-0.10.3/src/clib/omake_shell_spawn.c:58:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char  b_function[64];
data/omake-0.10.3/src/clib/omake_shell_spawn.c:154: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(&spawn_mask, &save_mask, sizeof(sigset_t));
data/omake-0.10.3/src/clib/omake_shell_spawn.c:246: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).
	    ttyfd = open(ttyname, O_RDWR);
data/omake-0.10.3/src/clib/omake_shell_spawn.c:577:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    code = open(".", O_RDONLY, 0);
data/omake-0.10.3/src/clib/omake_shell_sys.c:885: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 env[SIZEOF_ENVIRONMENT];
data/omake-0.10.3/src/clib/omake_shell_sys.c:886: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 argv[SIZEOF_COMMAND];
data/omake-0.10.3/src/clib/omake_shell_sys.c:1024: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 err[2048];
data/omake-0.10.3/src/clib/readline.c:111: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 dir[PATH_MAX];
data/omake-0.10.3/src/clib/readline.c:194:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[LINE_MAX + 3];
data/omake-0.10.3/src/clib/readline.c:207: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 filename[PATH_MAX]; // Where is the history saved?
data/omake-0.10.3/src/clib/readline.c:213:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char prompt[MAX_PROMPT_LENGTH];
data/omake-0.10.3/src/clib/readline.c:621: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(old->buffer, current->buffer, current->length);
data/omake-0.10.3/src/clib/readline.c:856: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(readp->prompt, promptp, len);
data/omake-0.10.3/src/clib/readline.c:881:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[LINE_MAX + 32];
data/omake-0.10.3/src/clib/readline.c:889:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if((filep = fopen(filenamep, "r")) == NULL)
data/omake-0.10.3/src/clib/readline.c:911: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(linep->buffer, strp, linep->length);
data/omake-0.10.3/src/clib/readline.c:938:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if((filep = fopen(readp->filename, "w")) == NULL)
data/omake-0.10.3/src/clib/readline.c:1014: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 store[MAX_HISTORY_LENGTH][100];
data/omake-0.10.3/src/clib/readline.c:1015: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[MAX_HISTORY_LENGTH + 1];
data/omake-0.10.3/src/clib/readline.c:1025: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(strp, "%-5d %.70s", i + offset, linep->buffer);
data/omake-0.10.3/src/clib/readline.c:1061: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_val(v_str), linep->buffer, linep->length);
data/omake-0.10.3/src/clib/readline.c:1094: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 + off, linep->buffer + linep->index, amount);
data/omake-0.10.3/src/clib/readline.c:1173: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 dir[PATH_MAX];
data/omake-0.10.3/src/clib/readline.c:1274: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(readp->buffer, expansion, length);
data/omake-0.10.3/src/clib/readline.c:1316:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(readp->prompt, old_prompt, i);
data/omake-0.10.3/src/clib/readline.c:1357: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 readline_file[2048];
data/omake-0.10.3/src/clib/readline.c:1488: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[history_length + 1];
data/omake-0.10.3/src/clib/readline.c:1489: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 entries[history_length][80];
data/omake-0.10.3/src/clib/readline.c:1499: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(data[i], "%-5d %.70s", i + history_base, the_list[i]->line);
data/omake-0.10.3/src/clib/readline.c:1516: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(data[i], "%-5d %.70s", i + history_base, entryp->line);
data/omake-0.10.3/src/clib/readline.c:1522: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/omake-0.10.3/src/clib/readline.c:1555: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_val(v_str), readp->buffer, readp->length);
data/omake-0.10.3/src/clib/readline.c:1586: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 + off, readp->buffer + readp->index, amount);
data/omake-0.10.3/src/clib/readline.c:1613: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 begin[2] = { INVIS_START, 0};
data/omake-0.10.3/src/clib/readline.c:1614: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 end  [2] = { INVIS_END, 0};
data/omake-0.10.3/src/clib/fam_inotify.c:162:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    len = read(fc->id, buf, sizeof(buf));
data/omake-0.10.3/src/clib/fam_inotify.c:291: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).
    length = sizeof(DirInfo) + strlen(name);
data/omake-0.10.3/src/clib/fam_kqueue.c:252:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(fevent->filename, dir_info->name, NAME_MAX);
data/omake-0.10.3/src/clib/fam_kqueue.c:413: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).
    length = sizeof(DirInfo) + strlen(name);
data/omake-0.10.3/src/clib/fam_win32.c:298: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).
            dir_length = strlen(dir->name);
data/omake-0.10.3/src/clib/fam_win32.c:391: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).
    length = sizeof(DirInfo) + strlen(name);
data/omake-0.10.3/src/clib/lm_printf.c:98: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(s);
data/omake-0.10.3/src/clib/lm_printf.c:143: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(s);
data/omake-0.10.3/src/clib/omake_shell_spawn.c:419:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    n = read(ctrl_pipe[0], me.buffer, sizeof(me.buffer));
data/omake-0.10.3/src/clib/omake_shell_sys.c:909:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        length = strlen(strp);
data/omake-0.10.3/src/clib/omake_shell_sys.c:930:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        length = strlen(argp);
data/omake-0.10.3/src/clib/readline.c:778: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).
    readp->current.length = strlen(readp->current.buffer);
data/omake-0.10.3/src/clib/readline.c:853: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(promptp);
data/omake-0.10.3/src/clib/readline.c:886:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(strlen(filenamep) >= PATH_MAX)
data/omake-0.10.3/src/clib/readline.c:904: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).
        linep->length = strlen(strp);
data/omake-0.10.3/src/clib/readline.c:1218: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).
        readp->length = strlen(readp->buffer);
data/omake-0.10.3/src/clib/readline.c:1265:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        length = strlen(expansion);
data/omake-0.10.3/src/clib/readline.c:1365:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(strlen(filep) >= sizeof(readline_file))
data/omake-0.10.3/src/clib/readline.c:1480:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(readp->dir, String_val(v_dir), PATH_MAX - 1);

ANALYSIS SUMMARY:

Hits = 117
Lines analyzed = 7841 in approximately 0.24 seconds (32604 lines/second)
Physical Source Lines of Code (SLOC) = 5107
Hits@level = [0]  81 [1]  19 [2]  69 [3]   4 [4]  25 [5]   0
Hits@level+ = [0+] 198 [1+] 117 [2+]  98 [3+]  29 [4+]  25 [5+]   0
Hits/KSLOC@level+ = [0+] 38.7703 [1+] 22.9097 [2+] 19.1893 [3+] 5.67848 [4+] 4.89524 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.