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/dcfldd-1.7/src/argmatch.c
Examining data/dcfldd-1.7/src/argmatch.h
Examining data/dcfldd-1.7/src/copy.c
Examining data/dcfldd-1.7/src/copy.h
Examining data/dcfldd-1.7/src/dcfldd.c
Examining data/dcfldd-1.7/src/dcfldd.h
Examining data/dcfldd-1.7/src/full-write.c
Examining data/dcfldd-1.7/src/full-write.h
Examining data/dcfldd-1.7/src/getpagesize.h
Examining data/dcfldd-1.7/src/hash.c
Examining data/dcfldd-1.7/src/hash.h
Examining data/dcfldd-1.7/src/hashformat.c
Examining data/dcfldd-1.7/src/hashformat.h
Examining data/dcfldd-1.7/src/human.c
Examining data/dcfldd-1.7/src/human.h
Examining data/dcfldd-1.7/src/log.c
Examining data/dcfldd-1.7/src/log.h
Examining data/dcfldd-1.7/src/long-options.c
Examining data/dcfldd-1.7/src/long-options.h
Examining data/dcfldd-1.7/src/md5.c
Examining data/dcfldd-1.7/src/md5.h
Examining data/dcfldd-1.7/src/output.c
Examining data/dcfldd-1.7/src/output.h
Examining data/dcfldd-1.7/src/pathmax.h
Examining data/dcfldd-1.7/src/pattern.c
Examining data/dcfldd-1.7/src/pattern.h
Examining data/dcfldd-1.7/src/safe-read.c
Examining data/dcfldd-1.7/src/safe-read.h
Examining data/dcfldd-1.7/src/sha1.c
Examining data/dcfldd-1.7/src/sha1.h
Examining data/dcfldd-1.7/src/sha2.c
Examining data/dcfldd-1.7/src/sha2.h
Examining data/dcfldd-1.7/src/sizeprobe.c
Examining data/dcfldd-1.7/src/sizeprobe.h
Examining data/dcfldd-1.7/src/split.c
Examining data/dcfldd-1.7/src/split.h
Examining data/dcfldd-1.7/src/sys2.h
Examining data/dcfldd-1.7/src/system.h
Examining data/dcfldd-1.7/src/translate.c
Examining data/dcfldd-1.7/src/translate.h
Examining data/dcfldd-1.7/src/util.c
Examining data/dcfldd-1.7/src/util.h
Examining data/dcfldd-1.7/src/verify.c
Examining data/dcfldd-1.7/src/verify.h
Examining data/dcfldd-1.7/src/version-etc.c
Examining data/dcfldd-1.7/src/version-etc.h
Examining data/dcfldd-1.7/src/xalloc.h
Examining data/dcfldd-1.7/src/xstrtol.c
Examining data/dcfldd-1.7/src/xstrtol.h
Examining data/dcfldd-1.7/src/xstrtoul.c
Examining data/dcfldd-1.7/src/xstrtoumax.c

FINAL RESULTS:

data/dcfldd-1.7/src/dcfldd.c:478:37:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            popened[0] = hash_log = popen(val, "w");
data/dcfldd-1.7/src/dcfldd.c:492:45:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            popened[1] = hashops[MD5].log = popen(val, "w");
data/dcfldd-1.7/src/dcfldd.c:502:46:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            popened[2] = hashops[SHA1].log = popen(val, "w");
data/dcfldd-1.7/src/dcfldd.c:512:48:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            popened[3] = hashops[SHA256].log = popen(val, "w");
data/dcfldd-1.7/src/dcfldd.c:522:48:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            popened[4] = hashops[SHA384].log = popen(val, "w");
data/dcfldd-1.7/src/dcfldd.c:532:48:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            popened[5] = hashops[SHA512].log = popen(val, "w");
data/dcfldd-1.7/src/dcfldd.c:541:39:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            popened[6] = verify_log = popen(val, "w");
data/dcfldd-1.7/src/dcfldd.c:549:35:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            popened[7] = errlog = popen(val, "w");
data/dcfldd-1.7/src/log.c:61:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, str, ap);
data/dcfldd-1.7/src/log.c:65:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vfprintf(errlog, str, ap);
data/dcfldd-1.7/src/log.c:78:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, str, ap);
data/dcfldd-1.7/src/log.c:80:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vfprintf(errlog, str, ap2);
data/dcfldd-1.7/src/output.c:96:14:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    stream = popen(command, "w");
data/dcfldd-1.7/src/sys2.h:293:7:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
char *getlogin ();
data/dcfldd-1.7/src/util.c:381:3:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execl("/bin/sh", "sh", "-c", program, NULL);
data/dcfldd-1.7/src/util.c:384:3:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execlp("sh", "sh", "-c", program, NULL);
data/dcfldd-1.7/src/argmatch.c:241:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
extern const char *getenv ();
data/dcfldd-1.7/src/argmatch.c:293:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if ((cp = getenv ("VERSION_CONTROL")))
data/dcfldd-1.7/src/human.c:294:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  return getenv ("POSIXLY_CORRECT") ? 512 : DEFAULT_BLOCK_SIZE;
data/dcfldd-1.7/src/human.c:302:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (! spec && ! (spec = getenv ("BLOCK_SIZE")))
data/dcfldd-1.7/src/long-options.c:68: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.
      && (c = getopt_long (argc, argv, "+", long_options, NULL)) != -1)
