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/zzuf-0.15/src/myfork.c
Examining data/zzuf-0.15/src/zzat.c
Examining data/zzuf-0.15/src/opts.c
Examining data/zzuf-0.15/src/libzzuf/network.h
Examining data/zzuf-0.15/src/libzzuf/debug.c
Examining data/zzuf-0.15/src/libzzuf/sys.h
Examining data/zzuf-0.15/src/libzzuf/network.c
Examining data/zzuf-0.15/src/libzzuf/sys.c
Examining data/zzuf-0.15/src/libzzuf/lib-win32.c
Examining data/zzuf-0.15/src/libzzuf/libzzuf.h
Examining data/zzuf-0.15/src/libzzuf/libzzuf.c
Examining data/zzuf-0.15/src/libzzuf/lib-load.h
Examining data/zzuf-0.15/src/libzzuf/lib-fd.c
Examining data/zzuf-0.15/src/libzzuf/lib-mem.c
Examining data/zzuf-0.15/src/libzzuf/lib-signal.c
Examining data/zzuf-0.15/src/libzzuf/lib-stream.c
Examining data/zzuf-0.15/src/libzzuf/debug.h
Examining data/zzuf-0.15/src/opts.h
Examining data/zzuf-0.15/src/common/ranges.h
Examining data/zzuf-0.15/src/common/common.h
Examining data/zzuf-0.15/src/common/fd.h
Examining data/zzuf-0.15/src/common/fuzz.c
Examining data/zzuf-0.15/src/common/fd.c
Examining data/zzuf-0.15/src/common/random.c
Examining data/zzuf-0.15/src/common/random.h
Examining data/zzuf-0.15/src/common/ranges.c
Examining data/zzuf-0.15/src/common/fuzz.h
Examining data/zzuf-0.15/src/myfork.h
Examining data/zzuf-0.15/src/timer.h
Examining data/zzuf-0.15/src/zzuf.c
Examining data/zzuf-0.15/src/timer.c
Examining data/zzuf-0.15/src/util/mutex.h
Examining data/zzuf-0.15/src/util/regex.cpp
Examining data/zzuf-0.15/src/util/md5.c
Examining data/zzuf-0.15/src/util/hex.h
Examining data/zzuf-0.15/src/util/getopt.h
Examining data/zzuf-0.15/src/util/getopt.c
Examining data/zzuf-0.15/src/util/hex.c
Examining data/zzuf-0.15/src/util/md5.h
Examining data/zzuf-0.15/src/util/regex.h
Examining data/zzuf-0.15/test/zznop.c
Examining data/zzuf-0.15/test/bug-memory.c
Examining data/zzuf-0.15/test/zzero.c
Examining data/zzuf-0.15/test/bug-div0.c
Examining data/zzuf-0.15/test/zzone.c
Examining data/zzuf-0.15/test/bug-overflow.c
Examining data/zzuf-0.15/test/bug-mmap.c
Examining data/zzuf-0.15/msvc/config.h

FINAL RESULTS:

