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/dmalloc-5.5.2/contrib/atexit.c
Examining data/dmalloc-5.5.2/contrib/Xmalloc.c
Examining data/dmalloc-5.5.2/dmallocc.cc
Examining data/dmalloc-5.5.2/version.h
Examining data/dmalloc-5.5.2/dmalloc_fc_t.c
Examining data/dmalloc-5.5.2/dmalloc_tab_loc.h
Examining data/dmalloc-5.5.2/dmalloc_tab.h
Examining data/dmalloc-5.5.2/dmalloc_tab.c
Examining data/dmalloc-5.5.2/dmalloc_rand.h
Examining data/dmalloc-5.5.2/dmalloc_rand.c
Examining data/dmalloc-5.5.2/dmalloc_loc.h
Examining data/dmalloc-5.5.2/heap.h
Examining data/dmalloc-5.5.2/error_val.h
Examining data/dmalloc-5.5.2/env.h
Examining data/dmalloc-5.5.2/env.c
Examining data/dmalloc-5.5.2/debug_tok.h
Examining data/dmalloc-5.5.2/arg_check.h
Examining data/dmalloc-5.5.2/arg_check.c
Examining data/dmalloc-5.5.2/dmalloc.c
Examining data/dmalloc-5.5.2/chunk.c
Examining data/dmalloc-5.5.2/chunk.h
Examining data/dmalloc-5.5.2/chunk_loc.h
Examining data/dmalloc-5.5.2/compat.c
Examining data/dmalloc-5.5.2/compat.h
Examining data/dmalloc-5.5.2/dmalloc_argv.c
Examining data/dmalloc-5.5.2/dmalloc_argv.h
Examining data/dmalloc-5.5.2/dmalloc_argv_loc.h
Examining data/dmalloc-5.5.2/error.c
Examining data/dmalloc-5.5.2/error.h
Examining data/dmalloc-5.5.2/heap.c
Examining data/dmalloc-5.5.2/malloc.c
Examining data/dmalloc-5.5.2/malloc_funcs.h
Examining data/dmalloc-5.5.2/return.h
Examining data/dmalloc-5.5.2/dmalloc_t.c

FINAL RESULTS:

data/dmalloc-5.5.2/arg_check.c:363:18:  [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).
  return (char *)strcat(to, from);
data/dmalloc-5.5.2/arg_check.c:419:18:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  return (char *)strcpy(to, from);
data/dmalloc-5.5.2/compat.c:145:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  (void)vsnprintf(buf, buf_size, format, args);
data/dmalloc-5.5.2/compat.c:148:9:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
  (void)vsprintf(buf, format, args);
data/dmalloc-5.5.2/compat.c:326:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
char	*strcpy(char *str1, const char *str2)
data/dmalloc-5.5.2/compat.h:125:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
char	*strcpy(char *str1, const char *str2);
data/dmalloc-5.5.2/dmalloc_fc_t.c:277:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(pnt, val);
data/dmalloc-5.5.2/dmalloc_fc_t.c:481:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(pnt, val);
data/dmalloc-5.5.2/dmalloc_fc_t.c:511:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(pnt, big_val);
data/dmalloc-5.5.2/dmalloc_fc_t.c:541:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(pnt, val);
data/dmalloc-5.5.2/dmalloc_fc_t.c:543:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(pnt, val);
data/dmalloc-5.5.2/dmalloc_fc_t.c:561:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(pnt, val);
data/dmalloc-5.5.2/dmalloc_fc_t.c:573:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(pnt, val);
data/dmalloc-5.5.2/dmalloc_fc_t.c:602:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(pnt, val);
data/dmalloc-5.5.2/dmalloc_fc_t.c:632:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(pnt, val);
data/dmalloc-5.5.2/dmalloc_fc_t.c:645:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(pnt, val);
data/dmalloc-5.5.2/dmalloc_fc_t.c:684:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(pnt, val);
data/dmalloc-5.5.2/dmalloc_fc_t.c:743:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(pnt, val);
data/dmalloc-5.5.2/dmalloc_fc_t.c:829:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(pnt, val);
data/dmalloc-5.5.2/dmalloc_fc_t.c:857:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(pnt, val);
data/dmalloc-5.5.2/dmalloc_fc_t.c:886:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(pnt, val);
data/dmalloc-5.5.2/dmalloc_fc_t.c:914:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(pnt, val);
data/dmalloc-5.5.2/dmalloc_fc_t.c:942:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(pnt, val);
data/dmalloc-5.5.2/dmalloc.c:232: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.
  shell = getenv(SHELL_ENVIRON);
