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/tzc-2.6.15/getenv.c
Examining data/tzc-2.6.15/lread.c
Examining data/tzc-2.6.15/lread.h
Examining data/tzc-2.6.15/tzc.c
Examining data/tzc-2.6.15/ZCkAuth.c

FINAL RESULTS:

data/tzc-2.6.15/tzc.c:360:4:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
   execvp(globals->argv[0], globals->argv);
data/tzc-2.6.15/tzc.c:478:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(setwgfile,"WGFILE=%s",st);
data/tzc-2.6.15/tzc.c:495:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(fn,"%s/.zephyr.subs.tzc",getenv("HOME"));
data/tzc-2.6.15/tzc.c:496:7:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      execlp(ZCTL_BINARY,"zctl","load",fn,(char *)0);
data/tzc-2.6.15/tzc.c:649:5:  [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.
    vsnprintf(buf1, sizeof(buf1), fmt, ap);
data/tzc-2.6.15/tzc.c:711:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      (void) sprintf(bfr, "while sending notice to %s", 
data/tzc-2.6.15/tzc.c:841:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	     sprintf(newrecip,"%s@%s",recipient,rlm);
data/tzc-2.6.15/tzc.c:1079:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(setdisplay, "DISPLAY=%s", globals->location);
data/tzc-2.6.15/tzc.c:1211:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(err, "bad tzcfodder key: `%s'", key_str);
data/tzc-2.6.15/tzc.c:1508:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(p, notice->z_sender);
data/tzc-2.6.15/tzc.c:1514:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(p, time_string);
data/tzc-2.6.15/tzc.c:1517:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(p, notice->z_class_inst);
data/tzc-2.6.15/tzc.c:1523:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(p, time_secs);
data/tzc-2.6.15/tzc.c:1526:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(p, archived);
data/tzc-2.6.15/tzc.c:1648: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(instance, notice->z_class_inst);
data/tzc-2.6.15/tzc.c:1649: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(instance, notice->z_recipient);
data/tzc-2.6.15/tzc.c:1657: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(instance, notice->z_class_inst);
data/tzc-2.6.15/tzc.c:1659: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(recipient, notice->z_recipient);
data/tzc-2.6.15/tzc.c:1903:4:  [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(instance, TZC_HEARTBEAT_INSTANCE);
data/tzc-2.6.15/getenv.c:18:1:  [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.
getenv(name)
data/tzc-2.6.15/tzc.c:157:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define random lrand48
data/tzc-2.6.15/tzc.c:157:16:  [3] (random) lrand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define random lrand48
data/tzc-2.6.15/tzc.c:158:9:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define srandom srand48
data/tzc-2.6.15/tzc.c:471: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.
  extern char *getenv();
data/tzc-2.6.15/tzc.c:473:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  portfile = getenv("WGFILE");
data/tzc-2.6.15/tzc.c:495:40:  [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.
      sprintf(fn,"%s/.zephyr.subs.tzc",getenv("HOME"));
data/tzc-2.6.15/tzc.c:1321:26:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                        (random() % 1000 - 500) * fuzz / 500;
data/tzc-2.6.15/tzc.c:1979:4:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
   srandom(time(0)+getpid());
data/tzc-2.6.15/tzc.c:1997:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
   while ((sw = getopt(argc, argv, "sa:e:p:l:noidt:")) != EOF)
data/tzc-2.6.15/lread.c:86:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(s, VSDATA(v), VSLENGTH(v));
data/tzc-2.6.15/lread.c:155: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(newbuf, g->strbuf, g->strbuflen);
data/tzc-2.6.15/lread.c:247: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(v->value.s.string, g->strbuf, v->value.s.length);
data/tzc-2.6.15/lread.c:342: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).
      v->value.integer.i = atoi(g->strbuf);
data/tzc-2.6.15/lread.c:354: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(v->value.s.string, g->strbuf, v->value.s.length);
data/tzc-2.6.15/lread.c:627:4:  [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[BUFLEN];	/* this will have to be dynamically expanded */
data/tzc-2.6.15/tzc.c:298: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 fname[50];
data/tzc-2.6.15/tzc.c:301:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(fname, "/tmp/tzc-log.%ld", (long) getpid());
data/tzc-2.6.15/tzc.c:302:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((f = fopen(fname,"a")) != NULL) {
data/tzc-2.6.15/tzc.c:468: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 st[1024];
data/tzc-2.6.15/tzc.c:469: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 setwgfile[1200];
data/tzc-2.6.15/tzc.c:476:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(st,"/tmp/wg.%ld",(long) getuid());
data/tzc-2.6.15/tzc.c:485:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = fopen(portfile,"w");
data/tzc-2.6.15/tzc.c:494: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 fn[1024];
data/tzc-2.6.15/tzc.c:647: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 buf1[4096], errmsg[4096];
data/tzc-2.6.15/tzc.c:692:4:  [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 bfr[BUFSIZ];
data/tzc-2.6.15/tzc.c:810:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(buffer_mark, VSDATA(one_field), VSLENGTH(one_field));
data/tzc-2.6.15/tzc.c:1250: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_buf, globals->ebuf, globals->ebufptr - globals->ebuf);
data/tzc-2.6.15/tzc.c:1278:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char thestr[4096];
data/tzc-2.6.15/tzc.c:1292: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(globals->ebuf, globals->ebuf + ret,
data/tzc-2.6.15/tzc.c:1473: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 time_secs[20];
data/tzc-2.6.15/tzc.c:1478:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(time_secs, "%d", notice->z_time.tv_sec);
data/tzc-2.6.15/tzc.c:1690:4:  [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[80];
data/tzc-2.6.15/tzc.c:1691:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(buf, "tv_sec=%lu tv_usec=%lu", 
data/tzc-2.6.15/tzc.c:1728: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(p, notice->z_message, len);
data/tzc-2.6.15/tzc.c:1736:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	 FILE *f = fopen("/tmp/blah","a");
data/tzc-2.6.15/tzc.c:1986:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(globals->location,"tzc.%d",(int) getpid());
data/tzc-2.6.15/tzc.c:2013:18:  [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).
	 restart_rate = atoi(optarg);
data/tzc-2.6.15/tzc.c:2016: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).
	 globals->heartbeat.period = atoi(optarg);
data/tzc-2.6.15/tzc.c:2025:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    FILE *f = fopen(optarg, "w");
data/tzc-2.6.15/ZCkAuth.c:70:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                strlen(notice->z_default_format)+1-
data/tzc-2.6.15/lread.c:57:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   VSLENGTH(v) = strlen(s);
data/tzc-2.6.15/lread.c:77:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   VSLENGTH(v) = strlen(s);
data/tzc-2.6.15/lread.c:636:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ret = read(0, buf + bufpos, BUFLEN - bufpos);
data/tzc-2.6.15/tzc.c:840:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	     newrecip = (char *) malloc(strlen(recipient)+1+strlen(realm)+1);
data/tzc-2.6.15/tzc.c:840:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	     newrecip = (char *) malloc(strlen(recipient)+1+strlen(realm)+1);
data/tzc-2.6.15/tzc.c:1072: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).
      char *setdisplay = malloc(strlen("DISPLAY=")
data/tzc-2.6.15/tzc.c:1073:7:  [1] (buffer) strlen:
  Does not handle 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(globals->location)
data/tzc-2.6.15/tzc.c:1257:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   ret = read(0, globals->ebufptr,
data/tzc-2.6.15/tzc.c:1279:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(thestr,globals->ebuf,MIN(len,4096));
data/tzc-2.6.15/tzc.c:1490:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  total_len = (strlen(notice->z_sender)       + 1
data/tzc-2.6.15/tzc.c:1492: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).
	       + strlen(time_string)          + 1
data/tzc-2.6.15/tzc.c:1493: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).
	       + strlen(notice->z_class_inst) + 1
data/tzc-2.6.15/tzc.c:1495: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).
	       + strlen(time_secs)	      + 1
data/tzc-2.6.15/tzc.c:1496: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).
	       + strlen(archived)             + 1
data/tzc-2.6.15/tzc.c:1509:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    p += strlen(notice->z_sender) + 1;
data/tzc-2.6.15/tzc.c:1511:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(p, sig, sig_len);
data/tzc-2.6.15/tzc.c:1515:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    p += strlen(time_string) + 1;
data/tzc-2.6.15/tzc.c:1518:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    p += strlen(notice->z_class_inst) + 1;
data/tzc-2.6.15/tzc.c:1520:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(p, body, body_len);
data/tzc-2.6.15/tzc.c:1524:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    p += strlen(time_secs) + 1;
data/tzc-2.6.15/tzc.c:1527:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    p += strlen(archived) + 1;
data/tzc-2.6.15/tzc.c:1646:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	 instance = (char *) malloc(strlen(notice->z_class_inst)+
data/tzc-2.6.15/tzc.c:1647:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				    strlen(notice->z_recipient)+1);
data/tzc-2.6.15/tzc.c:1656:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	 instance = (char *) malloc(strlen(notice->z_class_inst)+1);
data/tzc-2.6.15/tzc.c:1658: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).
	 recipient = (char *) malloc(strlen(notice->z_recipient)+1);
data/tzc-2.6.15/tzc.c:1743: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).
	 i += strlen(p+i);
data/tzc-2.6.15/tzc.c:1906:16:  [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.
   recipient = strcpy(malloc(sizeof("")),"");
data/tzc-2.6.15/tzc.c:1981: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).
   globals->location = malloc(strlen("tzc.")+16+1);

ANALYSIS SUMMARY:

Hits = 88
Lines analyzed = 3008 in approximately 0.09 seconds (34618 lines/second)
Physical Source Lines of Code (SLOC) = 2315
Hits@level = [0]  72 [1]  29 [2]  30 [3]  10 [4]  19 [5]   0
Hits@level+ = [0+] 160 [1+]  88 [2+]  59 [3+]  29 [4+]  19 [5+]   0
Hits/KSLOC@level+ = [0+] 69.1145 [1+] 38.013 [2+] 25.486 [3+] 12.527 [4+] 8.20734 [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.