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/tinyirc-1.1.dfsg.1/tinyircd.c
Examining data/tinyirc-1.1.dfsg.1/tinyirc.c

FINAL RESULTS:

data/tinyirc-1.1.dfsg.1/tinyirc.c:139: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(newobj->name, item);
data/tinyirc-1.1.dfsg.1/tinyirc.c:262:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(lineout, "MODE :%s\n", OBJ);
data/tinyirc-1.1.dfsg.1/tinyirc.c:323:2:  [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(IRCNAME, TOK[2]);
data/tinyirc-1.1.dfsg.1/tinyirc.c:365:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(lineout, "NOTICE %s :%s\n", TOK[0], TOK[3]);
data/tinyirc-1.1.dfsg.1/tinyirc.c:370:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(lineout, "NOTICE %s :\01VERSION " RELEASE " :*ix\01\n",
data/tinyirc-1.1.dfsg.1/tinyirc.c:429:6:  [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(newobj->mode, TOK[4]);
data/tinyirc-1.1.dfsg.1/tinyirc.c:437:2:  [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(lineout, ctime(&tmptime));
data/tinyirc-1.1.dfsg.1/tinyirc.c:447:2:  [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(lineout, ctime(&tmptime));
data/tinyirc-1.1.dfsg.1/tinyirc.c:458:2:  [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(lineout, ctime(&tmptime));
data/tinyirc-1.1.dfsg.1/tinyirc.c:488:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(lineout, "NICK :%s\n", IRCNAME);
data/tinyirc-1.1.dfsg.1/tinyirc.c:491:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(lineout, AUTOJOIN);
data/tinyirc-1.1.dfsg.1/tinyirc.c:574:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(lineout, "PONG :%s\n", TOK[1]);
data/tinyirc-1.1.dfsg.1/tinyirc.c:631: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(inputbuf, linein);
data/tinyirc-1.1.dfsg.1/tinyirc.c:692:2:  [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(lineout, clist[i]);
data/tinyirc-1.1.dfsg.1/tinyirc.c:696:6:  [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(lineout, " :" RELEASE);
data/tinyirc-1.1.dfsg.1/tinyirc.c:710:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(&lineout[c], "%s%s", ((j == numargs[i] &&
data/tinyirc-1.1.dfsg.1/tinyirc.c:726:6:  [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(&linein[1], encoded);
data/tinyirc-1.1.dfsg.1/tinyirc.c:733:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(lineout, "PRIVMSG %s :%s\n", OBJ, linein);
data/tinyirc-1.1.dfsg.1/tinyirc.c:946:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(lineout, "USER %s * * :%s\n", IRCLOGIN, IRCLOGIN);
data/tinyirc-1.1.dfsg.1/tinyirc.c:949:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(lineout, "NICK :%s\n", IRCNAME);
data/tinyirc-1.1.dfsg.1/tinyirc.c:952:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf(lineout, AUTOJOIN);
data/tinyirc-1.1.dfsg.1/tinyirc.c:956:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		    sprintf(lineout, "JOIN %s\n", OBJ);
data/tinyirc-1.1.dfsg.1/tinyirc.c:1058:6:  [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(IRCLOGIN, userinfo->pw_name);
data/tinyirc-1.1.dfsg.1/tinyirc.c:1062:2:  [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(ut.ut_line, isatty(0) ? strrchr(ttyname(0), '/') + 1 : "");
data/tinyirc-1.1.dfsg.1/tinyirc.c:1076:2:  [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(IRCGECOS, tmp);
data/tinyirc-1.1.dfsg.1/tinyirc.c:1081:2:  [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(IRCGECOS, ircgecos);  /* Use default value */
data/tinyirc-1.1.dfsg.1/tinyircd.c:108:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(lineout, "NICK :%s\n", IRCNAME);
data/tinyirc-1.1.dfsg.1/tinyircd.c:110:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(lineout, "USER %s * * :%s\n", IRCLOGIN, IRCGECOS);
data/tinyirc-1.1.dfsg.1/tinyircd.c:126:2:  [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(hostname, DEFAULTSERVER);
data/tinyirc-1.1.dfsg.1/tinyircd.c:145: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(hostname, argv[i]);
data/tinyirc-1.1.dfsg.1/tinyircd.c:155:2:  [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(IRCNAME, IRCGECOS);
data/tinyirc-1.1.dfsg.1/tinyircd.c:165:2:  [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(IRCLOGIN, userinfo->pw_name);
data/tinyirc-1.1.dfsg.1/tinyircd.c:167:2:  [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(ut.ut_line, strrchr(ttyname(0), '/') + 1);
data/tinyirc-1.1.dfsg.1/tinyircd.c:181:2:  [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(IRCGECOS, tmp);
data/tinyirc-1.1.dfsg.1/tinyirc.c:982:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ( (tmp = (char *) getenv("IRCSERVER")) && tmp[0] != '\0' )
data/tinyirc-1.1.dfsg.1/tinyirc.c:1051: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.
	tmp = (char *) getenv("IRCNICK");
data/tinyirc-1.1.dfsg.1/tinyirc.c:1091:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((term = (char *) getenv("TERM")) == NULL) {
data/tinyirc-1.1.dfsg.1/tinyircd.c:125:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (!(tmp = (char *) getenv("IRCSERVER")))
data/tinyirc-1.1.dfsg.1/tinyircd.c:160: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.
	tmp = (char *) getenv("IRCNICK");
data/tinyirc-1.1.dfsg.1/tinyircd.c:192:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((term = (char *) getenv("TERM")) == NULL) {
data/tinyirc-1.1.dfsg.1/tinyirc.c:60:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[64];
data/tinyirc-1.1.dfsg.1/tinyirc.c:61: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 mode[64];
data/tinyirc-1.1.dfsg.1/tinyirc.c:70: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 *tmp, *linein, *CM, *CS, *CE, *SO, *SE, *DC, *ptr, *term, *fromhost,
data/tinyirc-1.1.dfsg.1/tinyirc.c:179: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 encoded[512];
data/tinyirc-1.1.dfsg.1/tinyirc.c:204:2:  [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(&encoded[strlen(encoded)], "%02x", s[i]);
data/tinyirc-1.1.dfsg.1/tinyirc.c:436:12:  [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).
	tmptime = atoi(TOK[4]);
data/tinyirc-1.1.dfsg.1/tinyirc.c:446:12:  [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).
	tmptime = atoi(TOK[5]);
data/tinyirc-1.1.dfsg.1/tinyirc.c:457:12:  [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).
	tmptime = atoi(TOK[5]);
data/tinyirc-1.1.dfsg.1/tinyirc.c:502: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 *clist[LISTSIZE] =
data/tinyirc-1.1.dfsg.1/tinyirc.c:577: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).
    if ((i = atoi(TOK[1])))
data/tinyirc-1.1.dfsg.1/tinyirc.c:935:2:  [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(hp->h_addr_list[t], (char *) &sa.sin_addr, hp->h_length);
data/tinyirc-1.1.dfsg.1/tinyirc.c:973: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 hostname[64];
data/tinyirc-1.1.dfsg.1/tinyirc.c:1030:16:  [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).
	    IRCPORT = atoi(argv[offset]);
data/tinyirc-1.1.dfsg.1/tinyirc.c:1041:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((my_tty = open("/dev/tty", O_RDWR, 0)) == -1)
data/tinyirc-1.1.dfsg.1/tinyircd.c:97:2:  [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(hp->h_addr_list[t], (char *) &sa.sin_addr, hp->h_length);
data/tinyirc-1.1.dfsg.1/tinyircd.c:132:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    IRCPORT = (unsigned short) atoi(++tmp);
data/tinyirc-1.1.dfsg.1/tinyircd.c:146:15:  [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).
	    else if (atoi(argv[i]) > 255)
data/tinyirc-1.1.dfsg.1/tinyircd.c:147:13:  [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).
		IRCPORT = atoi(argv[i]);
data/tinyirc-1.1.dfsg.1/tinyircd.c:151:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((my_tty = open("/dev/tty", O_RDWR, 0)) == -1)
data/tinyirc-1.1.dfsg.1/tinyircd.c:156:2:  [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(IRCLOGIN, "fromident");
data/tinyirc-1.1.dfsg.1/tinyirc.c:186: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).
    for (i = 0; i < strlen(s) && j < 400; i++) {
data/tinyirc-1.1.dfsg.1/tinyirc.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).
    for (i = 0; i < strlen(s); i++)
data/tinyirc-1.1.dfsg.1/tinyirc.c:204: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).
	sprintf(&encoded[strlen(encoded)], "%02x", s[i]);
data/tinyirc-1.1.dfsg.1/tinyirc.c:208: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).
    if (write(my_tcp, lineout, strlen(lineout)) < 1)
data/tinyirc-1.1.dfsg.1/tinyirc.c:309: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(newobj->mode, t, 1);
data/tinyirc-1.1.dfsg.1/tinyirc.c:475:15:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((ch = getchar()) != '\n')
data/tinyirc-1.1.dfsg.1/tinyirc.c:476: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).
	    if (strlen(IRCNAME) < 9)
data/tinyirc-1.1.dfsg.1/tinyirc.c:535:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(p) < CO - count)
data/tinyirc-1.1.dfsg.1/tinyirc.c:614:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((count = read(my_tcp, ib, IB_SIZE)) < 1)
data/tinyirc-1.1.dfsg.1/tinyirc.c:646: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).
	for (i = 0; i < strlen(TOK[0]) && isalpha(TOK[0][i]); i++)
data/tinyirc-1.1.dfsg.1/tinyirc.c:649:41:  [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).
	    found = (strncmp(clist[i], TOK[0], strlen(TOK[0])) == 0);
data/tinyirc-1.1.dfsg.1/tinyirc.c:709: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).
	    c = strlen(lineout);
data/tinyirc-1.1.dfsg.1/tinyirc.c:718:2:  [1] (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). Risk is low because the
  source is a constant character.
	strcat(lineout, "\n");
data/tinyirc-1.1.dfsg.1/tinyirc.c:764: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).
    curx = curli = strlen(linein);
data/tinyirc-1.1.dfsg.1/tinyirc.c:779:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(my_tty, &ch, 1);
data/tinyirc-1.1.dfsg.1/tinyirc.c:976:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(hostname, DEFAULTSERVER, sizeof(hostname));
data/tinyirc-1.1.dfsg.1/tinyirc.c:983:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(hostname, tmp, sizeof(hostname));
data/tinyirc-1.1.dfsg.1/tinyirc.c:1010:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(IRCNAME, argv[offset], sizeof(IRCNAME));
data/tinyirc-1.1.dfsg.1/tinyirc.c:1012:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(IRCLOGIN, argv[offset], sizeof(IRCLOGIN));
data/tinyirc-1.1.dfsg.1/tinyirc.c:1020:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(hostname, argv[offset], sizeof(hostname));
data/tinyirc-1.1.dfsg.1/tinyirc.c:1054:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(IRCNAME, userinfo->pw_name, sizeof(IRCNAME));
data/tinyirc-1.1.dfsg.1/tinyirc.c:1056:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(IRCNAME, tmp, sizeof(IRCNAME));
data/tinyirc-1.1.dfsg.1/tinyirc.c:1080: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).
    if ( strlen(IRCGECOS) == 0 )
data/tinyirc-1.1.dfsg.1/tinyircd.c:149:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(IRCNAME, argv[i], sizeof(IRCNAME));
data/tinyirc-1.1.dfsg.1/tinyircd.c:162:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(IRCNAME, userinfo->pw_name, sizeof(IRCNAME));
data/tinyirc-1.1.dfsg.1/tinyircd.c:164:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(IRCNAME, tmp, sizeof(IRCNAME));

ANALYSIS SUMMARY:

Hits = 86
Lines analyzed = 1455 in approximately 0.06 seconds (23474 lines/second)
Physical Source Lines of Code (SLOC) = 1379
Hits@level = [0]  73 [1]  26 [2]  20 [3]   6 [4]  34 [5]   0
Hits@level+ = [0+] 159 [1+]  86 [2+]  60 [3+]  40 [4+]  34 [5+]   0
Hits/KSLOC@level+ = [0+] 115.301 [1+] 62.364 [2+] 43.5098 [3+] 29.0065 [4+] 24.6555 [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.