data/dmalloc-5.5.2/dmalloc.c:525:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      home_p = getenv(HOME_ENVIRON);
data/dmalloc-5.5.2/dmalloc.c:632:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      home_p = getenv(HOME_ENVIRON);
data/dmalloc-5.5.2/dmalloc.c:708: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.
  env_str = getenv(OPTIONS_ENVIRON);
data/dmalloc-5.5.2/dmalloc.c:915: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.
  env_str = getenv(OPTIONS_ENVIRON);
data/dmalloc-5.5.2/dmalloc_argv.c:2864:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  environ_p = getenv(env_name);
data/dmalloc-5.5.2/dmalloc_argv.c:2922: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.
  env_val = getenv(GLOBAL_NAME);
data/dmalloc-5.5.2/malloc.c:382: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.
      env_str = getenv(OPTIONS_ENVIRON);
data/dmalloc-5.5.2/arg_check.c:82:10:  [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).
  return atoi(str);
data/dmalloc-5.5.2/arg_check.c:98:10:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  return atol(str);
data/dmalloc-5.5.2/arg_check.c:136:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  bcopy(from, to, len);
data/dmalloc-5.5.2/arg_check.c:270:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  return (void *)memcpy(to, from, len);
data/dmalloc-5.5.2/chunk.c:128: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		fence_bottom[FENCE_BOTTOM_SIZE];
data/dmalloc-5.5.2/chunk.c:129: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		fence_top[FENCE_TOP_SIZE];
data/dmalloc-5.5.2/chunk.c:505:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(magic3_p, &magic3, sizeof(*magic3_p));
data/dmalloc-5.5.2/chunk.c:998:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char	time_buf[64];
data/dmalloc-5.5.2/chunk.c:1006:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char	time_buf[64];
data/dmalloc-5.5.2/chunk.c:1017: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	thread_id[256];
data/dmalloc-5.5.2/chunk.c:1063: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		out[(DUMP_SPACE + FENCE_BOTTOM_SIZE + FENCE_TOP_SIZE) * 4];
data/dmalloc-5.5.2/chunk.c:1064: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		where_buf[MAX_FILE_LENGTH + 64];
data/dmalloc-5.5.2/chunk.c:1065: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		where_buf2[MAX_FILE_LENGTH + 64];
data/dmalloc-5.5.2/chunk.c:1336: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(info_p->pi_fence_bottom, fence_bottom, FENCE_BOTTOM_SIZE);
data/dmalloc-5.5.2/chunk.c:1337: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(info_p->pi_fence_top, fence_top, FENCE_TOP_SIZE);
data/dmalloc-5.5.2/chunk.c:1916:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(pos_p, (char *)&value, sizeof(value));
data/dmalloc-5.5.2/chunk.c:1919:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(pos_p, (char *)&value, max_p - pos_p);
data/dmalloc-5.5.2/chunk.c:1927:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(pos_p, (char *)&value, sizeof(value));
data/dmalloc-5.5.2/chunk.c:1930:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(pos_p, (char *)&value, max_p - pos_p);
data/dmalloc-5.5.2/chunk.c:2441: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		where_buf[MAX_FILE_LENGTH + 64], disp_buf[64];
data/dmalloc-5.5.2/chunk.c:2607: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		where_buf[MAX_FILE_LENGTH + 64];
data/dmalloc-5.5.2/chunk.c:2608: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		where_buf2[MAX_FILE_LENGTH + 64], disp_buf[64];
data/dmalloc-5.5.2/chunk.c:2826: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		where_buf[MAX_FILE_LENGTH + 64];
data/dmalloc-5.5.2/chunk.c:2827: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		where_buf2[MAX_FILE_LENGTH + 64];
data/dmalloc-5.5.2/chunk.c:2899:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(new_user_pnt, pnt_info.pi_user_start, min_size);
data/dmalloc-5.5.2/chunk.c:2955: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	where_buf[MAX_FILE_LENGTH + 64];
data/dmalloc-5.5.2/chunk.c:2956: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	where_buf2[MAX_FILE_LENGTH + 64];
data/dmalloc-5.5.2/chunk.c:3087: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		out[DUMP_SPACE * 4], *which_str;
data/dmalloc-5.5.2/chunk.c:3088: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		where_buf[MAX_FILE_LENGTH + 64], disp_buf[64];
data/dmalloc-5.5.2/compat.c:47:5:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
int	atoi(const char *str)
data/dmalloc-5.5.2/compat.c:83:6:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
long	atol(const char *str)
data/dmalloc-5.5.2/compat.c:201:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
void	*memcpy(void *dest, const void *src, DMALLOC_SIZE len)
data/dmalloc-5.5.2/compat.h:40:5:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
int	atoi(const char *str);
data/dmalloc-5.5.2/compat.h:48:6:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
long	atol(const char *str);
data/dmalloc-5.5.2/compat.h:85:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
void	*memcpy(void *dest, const void *src, DMALLOC_SIZE len);
data/dmalloc-5.5.2/dmalloc.c:364:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char	buf[1024], *tok_p, *buf_p;
data/dmalloc-5.5.2/dmalloc.c:451: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	next_token[64];
data/dmalloc-5.5.2/dmalloc.c:455:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  infile = fopen(path, "r");
data/dmalloc-5.5.2/dmalloc.c:502: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		path[1024], *path_p;
data/dmalloc-5.5.2/dmalloc.c:618: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		path[1024], *path_p, token[80];
data/dmalloc-5.5.2/dmalloc.c:628:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    rc_file = fopen(DEFAULT_CONFIG, "r");
data/dmalloc-5.5.2/dmalloc.c:642: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).
      rc_file = fopen(path, "r");