data/zzuf-0.15/src/libzzuf/network.c:171: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(buf, parser);
data/zzuf-0.15/src/libzzuf/sys.c:82:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        if (dladdr(&fprintf, &di) != 0)
data/zzuf-0.15/src/myfork.c:199:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(str, "%s=%s", name, value);
data/zzuf-0.15/src/myfork.c:300: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(libpath, opts->oldargv[0]);
data/zzuf-0.15/src/myfork.c:308: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(tmp + 1, LT_OBJDIR SONAME);
data/zzuf-0.15/src/myfork.c:309:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(libpath, R_OK) < 0)
data/zzuf-0.15/src/myfork.c:310: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(libpath, LIBDIR "/" SONAME);
data/zzuf-0.15/src/myfork.c:313: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(libpath, LIBDIR "/" SONAME);
data/zzuf-0.15/src/myfork.c:316:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(libpath, EXTRAINFO);
data/zzuf-0.15/src/myfork.c:323:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(bigbuf, "%s:%s", tmp, libpath);
data/zzuf-0.15/src/myfork.c:333:9:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (execvp(child->newargv[0], child->newargv))
data/zzuf-0.15/src/myfork.c:362: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(cmdline + len, child->newargv[i]);
data/zzuf-0.15/src/myfork.c:543: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((char *)(payload + sizeof(loader) - 1), lib);
data/zzuf-0.15/src/zzat.c:31:12:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#   define snprintf sprintf_s
data/zzuf-0.15/src/zzat.c:163:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf(MOREINFO, argv[0]);
data/zzuf-0.15/src/zzat.c:368:23:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
         && nitems == sscanf(sequence, parser.tmpfmt, \
data/zzuf-0.15/src/zzat.c:584:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
            snprintf(buf, 16, strlen(sequence) < 16 ? "%s" : "%.12s...",
data/zzuf-0.15/src/zzuf.c:389:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf(MOREINFO, argv[0]);
data/zzuf-0.15/src/zzuf.c:399:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(MOREINFO, argv[0]);
data/zzuf-0.15/src/zzuf.c:408:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(MOREINFO, argv[0]);
data/zzuf-0.15/src/zzuf.c:417:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(MOREINFO, argv[0]);
data/zzuf-0.15/src/zzuf.c:454:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf(MOREINFO, argv[0]);
data/zzuf-0.15/src/zzuf.c:684:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(regex + strlen(regex) - 1, "|%s)", string);
data/zzuf-0.15/src/zzuf.c:689:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(regex, "(%s)", string);
data/zzuf-0.15/src/zzuf.c:747: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(tmpcopy, opts->oldargv[j]);
data/zzuf-0.15/src/zzuf.c:758:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(tmpname, "%s/zzuf.%i.XXXXXX", tmpdir, GetCurrentProcessId());
data/zzuf-0.15/src/zzuf.c:759:31:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
            int fdout = _open(mktemp(tmpname), _O_RDWR, 0600);
data/zzuf-0.15/src/zzuf.c:761:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(tmpname, "%s/zzuf.%i.XXXXXX%s", tmpdir, (int)getpid(), extension);
data/zzuf-0.15/src/zzuf.c:1189:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(str, "%s=%s", name, value);
data/zzuf-0.15/src/libzzuf/libzzuf.c:123: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.
    char *tmp = getenv("ZZUF_DEBUG");
data/zzuf-0.15/src/libzzuf/libzzuf.c:127:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmp = getenv("ZZUF_DEBUGFD");
data/zzuf-0.15/src/libzzuf/libzzuf.c:138:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmp = getenv("ZZUF_SEED");
data/zzuf-0.15/src/libzzuf/libzzuf.c:142:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmp = getenv("ZZUF_MINRATIO");
data/zzuf-0.15/src/libzzuf/libzzuf.c:143: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.
    char *tmp2 = getenv("ZZUF_MAXRATIO");
data/zzuf-0.15/src/libzzuf/libzzuf.c:147:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmp = getenv("ZZUF_AUTOINC");
data/zzuf-0.15/src/libzzuf/libzzuf.c:151:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmp = getenv("ZZUF_BYTES");
data/zzuf-0.15/src/libzzuf/libzzuf.c:155:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmp = getenv("ZZUF_LIST");
data/zzuf-0.15/src/libzzuf/libzzuf.c:159:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmp = getenv("ZZUF_PORTS");
data/zzuf-0.15/src/libzzuf/libzzuf.c:163:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmp = getenv("ZZUF_ALLOW");
data/zzuf-0.15/src/libzzuf/libzzuf.c:167:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmp = getenv("ZZUF_DENY");
data/zzuf-0.15/src/libzzuf/libzzuf.c:171:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmp = getenv("ZZUF_PROTECT");
data/zzuf-0.15/src/libzzuf/libzzuf.c:175:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmp = getenv("ZZUF_REFUSE");
data/zzuf-0.15/src/libzzuf/libzzuf.c:179:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmp = getenv("ZZUF_INCLUDE");
data/zzuf-0.15/src/libzzuf/libzzuf.c:183:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmp = getenv("ZZUF_EXCLUDE");
data/zzuf-0.15/src/libzzuf/libzzuf.c:187:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmp = getenv("ZZUF_SIGNAL");
data/zzuf-0.15/src/libzzuf/libzzuf.c:191:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmp = getenv("ZZUF_MEMORY");
data/zzuf-0.15/src/libzzuf/libzzuf.c:195:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmp = getenv("ZZUF_NETWORK");
data/zzuf-0.15/src/libzzuf/libzzuf.c:203:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmp = getenv("ZZUF_STDIN");
data/zzuf-0.15/src/myfork.c:195:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (!overwrite && getenv(name))
data/zzuf-0.15/src/myfork.c:319:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmp = getenv(PRELOAD);
data/zzuf-0.15/src/util/getopt.c:38:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int ret = getopt_long(argc, _argv, optstring,
data/zzuf-0.15/src/zzuf.c:733: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.
        tmpdir = getenv("TEMP");
data/zzuf-0.15/src/zzuf.c:1185:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (!overwrite && getenv(name))
data/zzuf-0.15/src/common/fd.c:271: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(fds, static_fds, maxfd * sizeof(*fds));
data/zzuf-0.15/src/common/fd.c:292: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(files, static_files, nfiles * sizeof(*files));
data/zzuf-0.15/src/common/fuzz.c:53:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char protect[256];
data/zzuf-0.15/src/common/fuzz.c:54:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char refuse[256];
data/zzuf-0.15/src/common/ranges.c:35: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.
int64_t *_zz_allocrange(char const *list, int64_t static_ranges[256])
data/zzuf-0.15/src/common/ranges.c:57:48:  [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).
        ranges[i * 2] = (dash == parser) ? 0 : atoi(parser);
data/zzuf-0.15/src/common/ranges.c:61:33:  [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).
            ranges[i * 2 + 1] = atoi(dash + 1) + 1;
data/zzuf-0.15/src/common/ranges.h:19: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.
int64_t *_zz_allocrange(char const *, int64_t[256]);
data/zzuf-0.15/src/libzzuf/debug.c:50: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[128], *b = buf + 127; \
data/zzuf-0.15/src/libzzuf/debug.c:69: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 debug_buffer[BUFSIZ];
data/zzuf-0.15/src/libzzuf/debug.c:76: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[0x100];
data/zzuf-0.15/src/libzzuf/debug.c:107: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[0x100];
data/zzuf-0.15/src/libzzuf/debug.c:172: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(debug_buffer + debug_count, data, count);
data/zzuf-0.15/src/libzzuf/lib-fd.c:96:23:  [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).
static int     (*ORIG(open))    (const char *file, int oflag, ...);
data/zzuf-0.15/src/libzzuf/lib-fd.c:204:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#undef open
data/zzuf-0.15/src/libzzuf/lib-fd.c:205:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
int NEW(open)(const char *file, int oflag, ...)
data/zzuf-0.15/src/libzzuf/lib-fd.c:207:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int ret; ZZ_OPEN(open); return ret;
data/zzuf-0.15/src/libzzuf/lib-fd.c:393:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char tmp[128]; \
data/zzuf-0.15/src/libzzuf/lib-fd.c:432:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char tmp[128], tmp2[128]; \
data/zzuf-0.15/src/libzzuf/lib-fd.c:434: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(tmp, "&%i", (int)*fromlen); \
data/zzuf-0.15/src/libzzuf/lib-fd.c:436:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(tmp, "NULL"); \
data/zzuf-0.15/src/libzzuf/lib-fd.c:500:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char tmp[128]; \
data/zzuf-0.15/src/libzzuf/lib-fd.c:568:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp[128];
data/zzuf-0.15/src/libzzuf/lib-mem.c:163: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(dummy_buffer + dummy_offset, &lsize, sizeof(size_t));
data/zzuf-0.15/src/libzzuf/lib-mem.c:187: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(dummy_buffer + dummy_offset, &size, sizeof(size_t));
data/zzuf-0.15/src/libzzuf/lib-mem.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(dummy_buffer + dummy_offset, &size, sizeof(size_t));
data/zzuf-0.15/src/libzzuf/lib-mem.c:233: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(&oldsize, (DUMMY_TYPE *)ptr - 1, sizeof(size_t));
data/zzuf-0.15/src/libzzuf/lib-mem.c:236: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(ret, ptr, size < oldsize ? size : oldsize);
data/zzuf-0.15/src/libzzuf/lib-mem.c:346: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(b, ret, data_length); \
data/zzuf-0.15/src/libzzuf/lib-mem.c:352:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char tmp[128]; \
data/zzuf-0.15/src/libzzuf/lib-mem.c:418: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(b, (void *)*addr, numbytes);
data/zzuf-0.15/src/libzzuf/lib-mem.c:426:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp[128];
data/zzuf-0.15/src/libzzuf/lib-signal.c:123: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(&newact, act, sizeof(struct sigaction));
data/zzuf-0.15/src/libzzuf/lib-stream.c:83:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
static FILE *  (*ORIG(fopen))    (const char *path, const char *mode);
data/zzuf-0.15/src/libzzuf/lib-stream.c:261: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 tmp1[128], tmp2[128];
data/zzuf-0.15/src/libzzuf/lib-stream.c:324:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#undef fopen
data/zzuf-0.15/src/libzzuf/lib-stream.c:325:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
FILE *NEW(fopen)(const char *path, const char *mode)
data/zzuf-0.15/src/libzzuf/lib-stream.c:327:25:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *ret; ZZ_FOPEN(fopen); return ret;
data/zzuf-0.15/src/libzzuf/lib-stream.c:455: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(newbuf, oldbuf, newoff + newcnt); \
data/zzuf-0.15/src/libzzuf/lib-stream.c:639:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char tmp[128]; \
data/zzuf-0.15/src/libzzuf/libzzuf.c:125: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).
        g_debug_level = atoi(tmp);
data/zzuf-0.15/src/libzzuf/libzzuf.c:130:44:  [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).
        g_debug_fd = _open_osfhandle((long)atoi(tmp), 0);
data/zzuf-0.15/src/libzzuf/libzzuf.c:132:22:  [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).
        g_debug_fd = atoi(tmp);
data/zzuf-0.15/src/libzzuf/libzzuf.c:140:23:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        zzuf_set_seed(atol(tmp));
data/zzuf-0.15/src/libzzuf/libzzuf.c:193:26:  [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).
        g_memory_limit = atoi(tmp);
data/zzuf-0.15/src/libzzuf/network.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[BUFSIZ];
data/zzuf-0.15/src/libzzuf/network.c:165: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, parser, comma - parser);
data/zzuf-0.15/src/libzzuf/sys.c:205: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(code, "\x48\xb8", 2);                /* MOV rAX, Iq */
data/zzuf-0.15/src/libzzuf/sys.c:207:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(code + 10, "\xff\xe0", 2);           /* JMP rAX */
data/zzuf-0.15/src/libzzuf/sys.c:242: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(trampoline + trampoline_offset, "\x48\xb8", 2); /* MOV rAX, Iq */
data/zzuf-0.15/src/libzzuf/sys.c:249: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(trampoline + trampoline_offset, code + code_offset, insn_size);
data/zzuf-0.15/src/libzzuf/sys.c:258: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(trampoline + trampoline_offset, "\x49\xba", 2); /* MOV r10, Iq */
data/zzuf-0.15/src/libzzuf/sys.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(trampoline + trampoline_offset + 10, "\x41\xff\xe2", 3); /* JMP r10 */
data/zzuf-0.15/src/libzzuf/sys.c:270: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(trampoline, code, patch_size);
data/zzuf-0.15/src/libzzuf/sys.c:383: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_api, jmp_prolog, patch_size);
data/zzuf-0.15/src/myfork.c:145: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 pipe_name[BUFSIZ];
data/zzuf-0.15/src/myfork.c:281: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[64];
data/zzuf-0.15/src/myfork.c:283: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, "%i", _get_osfhandle(pipes[0][1]));
data/zzuf-0.15/src/myfork.c:285: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, "%i", pipes[0][1]);
data/zzuf-0.15/src/myfork.c:288: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, "%i", opts->seed);
data/zzuf-0.15/src/myfork.c:290: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, "%g", opts->minratio);
data/zzuf-0.15/src/myfork.c:292: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, "%g", opts->maxratio);
data/zzuf-0.15/src/myfork.c:539: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(payload, loader, sizeof(loader) - 1);
data/zzuf-0.15/src/myfork.c:541: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(payload + LoadLibraryAOffset, &rldlib, sizeof(rldlib));
data/zzuf-0.15/src/myfork.c:612: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[1024];
data/zzuf-0.15/src/util/hex.c:87: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(ctx->current_line + buffered_len, buf, to_copy);
data/zzuf-0.15/src/util/md5.c:74: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, buf, len);
data/zzuf-0.15/src/util/md5.c:77: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, buf, t);
data/zzuf-0.15/src/util/md5.c:86: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(ctx->in, buf, 64);
data/zzuf-0.15/src/util/md5.c:93: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(ctx->in, buf, len);
data/zzuf-0.15/src/util/md5.c:114: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(ctx->in + 56 / 4, ctx->bits, 8);
data/zzuf-0.15/src/util/md5.c:117: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(digest, ctx->buf, 16);
data/zzuf-0.15/src/zzat.c:133:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            g_repeat = atoi(zz_optarg);
data/zzuf-0.15/src/zzat.c:290: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(retbuf + retoff, address, _cnt); \
data/zzuf-0.15/src/zzat.c:302: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).
            f = fopen(file, "r"); \