data/dcfldd-1.7/src/system.h:110:10:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# define getopt system_getopt
data/dcfldd-1.7/src/system.h:112:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# undef getopt
data/dcfldd-1.7/src/argmatch.c:285:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  program_name = (char *) argv[0];
data/dcfldd-1.7/src/copy.c:82:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((char *) (obuf + oc), (char *) start, nfree);
data/dcfldd-1.7/src/copy.c:239:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char secstr[100];
data/dcfldd-1.7/src/dcfldd.c:219:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[2][LONGEST_HUMAN_READABLE + 1];
data/dcfldd-1.7/src/dcfldd.c:311:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(filename, options, mode);
data/dcfldd-1.7/src/dcfldd.c:473:24:  [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).
            hash_log = fopen(val, "w");
data/dcfldd-1.7/src/dcfldd.c:487:32:  [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).
            hashops[MD5].log = fopen(val, "w");
data/dcfldd-1.7/src/dcfldd.c:497:33:  [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).
            hashops[SHA1].log = fopen(val, "w");
data/dcfldd-1.7/src/dcfldd.c:507:35:  [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).
            hashops[SHA256].log = fopen(val, "w");
data/dcfldd-1.7/src/dcfldd.c:517:35:  [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).
            hashops[SHA384].log = fopen(val, "w");
data/dcfldd-1.7/src/dcfldd.c:527:35:  [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).
            hashops[SHA512].log = fopen(val, "w");
data/dcfldd-1.7/src/dcfldd.c:537: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).
            verify_log = fopen(val, "w");
data/dcfldd-1.7/src/dcfldd.c:545:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            errlog = fopen(val, "w");
data/dcfldd-1.7/src/dcfldd.c:721:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((verify_fd = open(verify_file, O_RDONLY)) < 0)
data/dcfldd-1.7/src/hash.c:41:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char MD5_hashstr[MD5_DIGEST_STRING_LENGTH + 1] = {'\0'};
data/dcfldd-1.7/src/hash.c:48:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char SHA1_hashstr[SHA1_DIGEST_STRING_LENGTH + 1] = {'\0'};
data/dcfldd-1.7/src/hash.c:55:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char SHA256_hashstr[SHA256_DIGEST_STRING_LENGTH + 1] = {'\0'};
data/dcfldd-1.7/src/hash.c:62:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char SHA384_hashstr[SHA384_DIGEST_STRING_LENGTH + 1] = {'\0'};
data/dcfldd-1.7/src/hash.c:69:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char SHA512_hashstr[SHA512_DIGEST_STRING_LENGTH + 1] = {'\0'};
data/dcfldd-1.7/src/human.c:185:4:  [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, "%.0f", adjust_value (inexact_style, damt));
data/dcfldd-1.7/src/human.c:200:6:  [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, "%.1f%c", adjust_value (inexact_style, damt),
data/dcfldd-1.7/src/human.c:203:8:  [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, "%.0f%c",
data/dcfldd-1.7/src/md5.c:40: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 PADDING[64] = {
data/dcfldd-1.7/src/md5.c:182:4:  [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*2], "%02x", mdContext->digest[i]);
data/dcfldd-1.7/src/md5.h:60:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char in[64];                              /* input buffer */
data/dcfldd-1.7/src/md5.h:61:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char digest[16];     /* actual digest after MD5Final call */
data/dcfldd-1.7/src/output.c:54:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
         || (fd = open(filename, O_RDWR | opts, perms)) < 0)
data/dcfldd-1.7/src/output.c:55: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).
        && (fd = open(filename, O_WRONLY | opts, perms)) < 0)