data/dmalloc-5.5.2/dmalloc.c:652:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    rc_file = fopen(inpath, "r");
data/dmalloc-5.5.2/dmalloc.c:699: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		*log_path, *loc_start_file, token[64];
data/dmalloc-5.5.2/dmalloc.c:796: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	comm[1024];
data/dmalloc-5.5.2/dmalloc.c:865:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char		buf[1024];
data/dmalloc-5.5.2/dmalloc_argv.c:47: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	argv_program[PROGRAM_NAME + 1] = "Unknown";
data/dmalloc-5.5.2/dmalloc_argv.c:1307: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).
    *(short *)var = (short)atoi(arg);
data/dmalloc-5.5.2/dmalloc_argv.c:1311:46:  [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).
    *(unsigned short *)var = (unsigned short)atoi(arg);
data/dmalloc-5.5.2/dmalloc_argv.c:1315: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).
    *(int *)var = atoi(arg);
data/dmalloc-5.5.2/dmalloc_argv.c:1319: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).
    *(unsigned int *)var = atoi(arg);
data/dmalloc-5.5.2/dmalloc_argv.c:1323:20:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *(long *)var = atol(arg);
data/dmalloc-5.5.2/dmalloc_argv.c:1327:29:  [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).
    *(unsigned long *)var = atol(arg);
data/dmalloc-5.5.2/dmalloc_argv.c:1356:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      *(int *)var = atoi(arg);
data/dmalloc-5.5.2/dmalloc_argv.c:1366:13:  [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).
      val = atol(arg);
data/dmalloc-5.5.2/dmalloc_argv.c:1394:28:  [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).
      val = (unsigned long)atol(arg);