data/zzuf-0.15/src/zzat.c:319: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).
            f = fopen(file, "r"); \
data/zzuf-0.15/src/zzat.c:342: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 tmpfmt[1024], ch, lastch;
data/zzuf-0.15/src/zzat.c:352: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->tmpfmt, fmt, len - 1);
data/zzuf-0.15/src/zzat.c:439:26:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            MY_FOPEN(f = fopen(file, "r"));
data/zzuf-0.15/src/zzat.c:583: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[16];
data/zzuf-0.15/src/zzat.c:616:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int i, fd = open(name, O_RDONLY);
data/zzuf-0.15/src/zzat.c:629:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(name, O_RDONLY);
data/zzuf-0.15/src/zzat.c:651:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *stream = fopen(name, "r");
data/zzuf-0.15/src/zzat.c:678:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(name, O_RDONLY);
data/zzuf-0.15/src/zzuf.c:227:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            opts->maxbytes = atoi(zz_optarg);
data/zzuf-0.15/src/zzuf.c:237:32:  [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).
            opts->maxcrashes = atoi(zz_optarg);
data/zzuf-0.15/src/zzuf.c:286:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            opts->maxchild = atoi(zz_optarg) > 1 ? atoi(zz_optarg) : 1;
data/zzuf-0.15/src/zzuf.c:286:52:  [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).
            opts->maxchild = atoi(zz_optarg) > 1 ? atoi(zz_optarg) : 1;