data/dcfldd-1.7/src/output.c:79: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[LONGEST_HUMAN_READABLE + 1];
data/dcfldd-1.7/src/pattern.c:47: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 tmpstring[3];
data/dcfldd-1.7/src/sha1.c:180:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[128];
data/dcfldd-1.7/src/sha1.c:481: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 (&sc->buffer.bytes[sc->bufferLength], data, bytesToCopy);
data/dcfldd-1.7/src/sha1.c:507: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 (&sc->buffer.bytes[sc->bufferLength], data, len);
data/dcfldd-1.7/src/sha1.c:521: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 (&sc->buffer.bytes[sc->bufferLength], data, bytesToCopy);
data/dcfldd-1.7/src/sha1.c:606: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[1000];
data/dcfldd-1.7/src/sha2.c:177:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define MEMCPY_BCOPY(d,s,l)	memcpy((d), (s), (l))
data/dcfldd-1.7/src/sha2.c:181:29:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define MEMCPY_BCOPY(d,s,l)	bcopy((s), (d), (l))
data/dcfldd-1.7/src/sha2.c:654:54:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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* SHA256_Data(const sha2_byte* data, size_t len, char digest[SHA256_DIGEST_STRING_LENGTH]) {
data/dcfldd-1.7/src/sha2.c:983:54:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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* SHA512_Data(const sha2_byte* data, size_t len, char digest[SHA512_DIGEST_STRING_LENGTH]) {
data/dcfldd-1.7/src/sha2.c:1058:54:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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* SHA384_Data(const sha2_byte* data, size_t len, char digest[SHA384_DIGEST_STRING_LENGTH]) {
data/dcfldd-1.7/src/split.c:131:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(fname, O_WRONLY | O_CREAT, perms);
data/dcfldd-1.7/src/sys2.h:320:47:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
# define mempcpy(D, S, N) ((void *) ((char *) memcpy (D, S, N) + (N)))
data/dcfldd-1.7/src/sys2.h:562:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      DEST = memcpy (tmp_dest_, (s_), len_);	\
data/dcfldd-1.7/src/translate.c:35: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.
unsigned char trans_table[256];
data/dcfldd-1.7/src/verify.c:208:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char secstr[100];
data/dcfldd-1.7/src/xalloc.h:81:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  (memcpy (xmalloc (sizeof (*Src) * (Num)), (Src), sizeof (*Src) * (Num)))
data/dcfldd-1.7/src/argmatch.c:99:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  arglen = strlen (arg);
data/dcfldd-1.7/src/argmatch.c:108: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 (arglist[i]) == arglen)
data/dcfldd-1.7/src/dcfldd.c:417:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(hstr) != 2)
data/dcfldd-1.7/src/dcfldd.c:470:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            pattern_len = strlen(pattern);
data/dcfldd-1.7/src/dcfldd.c:681:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                              strlen(DEFAULT_HASHWINDOW_FORMAT));
data/dcfldd-1.7/src/dcfldd.c:683:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                strlen(DEFAULT_TOTALHASH_FORMAT));
data/dcfldd-1.7/src/hashformat.c:84: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).
    if (str == NULL || strlen(str) == 0)
data/dcfldd-1.7/src/human.c:202:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if (4 < strlen (buf))
data/dcfldd-1.7/src/log.c:104:70:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
void log_verifywindow(hashtype_t *htype, off_t wina, off_t winb, int mismatch)
data/dcfldd-1.7/src/log.c:109:13:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            mismatch ? "Mismatch" : "Match");
data/dcfldd-1.7/src/log.c:112:45:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
void log_verifytotal(hashtype_t *htype, int mismatch)
data/dcfldd-1.7/src/log.c:114:40:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    fprintf(htype->log, "Total: %s\n", mismatch ? "Mismatch" : "Match");
data/dcfldd-1.7/src/pattern.c:38:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    plen = strlen(pattern);
data/dcfldd-1.7/src/pattern.c:49:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(tmpstring, &pattern[i*2], 2);
data/dcfldd-1.7/src/safe-read.c:51:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      n_chars = read (desc, ptr, len);
data/dcfldd-1.7/src/safe-read.c:55:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  n_chars = read (desc, ptr, len);
data/dcfldd-1.7/src/sha2.c:89:32:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
#error Define BYTE_ORDER to be equal to either LITTLE_ENDIAN or BIG_ENDIAN
data/dcfldd-1.7/src/sizeprobe.c:167:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        nread = read(fd, buf, blksize);
data/dcfldd-1.7/src/split.c:58: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).
    int fmtlen = strlen(fmt);
data/dcfldd-1.7/src/split.c:104: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).
    int fmtlen = strlen(fmt);
data/dcfldd-1.7/src/sys2.h:364:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# undef getc
data/dcfldd-1.7/src/sys2.h:365:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define getc(S) getc_unlocked (S)
data/dcfldd-1.7/src/sys2.h:369:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# undef getchar
data/dcfldd-1.7/src/sys2.h:370:10:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define getchar(S) getchar_unlocked (S)
data/dcfldd-1.7/src/sys2.h:560:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t len_ = strlen (s_) + 1;		\
data/dcfldd-1.7/src/system.h:183:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
# define NLENGTH(direct) (strlen((direct)->d_name))
data/dcfldd-1.7/src/util.c:186:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ssize_t nread = read(fdesc, buf, blocksize);
data/dcfldd-1.7/src/verify.c:244:36:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        if (i_nread != v_nread || (mismatch && i_nread < left_in_window)) {
data/dcfldd-1.7/src/verify.c:250:13:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        if (mismatch)
data/dcfldd-1.7/src/verify.c:260:10:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    if (!mismatch) {

ANALYSIS SUMMARY:

Hits = 99
Lines analyzed = 9013 in approximately 0.27 seconds (32899 lines/second)
Physical Source Lines of Code (SLOC) = 5851
Hits@level = [0]  42 [1]  30 [2]  46 [3]   7 [4]  16 [5]   0
Hits@level+ = [0+] 141 [1+]  99 [2+]  69 [3+]  23 [4+]  16 [5+]   0
Hits/KSLOC@level+ = [0+] 24.0984 [1+] 16.9202 [2+] 11.7929 [3+] 3.93095 [4+] 2.73458 [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.