data/dmalloc-5.5.2/dmalloc_argv.c:1569:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char	binary[2 + 128 + 1], *bin_bounds_p, *bin_p = binary;
data/dmalloc-5.5.2/dmalloc_argv.c:1734:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char		buf[256];
data/dmalloc-5.5.2/dmalloc_argv.c:2169: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	line[FILE_LINE_SIZE], *line_p;
data/dmalloc-5.5.2/dmalloc_argv.c:2176:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    infile = fopen(path, "r");
data/dmalloc-5.5.2/dmalloc_argv.c:2852: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	**vect_p, env_name[1024], *environ_p;
data/dmalloc-5.5.2/dmalloc_argv.c:3605: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		details[128];
data/dmalloc-5.5.2/dmalloc_argv.h:187: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	argv_program[/* PROGRAM_NAME + 1 */];
data/dmalloc-5.5.2/dmalloc_fc_t.c:129:3:  [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(pnt, "1234");
data/dmalloc-5.5.2/dmalloc_fc_t.c:131:9:  [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).
  ret = atoi(pnt);
data/dmalloc-5.5.2/dmalloc_fc_t.c:145:3:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  atoi(pnt);
data/dmalloc-5.5.2/dmalloc_fc_t.c:158:3:  [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(pnt, "1234");
data/dmalloc-5.5.2/dmalloc_fc_t.c:160:9:  [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).
  ret = atol(pnt);
data/dmalloc-5.5.2/dmalloc_fc_t.c:174:3:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  atol(pnt);
data/dmalloc-5.5.2/dmalloc_fc_t.c:217:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  bcopy(val, pnt, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:230:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  bcopy(val, pnt, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:243:3:  [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(pnt, "foo");
data/dmalloc-5.5.2/dmalloc_fc_t.c:395:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:408:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:447:3:  [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(pnt, "foo");
data/dmalloc-5.5.2/dmalloc_t.c:162: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	line[80];
data/dmalloc-5.5.2/dmalloc_t.c:779:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt, "1234", size);
data/dmalloc-5.5.2/dmalloc_t.c:795:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt, "12345", size);
data/dmalloc-5.5.2/dmalloc_t.c:820:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt, "1234", size);
data/dmalloc-5.5.2/dmalloc_t.c:836:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt, "12345", size);
data/dmalloc-5.5.2/dmalloc_t.c:984:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt, "1234", size);
data/dmalloc-5.5.2/dmalloc_t.c:1001:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt, "12345", size);
data/dmalloc-5.5.2/dmalloc_t.c:1237:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt, "1234", size);
data/dmalloc-5.5.2/dmalloc_t.c:1253:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt, "12345", size);
data/dmalloc-5.5.2/dmalloc_t.c:1278:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt, "abcd", size);
data/dmalloc-5.5.2/dmalloc_t.c:1279:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt2, "ABCD", size);
data/dmalloc-5.5.2/dmalloc_t.c:1295:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt, "abcde", size);
data/dmalloc-5.5.2/dmalloc_t.c:1296:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt2, "ABCDE", size);
data/dmalloc-5.5.2/dmalloc_t.c:1317:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt, "ab", 3);
data/dmalloc-5.5.2/dmalloc_t.c:1318:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt2, "cd", 3);
data/dmalloc-5.5.2/dmalloc_t.c:1334:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt, "ab", 3);
data/dmalloc-5.5.2/dmalloc_t.c:1335:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt2, "abc", 4);
data/dmalloc-5.5.2/dmalloc_t.c:1362:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt, "1234", size);
data/dmalloc-5.5.2/dmalloc_t.c:1378:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt, "12345", size);
data/dmalloc-5.5.2/dmalloc_t.c:1403:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt, "abcd", size);
data/dmalloc-5.5.2/dmalloc_t.c:1404:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt2, "abcd", size);
data/dmalloc-5.5.2/dmalloc_t.c:1420:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt, "abcde", size);
data/dmalloc-5.5.2/dmalloc_t.c:1421:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt2, "abcde", size);
data/dmalloc-5.5.2/dmalloc_t.c:1442:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt2, "abcd", size);
data/dmalloc-5.5.2/dmalloc_t.c:1460:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt2, "abcde", size + 1);
data/dmalloc-5.5.2/dmalloc_t.c:1487:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt, "abcd", size);
data/dmalloc-5.5.2/dmalloc_t.c:1504:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pnt, "abcde", size);
data/dmalloc-5.5.2/dmalloc_t.c:2207: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		setup[128];
data/dmalloc-5.5.2/dmalloc_t.c:2229:18:  [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.
    save_ch = *((char *)pnts[0] + BUF_SIZE);
data/dmalloc-5.5.2/dmalloc_t.c:2230: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.
    *((char *)pnts[0] + BUF_SIZE) = '\0';
data/dmalloc-5.5.2/dmalloc_t.c:2250: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.
    *((char *)pnts[0] + BUF_SIZE) = save_ch;
data/dmalloc-5.5.2/dmalloc_t.c:2277:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	save_ch = *((char *)pnts[0] + BUF_SIZE);
data/dmalloc-5.5.2/dmalloc_t.c:2278: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 *)pnts[0] + BUF_SIZE) = '\0';
data/dmalloc-5.5.2/dmalloc_t.c:2307:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      *((char *)pnts[0] + BUF_SIZE) = save_ch;
data/dmalloc-5.5.2/dmalloc_t.c:2328: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		setup[128];
data/dmalloc-5.5.2/dmalloc_t.c:2421: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		setup[128];
data/dmalloc-5.5.2/dmalloc_t.c:3187: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[20];
data/dmalloc-5.5.2/dmalloc_t.c:3637: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		line[128], *line_p;
data/dmalloc-5.5.2/dmalloc_t.c:3699:14:  [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 = atoi(line);
data/dmalloc-5.5.2/dmalloc_t.c:3711:14:  [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 = atoi(line);
data/dmalloc-5.5.2/dmalloc_t.c:3726:14:  [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 = atoi(line);
data/dmalloc-5.5.2/dmalloc_t.c:3743:14:  [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 = atoi(line);
data/dmalloc-5.5.2/dmalloc_t.c:3758: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).
      alignment = atoi(line);
data/dmalloc-5.5.2/dmalloc_t.c:3763:14:  [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 = atoi(line);
data/dmalloc-5.5.2/dmalloc_t.c:3776:14:  [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 = atoi(line);
data/dmalloc-5.5.2/dmalloc_t.c:3818:27:  [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).
      dmalloc_log_changed(atoi(line), 1, 1, 1);
data/dmalloc-5.5.2/dmalloc_t.c:3827:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy((char *)pnt, overwrite, strlen(overwrite));
data/dmalloc-5.5.2/dmalloc_t.c:3841:14:  [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 = atoi(line);
data/dmalloc-5.5.2/dmalloc_t.c:3859:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	iter_n = atoi(line);
data/dmalloc-5.5.2/dmalloc_t.c:3915: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	file_line[64];
data/dmalloc-5.5.2/dmalloc_t.c:3918:5:  [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(file_line, "unknown");
data/dmalloc-5.5.2/dmalloc_tab.c:318:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(holder_p, outer_p, ele_size);
data/dmalloc-5.5.2/dmalloc_tab.c:320:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(inner_p, holder_p, ele_size);
data/dmalloc-5.5.2/dmalloc_tab.c:351: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	*firsts[MAX_QSORT_SPLITS], *lasts[MAX_QSORT_SPLITS];
data/dmalloc-5.5.2/dmalloc_tab.c:384: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(&pivot, pivot_p, ele_size);
data/dmalloc-5.5.2/dmalloc_tab.c:762: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		source[64];
data/dmalloc-5.5.2/env.c:67: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		log_path[512]	= { '\0' }; /* storage for env path */
data/dmalloc-5.5.2/env.c:68: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		start_file[512] = { '\0' }; /* file to start at */
data/dmalloc-5.5.2/env.c:141:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    SET_POINTER(start_line_p, atoi(start_p + 1));
data/dmalloc-5.5.2/env.c:179:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char		buf[1024];
data/dmalloc-5.5.2/env.c:250: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).
      SET_POINTER(lock_on_p, atoi(this_p));
data/dmalloc-5.5.2/error.c:130: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	error_str[1024];		/* error string buffer */
data/dmalloc-5.5.2/error.c:131: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	message_str[1024];		/* message string buffer */
data/dmalloc-5.5.2/error.c:179:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char	our_host[128];
data/dmalloc-5.5.2/error.c:189:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char		id_str[256];
data/dmalloc-5.5.2/error.c:262: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	log_path[1024];
data/dmalloc-5.5.2/error.c:274:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  outfile_fd = open(log_path, O_WRONLY | O_CREAT | O_TRUNC, 0666);
data/dmalloc-5.5.2/error.c:305: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	time_buf[64];
data/dmalloc-5.5.2/error.c:313: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	time_buf[64];
data/dmalloc-5.5.2/heap.c:84:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char	block_o_bytes[INTERNAL_MEMORY_SPACE];
data/dmalloc-5.5.2/heap.c:116:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char	str[128];
data/dmalloc-5.5.2/malloc.c:260: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			where_buf[64];
data/dmalloc-5.5.2/malloc.c:288:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char	options[1024];
data/dmalloc-5.5.2/malloc.c:350: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		env_buf[256];
data/dmalloc-5.5.2/malloc.c:682: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		time_buf1[64], time_buf2[64];
data/dmalloc-5.5.2/malloc.c:692: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	time_buf1[64], time_buf2[64];
data/dmalloc-5.5.2/malloc.c:815: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	mess[1024], desc[128];
data/dmalloc-5.5.2/malloc.c:989: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	mess[1024], desc[128];
data/dmalloc-5.5.2/malloc.c:1386:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (void)memcpy(buf, string, len);
data/dmalloc-5.5.2/malloc.c:1444:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (void)memcpy(buf, string, size);
data/dmalloc-5.5.2/arg_check.c:522:18:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
  return (char *)strncat(to, from, len);
data/dmalloc-5.5.2/arg_check.c:587:18:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  return (char *)strncpy(to, from, len);
data/dmalloc-5.5.2/compat.c:151:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  (void)strncpy(buf, format, buf_size - 1);
data/dmalloc-5.5.2/compat.c:343:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
int	strlen(const char *str)
data/dmalloc-5.5.2/compat.c:377:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
char	*strncpy(char *str1, const char *str2, const int len)
data/dmalloc-5.5.2/compat.h:133:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
int	strlen(const char *str);
data/dmalloc-5.5.2/compat.h:150:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
char	*strncpy(char *str1, const char *str2, const int len);
data/dmalloc-5.5.2/contrib/Xmalloc.c:25: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).
  (void)write(STDERR, name, strlen(name));
data/dmalloc-5.5.2/dmalloc.c:293: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).
	len = strlen(str);
data/dmalloc-5.5.2/dmalloc.c:394:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void)strncpy(token, tok_p, token_size);
data/dmalloc-5.5.2/dmalloc_argv.c:313:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(str);
data/dmalloc-5.5.2/dmalloc_argv.c:543: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).
  col_c += USAGE_LABEL_LENGTH + strlen(argv_program);
data/dmalloc-5.5.2/dmalloc_argv.c:638:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      var_len = strlen(arg_p->ar_var_label);
data/dmalloc-5.5.2/dmalloc_argv.c:739: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).
    var_len = strlen(arg_p->ar_var_label);
data/dmalloc-5.5.2/dmalloc_argv.c:909:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      col_c += LONG_PREFIX_LENGTH + MIN(len, (int)strlen(arg_p->ar_long_arg));
data/dmalloc-5.5.2/dmalloc_argv.c:1501:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(buf, "true (! 0)", buf_size);
data/dmalloc-5.5.2/dmalloc_argv.c:1504:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(buf, "false (0)", buf_size);
data/dmalloc-5.5.2/dmalloc_argv.c:1507:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/dmalloc-5.5.2/dmalloc_argv.c:1516:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(buf, "(null)", buf_size);
data/dmalloc-5.5.2/dmalloc_argv.c:1518:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen(buf);
data/dmalloc-5.5.2/dmalloc_argv.c:1527:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/dmalloc-5.5.2/dmalloc_argv.c:1532:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/dmalloc-5.5.2/dmalloc_argv.c:1537:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/dmalloc-5.5.2/dmalloc_argv.c:1542:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/dmalloc-5.5.2/dmalloc_argv.c:1547:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/dmalloc-5.5.2/dmalloc_argv.c:1552:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/dmalloc-5.5.2/dmalloc_argv.c:1557:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/dmalloc-5.5.2/dmalloc_argv.c:1562:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/dmalloc-5.5.2/dmalloc_argv.c:1572:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
	strncpy(buf, "0", buf_size);
data/dmalloc-5.5.2/dmalloc_argv.c:1603:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, binary, buf_size);
data/dmalloc-5.5.2/dmalloc_argv.c:1607:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen(buf);
data/dmalloc-5.5.2/dmalloc_argv.c:1613:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
      (void)strncpy(buf, "0", buf_size);