data/zzuf-0.15/src/zzuf.c:298:28:  [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).
            opts->maxmem = atoi(zz_optarg);
data/zzuf-0.15/src/zzuf.c:345:26:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            opts->seed = atol(zz_optarg);
data/zzuf-0.15/src/zzuf.c:346:54:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            opts->endseed = tmp ? tmp[1] ? (uint32_t)atol(tmp + 1)
data/zzuf-0.15/src/zzuf.c:356:38:  [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).
            opts->maxtime = (int64_t)atoi(zz_optarg) * 1000000;
data/zzuf-0.15/src/zzuf.c:509: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[32];
data/zzuf-0.15/src/zzuf.c:531: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(opts->child[i].newargv, argv + zz_optind,
data/zzuf-0.15/src/zzuf.c:731: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 tmpname[4096];
data/zzuf-0.15/src/zzuf.c:741:26:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            FILE *fpin = fopen(opts->oldargv[j], "r");
data/zzuf-0.15/test/bug-mmap.c:36:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open("/etc/hosts", O_RDONLY);
data/zzuf-0.15/test/bug-overflow.c:18: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.
volatile char buf[1];
data/zzuf-0.15/test/zzone.c:42:19:  [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).
    size_t size = atoi(argv[1]);
data/zzuf-0.15/test/zzone.c:43:20:  [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).
    size_t count = atoi(argv[2]);
data/zzuf-0.15/src/libzzuf/debug.c:347:13:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
            strcpy(str, "…");
data/zzuf-0.15/src/libzzuf/debug.c:348:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            str += strlen("…");
data/zzuf-0.15/src/libzzuf/lib-fd.c:144:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
static ssize_t (*ORIG(read))    (int fd, void *buf, size_t count);
data/zzuf-0.15/src/libzzuf/lib-fd.c:146:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
static int     (*ORIG(read))    (int fd, void *buf, unsigned int count);
data/zzuf-0.15/src/libzzuf/lib-fd.c:509:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#undef read
data/zzuf-0.15/src/libzzuf/lib-fd.c:510:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ssize_t NEW(read)(int fd, void *buf, size_t count)
data/zzuf-0.15/src/libzzuf/lib-fd.c:512:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int ret; ZZ_READ(read, (fd, buf, count)); return (ssize_t)ret;
data/zzuf-0.15/src/libzzuf/lib-fd.c:515:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#undef read
data/zzuf-0.15/src/libzzuf/lib-fd.c:516:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int NEW(read)(int fd, void *buf, unsigned int count)
data/zzuf-0.15/src/libzzuf/lib-fd.c:518:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int ret; ZZ_READ(read, (fd, buf, count)); return ret;
data/zzuf-0.15/src/libzzuf/lib-mem.c:95:23:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
static void *  (*ORIG(memalign)) (size_t boundary, size_t size);
data/zzuf-0.15/src/libzzuf/lib-mem.c:266:8:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
#undef memalign
data/zzuf-0.15/src/libzzuf/lib-mem.c:267:11:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
void *NEW(memalign)(size_t boundary, size_t size)
data/zzuf-0.15/src/libzzuf/lib-mem.c:269:13:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
    LOADSYM(memalign);
data/zzuf-0.15/src/libzzuf/lib-mem.c:271:22:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
    void *ret = ORIG(memalign)(boundary, size);
data/zzuf-0.15/src/libzzuf/lib-stream.c:131:23:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
static int     (*ORIG(getc))     (FILE *stream);
data/zzuf-0.15/src/libzzuf/lib-stream.c:132:23:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
static int     (*ORIG(getchar))  (void);
data/zzuf-0.15/src/libzzuf/lib-stream.c:133:23:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
static int     (*ORIG(fgetc))    (FILE *stream);
data/zzuf-0.15/src/libzzuf/lib-stream.c:737:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#undef getc
data/zzuf-0.15/src/libzzuf/lib-stream.c:738:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int NEW(getc)(FILE *stream)
data/zzuf-0.15/src/libzzuf/lib-stream.c:740:23:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int ret; ZZ_FGETC(getc, stream, stream); return ret;
data/zzuf-0.15/src/libzzuf/lib-stream.c:743:8:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#undef getchar
data/zzuf-0.15/src/libzzuf/lib-stream.c:744:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int NEW(getchar)(void)
data/zzuf-0.15/src/libzzuf/lib-stream.c:746:23:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int ret; ZZ_FGETC(getchar, stdin, /* empty */); return ret;
data/zzuf-0.15/src/libzzuf/lib-stream.c:749:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#undef fgetc
data/zzuf-0.15/src/libzzuf/lib-stream.c:750:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int NEW(fgetc)(FILE *stream)
data/zzuf-0.15/src/libzzuf/lib-stream.c:752:23:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int ret; ZZ_FGETC(fgetc, stream, stream); return ret;
data/zzuf-0.15/src/libzzuf/lib-stream.c:861:32:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    char *ret; ZZ_FGETS(fgets, fgetc, (s, size, stream)); return ret;
data/zzuf-0.15/src/libzzuf/lib-stream.c:880:27:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ZZ_FGETS(__fgets_chk, fgetc, (s, ptrlen, size, stream));
data/zzuf-0.15/src/libzzuf/lib-stream.c:957:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        LOADSYM(fgetc); \
data/zzuf-0.15/src/libzzuf/lib-stream.c:985:24:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            chr = ORIG(fgetc)(stream); \
data/zzuf-0.15/src/libzzuf/lib-stream.c:1067:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    LOADSYM(fgetc);
data/zzuf-0.15/src/libzzuf/lib-stream.c:1085:24:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int chr = ORIG(fgetc)(stream);
data/zzuf-0.15/src/libzzuf/network.c:169: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).
        else if (strlen(parser) < BUFSIZ - 1)