data/dmalloc-5.5.2/dmalloc_argv.c:1619:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/dmalloc-5.5.2/dmalloc_argv.c:1624: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.
      (void)strcpy(buf, "0");
data/dmalloc-5.5.2/dmalloc_argv.c:1629:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/dmalloc-5.5.2/dmalloc_argv.c:1634:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/dmalloc-5.5.2/dmalloc_argv.c:1642:8:  [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.
	(void)strcpy(buf, "0");
data/dmalloc-5.5.2/dmalloc_argv.c:1660:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen(buf);
data/dmalloc-5.5.2/dmalloc_argv.c:1669:8:  [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.
	(void)strcpy(buf, "0");
data/dmalloc-5.5.2/dmalloc_argv.c:1687:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen(buf);
data/dmalloc-5.5.2/dmalloc_argv.c:1695:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(buf, "true (! 0)", buf_size);
data/dmalloc-5.5.2/dmalloc_argv.c:1698:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(buf, "false (0)", buf_size);
data/dmalloc-5.5.2/dmalloc_argv.c:1701:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/dmalloc-5.5.2/dmalloc_argv.c:1705:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(buf, "(unknown)", buf_size);
data/dmalloc-5.5.2/dmalloc_argv.c:1707:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/dmalloc-5.5.2/dmalloc_argv.c:1760:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					  (int)strlen(arg_p->ar_long_arg));
data/dmalloc-5.5.2/dmalloc_argv.c:1785: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).
	tlen = strlen(type_p->at_name);
data/dmalloc-5.5.2/dmalloc_argv.c:2479:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen(*arg_p) - LONG_PREFIX_LENGTH;
data/dmalloc-5.5.2/dmalloc_argv.c:2664:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen(*arg_p) - SHORT_PREFIX_LENGTH;
data/dmalloc-5.5.2/dmalloc_argv.c:2945:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(GLOBAL_CLOSE);
data/dmalloc-5.5.2/dmalloc_argv.c:2970:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(GLOBAL_LASTTOG);
data/dmalloc-5.5.2/dmalloc_argv.c:2995:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(GLOBAL_ENV);
data/dmalloc-5.5.2/dmalloc_argv.c:3020:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(GLOBAL_ERROR);
data/dmalloc-5.5.2/dmalloc_argv.c:3051:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(GLOBAL_MULTI);
data/dmalloc-5.5.2/dmalloc_argv.c:3070:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(GLOBAL_USAGE);
data/dmalloc-5.5.2/dmalloc_argv.c:3185:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  (void)strncpy(argv_program, prog_p, PROGRAM_NAME);
data/dmalloc-5.5.2/dmalloc_argv.c:3617:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
      strncpy(buf, "0 array entries", buf_size);
data/dmalloc-5.5.2/dmalloc_argv.c:3619:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      ret = strlen(buf);
data/dmalloc-5.5.2/dmalloc_argv.c:3631:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf + len, details, buf_size - len);
data/dmalloc-5.5.2/dmalloc_argv.c:3633: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).
	ret = strlen(buf);