data/zzuf-0.15/src/libzzuf/network.c:172: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).
            parser += strlen(parser);
data/zzuf-0.15/src/myfork.c:198: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).
    char *str = malloc(strlen(name) + 1 + strlen(value) + 1);
data/zzuf-0.15/src/myfork.c:198:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *str = malloc(strlen(name) + 1 + strlen(value) + 1);
data/zzuf-0.15/src/myfork.c:297:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(opts->oldargv[0]);
data/zzuf-0.15/src/myfork.c:299: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).
               malloc(len + strlen(LIBDIR "/" LT_OBJDIR SONAME EXTRAINFO) + 1);
data/zzuf-0.15/src/myfork.c:322:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        char *bigbuf = malloc(strlen(tmp) + strlen(libpath) + 2);
data/zzuf-0.15/src/myfork.c:322: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).
        char *bigbuf = malloc(strlen(tmp) + strlen(libpath) + 2);
data/zzuf-0.15/src/myfork.c:356:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len += (int)strlen(child->newargv[i]) + 1;
data/zzuf-0.15/src/myfork.c:363:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len += (int)strlen(child->newargv[i]) + 1;
data/zzuf-0.15/src/myfork.c:476:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t payload_len = sizeof(loader) - 1 + strlen(lib) + 1;
data/zzuf-0.15/src/myfork.c:613:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t buflen = strlen(func) + 1;
data/zzuf-0.15/src/util/getopt.c:93:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t l = strlen(longopts[i].name);
data/zzuf-0.15/src/zzat.c:349:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(fmt);
data/zzuf-0.15/src/zzat.c:471:32:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            MY_FREAD(ch = (n = getc(f)), &ch, (n != EOF));
data/zzuf-0.15/src/zzat.c:473:32:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            MY_FREAD(ch = (n = fgetc(f)), &ch, (n != EOF));
data/zzuf-0.15/src/zzat.c:475:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            MY_FREAD(s = fgets(tmp, l1, f), tmp, s ? strlen(tmp) : 0);
data/zzuf-0.15/src/zzat.c:478:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            MY_FREAD(s = __fgets_chk(tmp, l1, l1, f), tmp, s ? strlen(tmp) : 0);
data/zzuf-0.15/src/zzat.c:498:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            MY_FREAD(s = fgets_unlocked(tmp, l1, f), tmp, s ? strlen(tmp) : 0);
data/zzuf-0.15/src/zzat.c:502:73:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            MY_FREAD(s = __fgets_unlocked_chk(tmp, l1, l1, f), tmp, s ? strlen(tmp) : 0);
data/zzuf-0.15/src/zzat.c:584: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).
            snprintf(buf, 16, strlen(sequence) < 16 ? "%s" : "%.12s...",
data/zzuf-0.15/src/zzat.c:620:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read(fd, data + i, chunk);
data/zzuf-0.15/src/zzat.c:636:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            read(fd, data + lseek(fd, 0, SEEK_CUR), myrand() % 4096);
data/zzuf-0.15/src/zzat.c:640:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            read(fd, data + lseek(fd, 0, SEEK_CUR), myrand() % 4096);
data/zzuf-0.15/src/zzat.c:664:29:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            data[now + j] = getc(stream);
data/zzuf-0.15/src/zzat.c:667:29:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            data[now + j] = fgetc(stream);
data/zzuf-0.15/src/zzat.c:794:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (len < strlen(spaces))
data/zzuf-0.15/src/zzuf.c:602:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int ret = read(0, buf, toread);
data/zzuf-0.15/src/zzuf.c:657:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *newfile = malloc(5 + 2 * strlen(file) + 1 + 1);
data/zzuf-0.15/src/zzuf.c:683: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).
        regex = realloc(regex, strlen(regex) + strlen(string) + 1 + 1);
data/zzuf-0.15/src/zzuf.c:683: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).
        regex = realloc(regex, strlen(regex) + strlen(string) + 1 + 1);
data/zzuf-0.15/src/zzuf.c:684: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).
        sprintf(regex + strlen(regex) - 1, "|%s)", string);
data/zzuf-0.15/src/zzuf.c:688: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).
        regex = malloc(1 + strlen(string) + 1 + 1);
data/zzuf-0.15/src/zzuf.c:746:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            char *tmpcopy = alloca(strlen(opts->oldargv[j])+1);
data/zzuf-0.15/src/zzuf.c:755: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).
                extlen = strlen(extension);
data/zzuf-0.15/src/zzuf.c:1153:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ret = read(opts->child[i].fd[j], buf, BUFSIZ - 1);
data/zzuf-0.15/src/zzuf.c:1188: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).
    char *str = malloc(strlen(name) + 1 + strlen(value) + 1);
data/zzuf-0.15/src/zzuf.c:1188:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *str = malloc(strlen(name) + 1 + strlen(value) + 1);
data/zzuf-0.15/test/bug-div0.c:25:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((ch = getc(stdin)) != EOF)
data/zzuf-0.15/test/bug-memory.c:21:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((ch = getc(stdin)) != EOF)
data/zzuf-0.15/test/bug-overflow.c:24:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((ch = getc(stdin)) != EOF)
data/zzuf-0.15/test/zzero.c:33:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((ch = getc(stdin)) != EOF)
data/zzuf-0.15/test/zznop.c:32:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();

ANALYSIS SUMMARY:

Hits = 229
Lines analyzed = 10204 in approximately 0.28 seconds (36301 lines/second)
Physical Source Lines of Code (SLOC) = 7618
Hits@level = [0] 188 [1]  76 [2] 100 [3]  24 [4]  29 [5]   0
Hits@level+ = [0+] 417 [1+] 229 [2+] 153 [3+]  53 [4+]  29 [5+]   0
Hits/KSLOC@level+ = [0+] 54.7388 [1+] 30.0604 [2+] 20.084 [3+] 6.95721 [4+] 3.80677 [5+]   0
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.