data/dmalloc-5.5.2/dmalloc_fc_t.c:187: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).
  memmove(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:203: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).
  memmove(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:217: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).
  bcopy(val, pnt, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:230: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).
  bcopy(val, pnt, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:292: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).
  memmove(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:306: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).
  ret = memccpy(pnt, val, 'z', strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:318: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 (memcmp(pnt, val, strlen(val)) != 0) {
data/dmalloc-5.5.2/dmalloc_fc_t.c:326: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).
  memccpy(pnt, val, 'z', strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:338: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).
  memmove(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:340: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).
  ret = memchr(pnt, 't', strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:352: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).
  memchr(pnt, 'u', strlen(val) + 1);
data/dmalloc-5.5.2/dmalloc_fc_t.c:365: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).
  memmove(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:367: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).
  ret = memcmp(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:381: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).
  memmove(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:395: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).
  memcpy(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:400: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 (memcmp(pnt, val, strlen(val)) != 0) {
data/dmalloc-5.5.2/dmalloc_fc_t.c:408: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).
  memcpy(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:421: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).
  memmove(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:426: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 (memcmp(pnt, val, strlen(val)) != 0) {
data/dmalloc-5.5.2/dmalloc_fc_t.c:434: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).
  memmove(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:496: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).
  memmove(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:528: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).
  memmove(pnt, big_val, strlen(big_val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:548: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 (memcmp(pnt, val, strlen(val)) != 0) {
data/dmalloc-5.5.2/dmalloc_fc_t.c:554: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).
  if (memcmp(pnt + strlen(val), val, strlen(val)) != 0) {
data/dmalloc-5.5.2/dmalloc_fc_t.c:554:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (memcmp(pnt + strlen(val), val, strlen(val)) != 0) {
data/dmalloc-5.5.2/dmalloc_fc_t.c:588: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).
  memmove(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:618: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).
  memmove(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:637: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 (memcmp(pnt, val, strlen(val)) != 0) {
data/dmalloc-5.5.2/dmalloc_fc_t.c:686: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).
  ret = strlen(pnt);
data/dmalloc-5.5.2/dmalloc_fc_t.c:699: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).
  memmove(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:701:3:  [1] (buffer) strlen:
  Does not handle 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(pnt);
data/dmalloc-5.5.2/dmalloc_fc_t.c:715: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).
  memmove(pnt, big_val, strlen(big_val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:717:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ret = strncasecmp(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:731: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).
  strncasecmp(pnt, big_val, strlen(big_val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:745:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
  strncat(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:745: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).
  strncat(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:750: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 (memcmp(pnt, val, strlen(val)) != 0) {
data/dmalloc-5.5.2/dmalloc_fc_t.c:756: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).
  if (memcmp(pnt + strlen(val), val, strlen(val)) != 0) {
data/dmalloc-5.5.2/dmalloc_fc_t.c:756:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (memcmp(pnt + strlen(val), val, strlen(val)) != 0) {
data/dmalloc-5.5.2/dmalloc_fc_t.c:763:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
  strncat(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:763: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).
  strncat(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:776: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).
  memmove(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:778:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ret = strncmp(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:791: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).
  strncmp(pnt, val, strlen(val) + 1);
data/dmalloc-5.5.2/dmalloc_fc_t.c:804:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:804: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).
  strncpy(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:809: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 (memcmp(pnt, val, strlen(val)) != 0) {
data/dmalloc-5.5.2/dmalloc_fc_t.c:817:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:817: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).
  strncpy(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:844: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).
  memmove(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:872: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).
  memmove(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:893: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 (ret != strlen(val)) {
data/dmalloc-5.5.2/dmalloc_fc_t.c:901: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).
  memmove(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:929: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).
  memmove(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_fc_t.c:958: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).
  memmove(pnt, val, strlen(val));
data/dmalloc-5.5.2/dmalloc_t.c:493: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).
	amount = _dmalloc_rand() % strlen(str);
data/dmalloc-5.5.2/dmalloc_t.c:515: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).
	amount = _dmalloc_rand() % strlen(str);
data/dmalloc-5.5.2/dmalloc_t.c:3652:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(line);
data/dmalloc-5.5.2/dmalloc_t.c:3765:29:  [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.
		   alignment, size, (long)memalign(alignment, size));
data/dmalloc-5.5.2/dmalloc_t.c:3827:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      memcpy((char *)pnt, overwrite, strlen(overwrite));
data/dmalloc-5.5.2/dmalloc_tab.c:183:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    bucket = hash((unsigned char *)file, strlen(file), 0);
data/dmalloc-5.5.2/dmalloc_tab.c:803:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(source, "Other pointers", sizeof(source));
data/dmalloc-5.5.2/env.c:136:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (void)strncpy(start_file, start_all, sizeof(start_file));
data/dmalloc-5.5.2/env.c:197:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  (void)strncpy(buf, env_str, sizeof(buf));
data/dmalloc-5.5.2/env.c:222:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(ADDRESS_LABEL);
data/dmalloc-5.5.2/env.c:230:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(DEBUG_LABEL);
data/dmalloc-5.5.2/env.c:238:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(INTERVAL_LABEL);
data/dmalloc-5.5.2/env.c:246:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(LOCK_ON_LABEL);
data/dmalloc-5.5.2/env.c:255:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(LOGFILE_LABEL);
data/dmalloc-5.5.2/env.c:259:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      (void)strncpy(log_path, this_p, sizeof(log_path));
data/dmalloc-5.5.2/env.c:269:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(START_LABEL);
data/dmalloc-5.5.2/env.c:279:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(LIMIT_LABEL);
data/dmalloc-5.5.2/malloc.c:295:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(options, option_str, sizeof(options));
data/dmalloc-5.5.2/malloc.c:821:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (write(STDERR, mess, strlen(mess)) < 0) {
data/dmalloc-5.5.2/malloc.c:994:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (write(STDERR, mess, strlen(mess)) < 0) {
data/dmalloc-5.5.2/malloc.c:1103: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).
    size = strlen(string);
data/dmalloc-5.5.2/malloc.c:1118:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(new_string, string, size);
data/dmalloc-5.5.2/malloc.c:1271: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/dmalloc-5.5.2/malloc.c:1272: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.
DMALLOC_PNT	memalign(DMALLOC_SIZE alignment, DMALLOC_SIZE size)
data/dmalloc-5.5.2/malloc.c:1381:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(string) + 1;
data/dmalloc-5.5.2/malloc_funcs.h:131: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.
DMALLOC_PNT	memalign(DMALLOC_SIZE alignment, DMALLOC_SIZE size);

ANALYSIS SUMMARY:

Hits = 327
Lines analyzed = 23210 in approximately 0.65 seconds (35463 lines/second)
Physical Source Lines of Code (SLOC) = 13054
Hits@level = [0] 552 [1] 141 [2] 155 [3]   8 [4]  23 [5]   0
Hits@level+ = [0+] 879 [1+] 327 [2+] 186 [3+]  31 [4+]  23 [5+]   0
Hits/KSLOC@level+ = [0+] 67.3357 [1+] 25.0498 [2+] 14.2485 [3+] 2.37475 [4+] 1.76191 [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.