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/knews-1.0b.1/Widgets/ArtText.c
Examining data/knews-1.0b.1/Widgets/ArtText.h
Examining data/knews-1.0b.1/Widgets/TextField.c
Examining data/knews-1.0b.1/Widgets/ArtTextP.h
Examining data/knews-1.0b.1/Widgets/ArtTree.c
Examining data/knews-1.0b.1/Widgets/ArtTree.h
Examining data/knews-1.0b.1/Widgets/ArtTreeNode.h
Examining data/knews-1.0b.1/Widgets/ArtTreeP.h
Examining data/knews-1.0b.1/Widgets/Compat.h
Examining data/knews-1.0b.1/Widgets/Dialogue.c
Examining data/knews-1.0b.1/Widgets/Dialogue.h
Examining data/knews-1.0b.1/Widgets/DialogueP.h
Examining data/knews-1.0b.1/Widgets/FileSel.c
Examining data/knews-1.0b.1/Widgets/FileSel.h
Examining data/knews-1.0b.1/Widgets/Util.c
Examining data/knews-1.0b.1/Widgets/FileSelP.h
Examining data/knews-1.0b.1/Widgets/Knapp.h
Examining data/knews-1.0b.1/Widgets/Knapp.c
Examining data/knews-1.0b.1/Widgets/ScrBar.c
Examining data/knews-1.0b.1/Widgets/KnappP.h
Examining data/knews-1.0b.1/Widgets/Layout.c
Examining data/knews-1.0b.1/Widgets/Menu.c
Examining data/knews-1.0b.1/Widgets/Layout.h
Examining data/knews-1.0b.1/Widgets/Notice.c
Examining data/knews-1.0b.1/Widgets/LayoutP.h
Examining data/knews-1.0b.1/Widgets/ScrList.h
Examining data/knews-1.0b.1/Widgets/Manager.c
Examining data/knews-1.0b.1/Widgets/Manager.h
Examining data/knews-1.0b.1/Widgets/ManagerP.h
Examining data/knews-1.0b.1/Widgets/Menu.h
Examining data/knews-1.0b.1/Widgets/MenuG.c
Examining data/knews-1.0b.1/Widgets/MenuG.h
Examining data/knews-1.0b.1/Widgets/MenuGP.h
Examining data/knews-1.0b.1/Widgets/MenuKnapp.c
Examining data/knews-1.0b.1/Widgets/MenuKnapp.h
Examining data/knews-1.0b.1/Widgets/ScrBar.h
Examining data/knews-1.0b.1/Widgets/MenuKnappP.h
Examining data/knews-1.0b.1/Widgets/MenuP.h
Examining data/knews-1.0b.1/Widgets/Message.c
Examining data/knews-1.0b.1/Widgets/Message.h
Examining data/knews-1.0b.1/Widgets/ScrList.c
Examining data/knews-1.0b.1/Widgets/MessageP.h
Examining data/knews-1.0b.1/Widgets/Notice.h
Examining data/knews-1.0b.1/Widgets/NoticeP.h
Examining data/knews-1.0b.1/Widgets/MenuShell.h
Examining data/knews-1.0b.1/Widgets/MenuShellP.h
Examining data/knews-1.0b.1/Widgets/PullRight.c
Examining data/knews-1.0b.1/Widgets/PullRight.h
Examining data/knews-1.0b.1/Widgets/Sash.c
Examining data/knews-1.0b.1/Widgets/PullRightP.h
Examining data/knews-1.0b.1/Widgets/Sash.h
Examining data/knews-1.0b.1/Widgets/SashP.h
Examining data/knews-1.0b.1/Widgets/StringG.c
Examining data/knews-1.0b.1/Widgets/ScrBarP.h
Examining data/knews-1.0b.1/Widgets/ScrListP.h
Examining data/knews-1.0b.1/Widgets/Shadow.c
Examining data/knews-1.0b.1/Widgets/SeparatorG.c
Examining data/knews-1.0b.1/Widgets/SeparatoGP.h
Examining data/knews-1.0b.1/Widgets/SeparatorG.h
Examining data/knews-1.0b.1/Widgets/Shadow.h
Examining data/knews-1.0b.1/Widgets/ShadowP.h
Examining data/knews-1.0b.1/Widgets/StringG.h
Examining data/knews-1.0b.1/Widgets/StringGP.h
Examining data/knews-1.0b.1/Widgets/TextField.h
Examining data/knews-1.0b.1/Widgets/Toggle.c
Examining data/knews-1.0b.1/Widgets/Toggle.h
Examining data/knews-1.0b.1/Widgets/ToggleG.c
Examining data/knews-1.0b.1/Widgets/ToggleG.h
Examining data/knews-1.0b.1/Widgets/ToggleGP.h
Examining data/knews-1.0b.1/Widgets/ToggleP.h
Examining data/knews-1.0b.1/Widgets/Util.h
Examining data/knews-1.0b.1/Widgets/laylex_new.c
Examining data/knews-1.0b.1/Widgets/UtilI.h
Examining data/knews-1.0b.1/Widgets/CloseSh.h
Examining data/knews-1.0b.1/Widgets/TextFieldP.h
Examining data/knews-1.0b.1/Widgets/Scrollable.h
Examining data/knews-1.0b.1/Widgets/Login.h
Examining data/knews-1.0b.1/Widgets/CloseShP.h
Examining data/knews-1.0b.1/Widgets/CloseSh.c
Examining data/knews-1.0b.1/Widgets/ScrollableP.h
Examining data/knews-1.0b.1/Widgets/LoginP.h
Examining data/knews-1.0b.1/Widgets/Login.c
Examining data/knews-1.0b.1/Widgets/Scrollable.c
Examining data/knews-1.0b.1/Widgets/MenuI.h
Examining data/knews-1.0b.1/Widgets/MenuShell.c
Examining data/knews-1.0b.1/regexp/cclass.h
Examining data/knews-1.0b.1/regexp/cname.h
Examining data/knews-1.0b.1/regexp/debug.c
Examining data/knews-1.0b.1/regexp/engine.c
Examining data/knews-1.0b.1/regexp/main.c
Examining data/knews-1.0b.1/regexp/regcomp.c
Examining data/knews-1.0b.1/regexp/regerror.c
Examining data/knews-1.0b.1/regexp/regex.h
Examining data/knews-1.0b.1/regexp/regex2.h
Examining data/knews-1.0b.1/regexp/regexec.c
Examining data/knews-1.0b.1/regexp/regfree.c
Examining data/knews-1.0b.1/regexp/split.c
Examining data/knews-1.0b.1/regexp/utils.h
Examining data/knews-1.0b.1/src/bg.c
Examining data/knews-1.0b.1/src/misc.h
Examining data/knews-1.0b.1/src/parse.c
Examining data/knews-1.0b.1/src/read.c
Examining data/knews-1.0b.1/src/sysdeps.c
Examining data/knews-1.0b.1/src/newsrc.c
Examining data/knews-1.0b.1/src/file.c
Examining data/knews-1.0b.1/src/widgets.c
Examining data/knews-1.0b.1/src/k_file.h
Examining data/knews-1.0b.1/src/xutil.c
Examining data/knews-1.0b.1/src/ahead.h
Examining data/knews-1.0b.1/src/color.c
Examining data/knews-1.0b.1/src/color.h
Examining data/knews-1.0b.1/src/decode.c
Examining data/knews-1.0b.1/src/decode.h
Examining data/knews-1.0b.1/src/xutil.h
Examining data/knews-1.0b.1/src/misc.c
Examining data/knews-1.0b.1/src/p_post.h
Examining data/knews-1.0b.1/src/p_setup.c
Examining data/knews-1.0b.1/src/server.h
Examining data/knews-1.0b.1/src/resource.h
Examining data/knews-1.0b.1/src/file.h
Examining data/knews-1.0b.1/src/mailcap.c
Examining data/knews-1.0b.1/src/k_edit.c
Examining data/knews-1.0b.1/src/font.c
Examining data/knews-1.0b.1/src/sort.h
Examining data/knews-1.0b.1/src/mailcap.h
Examining data/knews-1.0b.1/src/big5.h
Examining data/knews-1.0b.1/src/thread.h
Examining data/knews-1.0b.1/src/tag.c
Examining data/knews-1.0b.1/src/util.c
Examining data/knews-1.0b.1/src/bg.h
Examining data/knews-1.0b.1/src/ahead.c
Examining data/knews-1.0b.1/src/resource.c
Examining data/knews-1.0b.1/src/p_I.h
Examining data/knews-1.0b.1/src/global.h
Examining data/knews-1.0b.1/src/p_attach.c
Examining data/knews-1.0b.1/src/charset.c
Examining data/knews-1.0b.1/src/partial.c
Examining data/knews-1.0b.1/src/partial.h
Examining data/knews-1.0b.1/src/uudecode.c
Examining data/knews-1.0b.1/src/newsrc.h
Examining data/knews-1.0b.1/src/sort.c
Examining data/knews-1.0b.1/src/viewer.c
Examining data/knews-1.0b.1/src/procs.c
Examining data/knews-1.0b.1/src/p_popup.h
Examining data/knews-1.0b.1/src/procs.h
Examining data/knews-1.0b.1/src/p_menu.h
Examining data/knews-1.0b.1/src/read.h
Examining data/knews-1.0b.1/src/search.c
Examining data/knews-1.0b.1/src/search.h
Examining data/knews-1.0b.1/src/child.c
Examining data/knews-1.0b.1/src/widgets.h
Examining data/knews-1.0b.1/src/thread.c
Examining data/knews-1.0b.1/src/save.h
Examining data/knews-1.0b.1/src/k_edit.h
Examining data/knews-1.0b.1/src/k_action.c
Examining data/knews-1.0b.1/src/uudecode.h
Examining data/knews-1.0b.1/src/util.h
Examining data/knews-1.0b.1/src/viewer.h
Examining data/knews-1.0b.1/src/save.c
Examining data/knews-1.0b.1/src/p_check.c
Examining data/knews-1.0b.1/src/font.h
Examining data/knews-1.0b.1/src/codes.h
Examining data/knews-1.0b.1/src/layouts/save.h
Examining data/knews-1.0b.1/src/layouts/text.h
Examining data/knews-1.0b.1/src/layouts/single.h
Examining data/knews-1.0b.1/src/layouts/kill.h
Examining data/knews-1.0b.1/src/layouts/top.h
Examining data/knews-1.0b.1/src/layouts/knapp.h
Examining data/knews-1.0b.1/src/layouts/search.h
Examining data/knews-1.0b.1/src/layouts/post.h
Examining data/knews-1.0b.1/src/layouts/double.h
Examining data/knews-1.0b.1/src/layouts/killg.h
Examining data/knews-1.0b.1/src/k_action.h
Examining data/knews-1.0b.1/src/sysdeps.h
Examining data/knews-1.0b.1/src/charset.h
Examining data/knews-1.0b.1/src/domain.c
Examining data/knews-1.0b.1/src/k_file.c
Examining data/knews-1.0b.1/src/cache.c
Examining data/knews-1.0b.1/src/connect.h
Examining data/knews-1.0b.1/src/domain.h
Examining data/knews-1.0b.1/src/k_kill.c
Examining data/knews-1.0b.1/src/cache.h
Examining data/knews-1.0b.1/src/tag.h
Examining data/knews-1.0b.1/src/child.h
Examining data/knews-1.0b.1/src/connect.c
Examining data/knews-1.0b.1/src/p_menu.c
Examining data/knews-1.0b.1/src/k_node.c
Examining data/knews-1.0b.1/src/k_kill.h
Examining data/knews-1.0b.1/src/actions.h
Examining data/knews-1.0b.1/src/k_I.h
Examining data/knews-1.0b.1/src/p_setup.h
Examining data/knews-1.0b.1/src/p_attach.h
Examining data/knews-1.0b.1/src/gif.c
Examining data/knews-1.0b.1/src/p_check.h
Examining data/knews-1.0b.1/src/gif.h
Examining data/knews-1.0b.1/src/parse.h
Examining data/knews-1.0b.1/src/jpeg.c
Examining data/knews-1.0b.1/src/expand.c
Examining data/knews-1.0b.1/src/ftp.h
Examining data/knews-1.0b.1/src/expand.h
Examining data/knews-1.0b.1/src/ftp.c
Examining data/knews-1.0b.1/src/k_node.h
Examining data/knews-1.0b.1/src/jpeg.h
Examining data/knews-1.0b.1/src/png.h
Examining data/knews-1.0b.1/src/gif_I.h
Examining data/knews-1.0b.1/src/xface.h
Examining data/knews-1.0b.1/src/xface.c
Examining data/knews-1.0b.1/src/actions.c
Examining data/knews-1.0b.1/src/main.c
Examining data/knews-1.0b.1/src/p_popup.c
Examining data/knews-1.0b.1/src/p_post.c
Examining data/knews-1.0b.1/src/png.c
Examining data/knews-1.0b.1/src/server.c
Examining data/knews-1.0b.1/util/tcp_relay/tcp_relay.c
Examining data/knews-1.0b.1/util/knewsd/knewsd.h
Examining data/knews-1.0b.1/util/knewsd/codes.h
Examining data/knews-1.0b.1/util/knewsd/knewsd.c
Examining data/knews-1.0b.1/configure.h

FINAL RESULTS:

data/knews-1.0b.1/Widgets/ArtText.c:1735: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(last->cli.str, str);
data/knews-1.0b.1/Widgets/FileSel.c:298:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(new_dir, "/%s", dir);
data/knews-1.0b.1/Widgets/FileSel.c:300:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(new_dir, "%s/%s", w->filesel.directory, dir);
data/knews-1.0b.1/Widgets/FileSel.c:361:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buffer, "%s/", new_dir);
data/knews-1.0b.1/Widgets/FileSel.c:376:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(buffer + len, "%s", list[i]);
data/knews-1.0b.1/Widgets/FileSel.c:423:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(call_data, "%s%s", w->filesel.directory, file);
data/knews-1.0b.1/Widgets/FileSel.c:425:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(call_data, "%s/%s", w->filesel.directory, file);
data/knews-1.0b.1/Widgets/FileSel.c:732:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(new->filesel.directory, "%s/%s", home, dir);
data/knews-1.0b.1/Widgets/Layout.c:475:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf (buf, "Layout: undefined variable %s\n",
data/knews-1.0b.1/Widgets/ScrList.c:982:29:  [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).
    w->scrlist.strings[n] = strcpy(XtMalloc(len + 1), string);
data/knews-1.0b.1/Widgets/ScrList.c:1014:31:  [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).
    w->scrlist.strings[row] = strcpy(XtMalloc(len + 1), string);
data/knews-1.0b.1/Widgets/TextField.c:345:30:  [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).
	w->textfield.lines[0].buf = strcpy(XtMalloc(len + 1), c);
data/knews-1.0b.1/Widgets/TextField.c:937: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(w->textfield.lines[line].buf + pos, c);
data/knews-1.0b.1/Widgets/TextField.c:2036: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(buffer, w->textfield.lines[0].buf);
data/knews-1.0b.1/Widgets/TextField.c:2040: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(buffer + n, w->textfield.lines[i].buf);
data/knews-1.0b.1/Widgets/TextField.c:2105: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(buffer, c + w->textfield.sel_start_x);
data/knews-1.0b.1/Widgets/TextField.c:2111: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(buffer + len, w->textfield.lines[n].buf);
data/knews-1.0b.1/Widgets/Util.c:372: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(buffer, s);
data/knews-1.0b.1/Widgets/Util.c:454:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy((char *)*val_ret, w->core.name);
data/knews-1.0b.1/Widgets/Util.c:455:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy((char *)*val_ret + len + 1, class);
data/knews-1.0b.1/regexp/main.c:226: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(f0copy, f0);
data/knews-1.0b.1/regexp/main.c:250: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(f2copy, f2);
data/knews-1.0b.1/regexp/main.c:505:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(efbuf, "REG_%s", name);
data/knews-1.0b.1/regexp/regcomp.c:1170:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	(void) strcpy(cs->multis + oldend - 1, cp);
data/knews-1.0b.1/regexp/regerror.c:83:12:  [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).
				(void) strcpy(convbuf, r->name);
data/knews-1.0b.1/regexp/regerror.c:95:11:  [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).
			(void) strcpy(errbuf, s);
data/knews-1.0b.1/regexp/split.c:162:11:  [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).
			(void) strcpy(buf, argv[1]);
data/knews-1.0b.1/regexp/split.c:166:11:  [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).
			(void) strcpy(buf, argv[1]);
data/knews-1.0b.1/regexp/split.c:288:10:  [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).
		(void) strcpy(buf, tests[n].str);
data/knews-1.0b.1/src/ahead.c:101:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(ret, "%s/%s", cache_dir, group_name);
data/knews-1.0b.1/src/ahead.c:323:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(message, "Threading %s...", node->group->name);
data/knews-1.0b.1/src/bg.c:137:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(message, "Failed to open second connection, "
data/knews-1.0b.1/src/bg.c:229:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(message, "Second connection to server: %s!", err);
data/knews-1.0b.1/src/bg.c:321:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(command, "GROUP %s\r\n", group->name);
data/knews-1.0b.1/src/bg.c:354:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(command, "AUTHINFO USER %s\r\nAUTHINFO PASS %s\r\n",
data/knews-1.0b.1/src/cache.c:52:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(fn, "%s/%lu", cache_dir, count++);
data/knews-1.0b.1/src/child.c:493: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(stderr_buf, context->stderr_buf);
data/knews-1.0b.1/src/connect.c:44:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(message, "Error: Message from server is: %s", buffer);
data/knews-1.0b.1/src/connect.c:66:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(message, "Error: Message from server is: %s", buffer);
data/knews-1.0b.1/src/connect.c:319:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(message, "GROUP %s\r\n", global.curr_group->name);
data/knews-1.0b.1/src/expand.c:64:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(dest + pos, "%s/%s", type, subtype);
data/knews-1.0b.1/src/expand.c:89: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(dest + pos, args[i].value);
data/knews-1.0b.1/src/k_action.c:63:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(expr, "<%s>", global.curr_art->msgid);
data/knews-1.0b.1/src/k_action.c:66:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buffer, "kill-%s(): unknown field: ",
data/knews-1.0b.1/src/k_action.c:82:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buffer, "kill-%s(): unknown scope: ",
data/knews-1.0b.1/src/k_action.c:105:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buffer, "%s %s-scope %s %s entry to %skill file.",
data/knews-1.0b.1/src/k_edit.c:528:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(expr, "<%s>", global.curr_art->msgid);
data/knews-1.0b.1/src/misc.c:1182:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buffer, "ARTICLE <%s>\r\n", msgid);
data/knews-1.0b.1/src/misc.c:1193:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buffer, "Error, message from server is: %s", reply);
data/knews-1.0b.1/src/newsrc.c:653:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(command, "LIST ACTIVE %s\r\n", global.groups[j]->name);
data/knews-1.0b.1/src/newsrc.c:693:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(command, "GROUP %s\r\n", global.groups[j]->name);
data/knews-1.0b.1/src/p_attach.c:357: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(buffer, pa->type);
data/knews-1.0b.1/src/p_attach.c:383: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(buffer + n, enc);
data/knews-1.0b.1/src/p_attach.c:525:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(header[0], "Content-Type: %s", type);
data/knews-1.0b.1/src/p_check.c:425:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buffer, "Subject: %s", subject);
data/knews-1.0b.1/src/p_check.c:428:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buffer, "  (No Content-Type header, assuming "
data/knews-1.0b.1/src/p_check.c:435:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buffer,	"Note: This %s contains %d character lines.",
data/knews-1.0b.1/src/p_check.c:445:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buffer,	"Note: This %s has %ld%% quoted text.",
data/knews-1.0b.1/src/p_check.c:479:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(buffer, "%s: Posting to %d groups.",
data/knews-1.0b.1/src/p_check.c:511:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(buffer, "%s %s", status, newsgroups);
data/knews-1.0b.1/src/p_popup.c:886:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(message, "Editor caught %s!", signal_string(WTERMSIG(status)));
data/knews-1.0b.1/src/p_popup.c:933:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		    sprintf(editcmd, global.edit_command,
data/knews-1.0b.1/src/p_popup.c:936:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		    sprintf(editcmd, global.edit_command,
data/knews-1.0b.1/src/p_popup.c:939:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf(editcmd, global.edit_command, context->file_name);
data/knews-1.0b.1/src/p_popup.c:941:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	    sprintf(editcmd, global.edit_command, context->line);
data/knews-1.0b.1/src/p_popup.c:943: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(editcmd, global.edit_command);
data/knews-1.0b.1/src/p_popup.c:945:2:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execl(BIN_SH, "sh", "-c", editcmd, (char *)NULL);
data/knews-1.0b.1/src/p_popup.c:992:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(message, "'%s' exited OK.", command);
data/knews-1.0b.1/src/p_popup.c:995:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(message, "'%s' exited abnormally", command);
data/knews-1.0b.1/src/p_popup.c:1068:2:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execl(BIN_SH, "sh", "-c", command, (char *)NULL);
data/knews-1.0b.1/src/p_post.c:166:2:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execl(BIN_SH, "sh", "-c", agent, (char *)0);
data/knews-1.0b.1/src/p_post.c:197:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(message + strlen(message), " caught %s!",
data/knews-1.0b.1/src/p_setup.c:672:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(command, "%s %ld\r\n",
data/knews-1.0b.1/src/partial.c:168:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(message,
data/knews-1.0b.1/src/partial.c:173:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(message,
data/knews-1.0b.1/src/partial.c:400:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(message,
data/knews-1.0b.1/src/partial.c:567:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(message, "Error, message from server is: %s", reply);
data/knews-1.0b.1/src/procs.c:573:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(message, "Error!  Message from server is: %s",
data/knews-1.0b.1/src/read.c:868:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(command, "ARTICLE <%s>\r\n", art->msgid);
data/knews-1.0b.1/src/read.c:873:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(temp, "ARTICLE <%s>\r\n", art->msgid);
data/knews-1.0b.1/src/read.c:1017:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(message, "Error!  Message from server is: %s", reply);
data/knews-1.0b.1/src/read.c:1065:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(ct,  "Content-Type: %s",              params[0]);
data/knews-1.0b.1/src/read.c:1066:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(cte, "Content-Transfer-Encoding: %s", params[1]);
data/knews-1.0b.1/src/resource.c:400: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(dest + len, name);
data/knews-1.0b.1/src/resource.c:406: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(dest + len, set_val);
data/knews-1.0b.1/src/save.c:414:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(message, "'%s' exited ok.", cmd);
data/knews-1.0b.1/src/save.c:418:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(message, "Failed to start '%s'!", cmd);
data/knews-1.0b.1/src/save.c:421:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(message, "'%s' exited abnormally!", cmd);
data/knews-1.0b.1/src/save.c:425:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(message, "'%s' caught %s!", cmd,
data/knews-1.0b.1/src/save.c:428:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(message, "Unknown problem with '%s'!", cmd);
data/knews-1.0b.1/src/save.c:545:2:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execl(BIN_SH, "sh", "-c", command, (char *)NULL);
data/knews-1.0b.1/src/save.c:1109:2:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execl(BIN_SH, "sh", "-c", prog, (char *)0);
data/knews-1.0b.1/src/search.c:426:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(command, "XPAT %s %ld-%ld %s\r\n",
data/knews-1.0b.1/src/search.c:446:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(command, "Error!  Message from server is: %s",
data/knews-1.0b.1/src/search.c:1066:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(command, "GROUP %s\r\n", report->buffer);
data/knews-1.0b.1/src/search.c:1090:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(command, "Error!  Message from server is: %s", reply);
data/knews-1.0b.1/src/server.c:179:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(message, "Error: %s!", tmp);
data/knews-1.0b.1/src/server.c:232:2:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execl(BIN_SH, "sh", "-c", cmd, (char *)0);
data/knews-1.0b.1/src/server.c:481:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buffer, "%s %s\r\n", auth_user, auth_pass);
data/knews-1.0b.1/src/server.c:498:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buffer, "AUTHINFO USER %s\r\n", auth_user);
data/knews-1.0b.1/src/server.c:504:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buffer, "AUTHINFO PASS %s\r\n", auth_pass);
data/knews-1.0b.1/src/thread.c:1106:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(command, "GROUP %s\r\n", global.curr_group->name);
data/knews-1.0b.1/src/thread.c:1247:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(message,
data/knews-1.0b.1/src/thread.c:1262:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(message,
data/knews-1.0b.1/src/uudecode.c:171:2:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execl(BIN_SH, "sh", "-c", uu_program, (char *)NULL);
data/knews-1.0b.1/src/uudecode.c:203:5:  [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("uudecode", "uudecode", (char *)0);
data/knews-1.0b.1/src/viewer.c:116:6:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	    execl(BIN_SH, "sh", "-c", report->buffer, (char *)NULL);
data/knews-1.0b.1/src/viewer.c:211:2:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execl(BIN_SH, "sh", "-c", view_cmd, (char *)NULL);
data/knews-1.0b.1/src/xutil.c:245:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(message,
data/knews-1.0b.1/src/xutil.c:334:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(message, "%s\n\nReally disconnect?", err_msg);
data/knews-1.0b.1/src/xutil.c:422:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(message, "You have not posted all articles!\n\n%s anyway?",
data/knews-1.0b.1/src/xutil.c:485:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(message, "Error!  Message from server is: %s",
data/knews-1.0b.1/src/xutil.c:738: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(buffer, title);
data/knews-1.0b.1/src/xutil.c:774:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(name, "%sshell", prefix);
data/knews-1.0b.1/src/xutil.c:776:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(name, "%smenu", prefix);
data/knews-1.0b.1/src/xutil.c:780:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(name, "%s%d", prefix, i);
data/knews-1.0b.1/util/knewsd/knewsd.c:97:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_FAULT) " Malloc failed.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:169:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_NCING) " Not in a newsgroup.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:176:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    printf(CODE_TO_STR(NNTP_ERR_NOCRNT) " No current article.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:181:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    printf(CODE_TO_STR(NNTP_ERR_FAULT)
data/knews-1.0b.1/util/knewsd/knewsd.c:184:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    printf(CODE_TO_STR(NNTP_ERR_CMDSYN) " Syntax error.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:187:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_CMDSYN) " Syntax error.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:192:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    printf(CODE_TO_STR(NNTP_ERR_NOART) " No such article.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:201:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_NOART) " No such article.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:209:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_NOART) " No such article.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:217:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_OK_ARTICLE) " %ld article.\r\n", no);
data/knews-1.0b.1/util/knewsd/knewsd.c:219:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_OK_HEAD) " %ld head.\r\n", no);
data/knews-1.0b.1/util/knewsd/knewsd.c:221:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_OK_BODY) " %ld body.\r\n", no);
data/knews-1.0b.1/util/knewsd/knewsd.c:310:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_FAULT) " No newsgroup specified.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:315:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_FAULT) " Group name too long.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:319: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(path, spool_dir);
data/knews-1.0b.1/util/knewsd/knewsd.c:322: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, args);
data/knews-1.0b.1/util/knewsd/knewsd.c:331:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_NOGROUP) " No such newsgroup.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:337: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(group_path, args);
data/knews-1.0b.1/util/knewsd/knewsd.c:359:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(CODE_TO_STR(NNTP_OK_GROUP) " %ld %ld %ld.\r\n",
data/knews-1.0b.1/util/knewsd/knewsd.c:372:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(CODE_TO_STR(NNTP_INF_HELP) " Legal commands\r\n"
data/knews-1.0b.1/util/knewsd/knewsd.c:394:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    printf(CODE_TO_STR(NNTP_ERR_FAULT)
data/knews-1.0b.1/util/knewsd/knewsd.c:401:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    printf(CODE_TO_STR(NNTP_OK_GROUPS) " Active file follows.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:406:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    printf(CODE_TO_STR(NNTP_ERR_FAULT)
data/knews-1.0b.1/util/knewsd/knewsd.c:413:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    printf(CODE_TO_STR(NNTP_OK_GROUPS) " Descriptions follow.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:417:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_CMDSYN) " Syntax error.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:423:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_FAULT) " Couldn't open file.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:446:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_NCING) " Not in a newsgroup.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:451:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_NOCRNT) " No current article.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:456:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_NONEXT) " No next article.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:461:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(CODE_TO_STR(NNTP_OK_NOTEXT) " %ld\r\n", arts[curr_art_ind]);
data/knews-1.0b.1/util/knewsd/knewsd.c:466:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(CODE_TO_STR(NNTP_ERR_FAULT) " Command not implemented.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:477:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_NOPOST)
data/knews-1.0b.1/util/knewsd/knewsd.c:484:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_FAULT) " pipe failed.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:491:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_FAULT) " fork failed.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:511:2:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execl("/bin/sh", "sh", "-c", posting_agent, (char *)0);
data/knews-1.0b.1/util/knewsd/knewsd.c:522:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_FAULT) " Internal error.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:527:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(CODE_TO_STR(NNTP_CONT_POST) " Ok.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:555:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_FAULT) " Internal error.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:563:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    printf(CODE_TO_STR(NNTP_OK_POSTED) " Article posted.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:566:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    printf(CODE_TO_STR(NNTP_ERR_POSTFAIL) " Internal error.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:569:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    printf(CODE_TO_STR(NNTP_ERR_POSTFAIL) " Failed to start %s.\r\n",
data/knews-1.0b.1/util/knewsd/knewsd.c:573:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    printf(CODE_TO_STR(NNTP_ERR_POSTFAIL)
data/knews-1.0b.1/util/knewsd/knewsd.c:579:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_FAULT) " %s caught signal %d.\r\n",
data/knews-1.0b.1/util/knewsd/knewsd.c:582:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_FAULT) " %s terminated abnormally: "
data/knews-1.0b.1/util/knewsd/knewsd.c:591:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_NCING) " Not in a newsgroup.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:596:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_CMDSYN) " Syntax error.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:602:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_NOART) " No such article.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:607:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(CODE_TO_STR(NNTP_OK_NOTEXT) " %ld\r\n", arts[no]);
data/knews-1.0b.1/util/knewsd/knewsd.c:612:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(CODE_TO_STR(NNTP_OK_GOODBYE) " Goodbye.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:625:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_NCING) " Not in a newsgroup.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:630:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_NOCRNT)
data/knews-1.0b.1/util/knewsd/knewsd.c:639:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    printf(CODE_TO_STR(NNTP_ERR_CMDSYN) " Syntax error.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:644:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    printf(CODE_TO_STR(NNTP_ERR_CMDSYN) " Syntax error.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:651:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buffer, "%s/%s/.overview",  overview_dir, group_path);
data/knews-1.0b.1/util/knewsd/knewsd.c:659:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(CODE_TO_STR(NNTP_OK_XOVER) " Overview file follows.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:706:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buffer, "%s/%s/.overview", overview_dir, group_path);
data/knews-1.0b.1/util/knewsd/knewsd.c:838:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_FAULT) " Bad command line arguments.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:843:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_FAULT) " Spool dir name to long.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:848:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_FAULT) " Overview dir name to long.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:854:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(CODE_TO_STR(NNTP_ERR_FAULT)
data/knews-1.0b.1/util/knewsd/knewsd.c:882:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    printf(CODE_TO_STR(NNTP_ERR_FAULT) " Input buffer overflow.\r\n");
data/knews-1.0b.1/util/knewsd/knewsd.c:909:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    printf(CODE_TO_STR(NNTP_ERR_COMMAND)
data/knews-1.0b.1/Widgets/FileSel.c:655:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char		*home = getenv("HOME");
data/knews-1.0b.1/Widgets/Util.c:429:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        char	*name = getenv("USER");
data/knews-1.0b.1/regexp/main.c:44:14:  [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 ((c = getopt(argc, argv, "c:e:S:E:x")) != EOF)
data/knews-1.0b.1/src/domain.c:59:7:  [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 (!getenv("NAME") && pw->pw_gecos) {
data/knews-1.0b.1/src/file.c:189:13:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
    *name = tmpnam(NULL);
data/knews-1.0b.1/src/mailcap.c:307:9:  [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.
    c = getenv("MAILCAPS");
data/knews-1.0b.1/src/main.c:472:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char	*home = getenv("HOME");
data/knews-1.0b.1/src/main.c:489:5:  [3] (random) srand:
  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.
    srand(3ul * time(NULL) +  5ul * getuid() +
data/knews-1.0b.1/src/main.c:572:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char	*env_var = getenv("NNTPSERVER");
data/knews-1.0b.1/src/p_post.c:221:5:  [3] (random) srand:
  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.
    srand(3ul * rand() + 17ul * time(NULL));
data/knews-1.0b.1/src/resource.c:694:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmp = getenv("NAME");
data/knews-1.0b.1/src/resource.c:701:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmp = getenv("NEWSORG");
data/knews-1.0b.1/src/resource.c:703:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	tmp = getenv("ORGANIZATION");
data/knews-1.0b.1/src/resource.c:708:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmp = getenv("REPLYTO");
data/knews-1.0b.1/src/resource.c:713:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    tmp = getenv("DEFNEWSDIS");
data/knews-1.0b.1/util/tcp_relay/tcp_relay.c:302: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.
    extern int	 getopt(int, char *const[], const char*);
data/knews-1.0b.1/util/tcp_relay/tcp_relay.c:313: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 ((c = getopt(argc, argv, "p:h:s")) != -1)
data/knews-1.0b.1/Widgets/ArtText.c:462:2:  [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(res, str, len);
data/knews-1.0b.1/Widgets/ArtText.c:498: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(str + len, cat, tmp);
data/knews-1.0b.1/Widgets/ArtText.c:945:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(buf, start->str.str + start_off, len);
data/knews-1.0b.1/Widgets/ArtText.c:956:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(buf, start->str.str + start_off, len);
data/knews-1.0b.1/Widgets/ArtText.c:964:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(buf + len, start->str.str, tmp);
data/knews-1.0b.1/Widgets/ArtText.c:974:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(buf + len, stop->str.str, tmp);
data/knews-1.0b.1/Widgets/ArtText.c:978:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(buf + len, stop->str.str, tmp);
data/knews-1.0b.1/Widgets/ArtText.c:1033:2:  [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(atom, std_targets, std_length * sizeof(Atom));
data/knews-1.0b.1/Widgets/ArtText.c:1932: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(node->wstr.str, wstr, len * sizeof wstr[0]);
data/knews-1.0b.1/Widgets/ArtText.c:1952: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(last->wstr.str + last->wstr.len, wstr, len);
data/knews-1.0b.1/Widgets/FileSel.c:148:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static unsigned char
data/knews-1.0b.1/Widgets/FileSel.c:188:41:  [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.
	    XCreateBitmapFromData(disp, root, (char *)icon_bits[i], 16, 16);
data/knews-1.0b.1/Widgets/FileSel.c:280: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		buffer[MAXPATHLEN + 1];
data/knews-1.0b.1/Widgets/FileSel.c:531:2:  [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, c, len);
data/knews-1.0b.1/Widgets/Knapp.c:244:2:  [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(w->knapp.labels[n], label, len);
data/knews-1.0b.1/Widgets/Layout.c:474:6:  [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/knews-1.0b.1/Widgets/Message.c:116: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(w->message.buffer, message, n + 1);
data/knews-1.0b.1/Widgets/TextField.c:370:34:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    w->textfield.lines[n].buf = memcpy(XtMalloc(len + 1), c, len);
data/knews-1.0b.1/Widgets/TextField.c:568:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	buffer[256];
data/knews-1.0b.1/Widgets/TextField.c:973:38:  [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		factor = *no_params == 1 ? atol(params[0]) : 4;
data/knews-1.0b.1/Widgets/TextField.c:1190:36:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    w->textfield.lines[line].buf = memcpy(XtMalloc(pos + 1), c, pos);
data/knews-1.0b.1/Widgets/TextField.c:1324:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char	buffer[16];
data/knews-1.0b.1/Widgets/TextField.c:1357: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		buffer[16];
data/knews-1.0b.1/Widgets/TextField.c:1410:2:  [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(c, params[0], n);
data/knews-1.0b.1/Widgets/TextField.c:1666:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char	buffer[16];
data/knews-1.0b.1/Widgets/TextField.c:2097:6:  [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, c + start, len);
data/knews-1.0b.1/Widgets/TextField.c:2122:2:  [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 + len, c, stop);
data/knews-1.0b.1/Widgets/TextField.c:2192:2:  [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 + pos, value, len);
data/knews-1.0b.1/Widgets/TextField.c:2207:2:  [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, w->textfield.lines[line + m].buf, pos);
data/knews-1.0b.1/Widgets/TextField.c:2208:2:  [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 + pos, value, n);
data/knews-1.0b.1/Widgets/TextField.c:2218: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(XtMalloc(w->textfield.lines[i].len = n + 1), c, n);
data/knews-1.0b.1/Widgets/TextField.c:2226:2:  [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, c, len);
data/knews-1.0b.1/Widgets/TextField.c:2227:2:  [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 + len, w->textfield.lines[line + m].buf + pos, n);
data/knews-1.0b.1/Widgets/TextField.c:2361:2:  [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(atom, std_targets, std_length * sizeof(Atom));
data/knews-1.0b.1/Widgets/Util.c:356: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		buffer[32];
data/knews-1.0b.1/Widgets/Util.c:418:6:  [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(*val_ret, &l, 4);
data/knews-1.0b.1/Widgets/Util.c:420:6:  [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(*val_ret, &i, 4);
data/knews-1.0b.1/Widgets/laylex_new.c:21:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char is_word_sep[256] = {0,};
data/knews-1.0b.1/Widgets/laylex_new.c:57: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	buffer[256];
data/knews-1.0b.1/Widgets/laylex_new.c:222:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    yylval.ival = atoi(yysource - 1);
data/knews-1.0b.1/regexp/debug.c:235:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[10];
data/knews-1.0b.1/regexp/debug.c:238: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(buf, "%c", ch);
data/knews-1.0b.1/regexp/debug.c:240: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(buf, "\\%o", ch);
data/knews-1.0b.1/regexp/engine.c:999:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char pbuf[10];
data/knews-1.0b.1/regexp/engine.c:1002: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(pbuf, "%c", ch);
data/knews-1.0b.1/regexp/engine.c:1004: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(pbuf, "\\%o", ch);
data/knews-1.0b.1/regexp/main.c:33: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 erbuf[100];
data/knews-1.0b.1/regexp/main.c:53:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			startoff = (regoff_t)atoi(optarg);
data/knews-1.0b.1/regexp/main.c:56:23:  [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).
			endoff = (regoff_t)atoi(optarg);
data/knews-1.0b.1/regexp/main.c:129: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 inbuf[1000];
data/knews-1.0b.1/regexp/main.c:131: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 *f[MAXF];
data/knews-1.0b.1/regexp/main.c:134: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 erbuf[100];
data/knews-1.0b.1/regexp/main.c:187:6:  [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 (atoi(erbuf) != (int)REG_BADPAT) {
data/knews-1.0b.1/regexp/main.c:215: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 *should[NSHOULD];
data/knews-1.0b.1/regexp/main.c:217: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 erbuf[100];
data/knews-1.0b.1/regexp/main.c:223: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 f0copy[1000];
data/knews-1.0b.1/regexp/main.c:224: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 f2copy[1000];
data/knews-1.0b.1/regexp/main.c:413:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char grump[500];
data/knews-1.0b.1/regexp/main.c:428: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(grump, "start %ld end %ld", (long)sub.rm_so,
data/knews-1.0b.1/regexp/main.c:441: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(grump, "start %ld end %ld, past end of string",
data/knews-1.0b.1/regexp/main.c:452: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(grump, "matched `%.*s'", len, p);
data/knews-1.0b.1/regexp/main.c:458: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(grump, "matched `%.*s' instead", len, p);
data/knews-1.0b.1/regexp/main.c:471: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(grump, "matched null at `%.20s'", p);
data/knews-1.0b.1/regexp/main.c:485:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char epbuf[100];
data/knews-1.0b.1/regexp/main.c:501:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char efbuf[100];
data/knews-1.0b.1/regexp/main.c:509: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).
	return(atoi(efbuf));
data/knews-1.0b.1/regexp/regcomp.c:35: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 nuls[10];		/* place to point scanner in event of error */
data/knews-1.0b.1/regexp/regcomp.c:847: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 bracket[3];
data/knews-1.0b.1/regexp/regcomp.c:893: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 bracket[4];
data/knews-1.0b.1/regexp/regcomp.c:1350:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	(void) memcpy((char *)(p->strip + p->slen),
data/knews-1.0b.1/regexp/regerror.c:72: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 convbuf[50];
data/knews-1.0b.1/regexp/regerror.c:85: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(convbuf, "REG_0x%x", target);
data/knews-1.0b.1/regexp/regerror.c:124: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(localbuf, "%d", r->code);
data/knews-1.0b.1/regexp/regexec.c:75:22:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define	ASSIGN(d, s)	memcpy(d, s, m->g->nstates)
data/knews-1.0b.1/regexp/split.c:155: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 buf[512];
data/knews-1.0b.1/regexp/split.c:158: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 *fields[MNF];
data/knews-1.0b.1/regexp/split.c:161: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).
		for (n = atoi(argv[3]); n > 0; n--) {
data/knews-1.0b.1/regexp/split.c:165: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).
		for (n = atoi(argv[3]); n > 0; n--) {
data/knews-1.0b.1/regexp/split.c:187: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 *fields[NF];
data/knews-1.0b.1/regexp/split.c:213: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 *fi[RNF];
data/knews-1.0b.1/regexp/split.c:279: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 buf[512];
data/knews-1.0b.1/regexp/split.c:281: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 *fields[RNF+1];
data/knews-1.0b.1/regexp/utils.h:21:26:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define	memmove(d, s, c)	bcopy(s, d, c)
data/knews-1.0b.1/src/actions.c:235: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).
	    step = atol(params[0]);
data/knews-1.0b.1/src/actions.c:257: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).
	    step = atol(params[0]);
data/knews-1.0b.1/src/actions.c:459: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).
    y = atoi(params[0]);
data/knews-1.0b.1/src/actions.c:546:36:  [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).
	XtSetArg(args[1], XtNnodeColumns, atoi(params[1]));
data/knews-1.0b.1/src/actions.c:548:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	XtSetArg(args[2], XtNcolumnSpacing, atoi(params[2]));
data/knews-1.0b.1/src/actions.c:550:35:  [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).
	XtSetArg(args[3], XtNrowSpacing, atoi(params[3]));
data/knews-1.0b.1/src/ahead.c:78: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[32];
data/knews-1.0b.1/src/ahead.c:205: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	buffer[MAX_HEAD_NEXT * HEAD_NEXT + 1];
data/knews-1.0b.1/src/ahead.c:224: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(c, "HEAD\r\nNEXT\r\n");
data/knews-1.0b.1/src/ahead.c:264: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	command[512];
data/knews-1.0b.1/src/ahead.c:267: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(command, "XOVER %ld-%ld\r\n", first, last);
data/knews-1.0b.1/src/ahead.c:292: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		message[512];
data/knews-1.0b.1/src/ahead.c:353: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).
	    if (atoi(buffer) == NNTP_OK_XOVER) {
data/knews-1.0b.1/src/ahead.c:421: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).
		status = atoi(buffer);
data/knews-1.0b.1/src/ahead.c:501: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	message[128];
data/knews-1.0b.1/src/ahead.c:514:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(message, "That group is beeing threaded, %ld%% done!",
data/knews-1.0b.1/src/ahead.c:564: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		message[128];
data/knews-1.0b.1/src/ahead.c:574:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(message,
data/knews-1.0b.1/src/bg.c:117: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	message[128];
data/knews-1.0b.1/src/bg.c:133: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).
	    if (atoi(buffer) != NNTP_OK_CANPOST &&
data/knews-1.0b.1/src/bg.c:134: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(buffer) != NNTP_OK_NOPOST) {
data/knews-1.0b.1/src/bg.c:159: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).
	    if (atoi(buffer) == NNTP_ERR_NEED_AUTH && bg_start_auth())
data/knews-1.0b.1/src/bg.c:168: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).
	    if (atoi(buffer) == NNTP_ERR_NEED_AUTH && bg_start_auth())
data/knews-1.0b.1/src/bg.c:185: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).
	    if (atoi(buffer) != NNTP_CONT_AUTH)
data/knews-1.0b.1/src/bg.c:196: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).
	    if (atoi(buffer) != NNTP_OK_AUTH) {
data/knews-1.0b.1/src/bg.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	command[512];
data/knews-1.0b.1/src/bg.c:341: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	command[1024];
data/knews-1.0b.1/src/cache.c:289: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		command[32];
data/knews-1.0b.1/src/cache.c:310: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(command, "ARTICLE %ld\r\n", no);
data/knews-1.0b.1/src/cache.c:352: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).
	    if (atoi(buffer) != NNTP_OK_ARTICLE) {
data/knews-1.0b.1/src/color.c:387:37:  [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.
    cmap = (CMAP_ENTRY *)XtRealloc((char *)cmap, cmap_size * sizeof cmap[0]);
data/knews-1.0b.1/src/color.c:566:11:  [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	dither[256];
data/knews-1.0b.1/src/color.c:600:11:  [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	dither[256] = {0, };
data/knews-1.0b.1/src/connect.c:28: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	message[256];
data/knews-1.0b.1/src/connect.c:40: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).
    status = atoi(buffer);
data/knews-1.0b.1/src/connect.c:58: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).
    status = atoi(buffer);
data/knews-1.0b.1/src/connect.c:79: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).
    status = atoi(buffer);
data/knews-1.0b.1/src/connect.c:315: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	message[512];
data/knews-1.0b.1/src/connect.c:329: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).
	status = atoi(buffer);
data/knews-1.0b.1/src/decode.c:85: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.
const char base64_alpha[64] =
data/knews-1.0b.1/src/decode.c:88: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.
const char inv_base64_alpha[256] = {
data/knews-1.0b.1/src/decode.h:5:14:  [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.
extern const char	base64_alpha[64];
data/knews-1.0b.1/src/decode.h:6:14:  [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.
extern const char	inv_base64_alpha[256];
data/knews-1.0b.1/src/domain.c:19:10:  [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).
    fp = fopen(fn, "r");
data/knews-1.0b.1/src/domain.c:21: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	 buffer[256];
data/knews-1.0b.1/src/expand.c:154: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(path + pos, "%ld", global.curr_art->no);
data/knews-1.0b.1/src/file.c:29:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, flags, FILE_MASK);
data/knews-1.0b.1/src/file.c:31:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, flags);
data/knews-1.0b.1/src/file.c:56:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, flags, FILE_MASK);
data/knews-1.0b.1/src/file.c:58:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, flags);
data/knews-1.0b.1/src/file.c:194:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(*name, O_RDWR|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR);
data/knews-1.0b.1/src/font.c:142: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	class[16];
data/knews-1.0b.1/src/font.c:150: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(class, "iso-latin-%d", iso_num);
data/knews-1.0b.1/src/gif_I.h:36:14:  [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	 stack[STACK_SIZE];
data/knews-1.0b.1/src/jpeg.c:32:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char	*jpg_cmap[3]      = {0, };
data/knews-1.0b.1/src/jpeg.c:110: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	buf[JMSG_LENGTH_MAX];
data/knews-1.0b.1/src/k_action.c:27: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	buffer[128];
data/knews-1.0b.1/src/k_edit.c:140: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	buffer[256];
data/knews-1.0b.1/src/k_edit.c:427:2:  [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(node->group_re, &re, sizeof re);
data/knews-1.0b.1/src/k_edit.c:507:6:  [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(node->expr_re, &re, sizeof re);
data/knews-1.0b.1/src/k_edit.c:606: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		buffer[256];
data/knews-1.0b.1/src/k_edit.c:857: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		buffer[256];
data/knews-1.0b.1/src/k_file.c:58:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(file->file_name, O_RDONLY);
data/knews-1.0b.1/src/k_node.c:202:6:  [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, node->group_str, n);
data/knews-1.0b.1/src/k_node.c:205:6:  [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, node->group_str, MAX_GROUP_LEN - 3);
data/knews-1.0b.1/src/k_node.c:206:6:  [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 + MAX_GROUP_LEN - 3, "...", 3);
data/knews-1.0b.1/src/k_node.c:218:2:  [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, node->expr_str, n);
data/knews-1.0b.1/src/mailcap.c:101: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(dest + dest_pos, expn[i], expn_len + 1);
data/knews-1.0b.1/src/mailcap.c:323:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(c, O_RDONLY);
data/knews-1.0b.1/src/main.c:84: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	buffer[256];
data/knews-1.0b.1/src/main.c:85: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	number[32];
data/knews-1.0b.1/src/main.c:92: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(number, "%d", event->request_code);
data/knews-1.0b.1/src/main.c:585: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	 buffer[256];
data/knews-1.0b.1/src/main.c:588:9:  [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).
	  fp = fopen(fn, "r");
data/knews-1.0b.1/src/misc.c:1125: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		buffer[512];
data/knews-1.0b.1/src/misc.c:1162:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	msgid = memcpy(XtMalloc(n + 1), msgid, n + 1);
data/knews-1.0b.1/src/misc.c:1186: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).
	    if (atoi(reply) == NNTP_OK_ARTICLE) {
data/knews-1.0b.1/src/newsrc.c:140: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	command[64];
data/knews-1.0b.1/src/newsrc.c:151: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(command, "NEWGROUPS %02d%02d%02d %02d%02d%02d GMT\r\n",
data/knews-1.0b.1/src/newsrc.c:157: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).
    status = atoi(buffer);
data/knews-1.0b.1/src/newsrc.c:494: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).
	    FILE	*ng = fopen(global.auto_subscribe, "r");
data/knews-1.0b.1/src/newsrc.c:527:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(path, O_RDONLY);
data/knews-1.0b.1/src/newsrc.c:531:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDONLY);
data/knews-1.0b.1/src/newsrc.c:586: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).
    return atoi(tmp);
data/knews-1.0b.1/src/newsrc.c:591: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	message[128];
data/knews-1.0b.1/src/newsrc.c:601: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(message, "Rescan in progress...  ");
data/knews-1.0b.1/src/newsrc.c:607:17:  [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 (!buffer || atoi(buffer) != NNTP_OK_GROUPS)
data/knews-1.0b.1/src/newsrc.c:628: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(p, "%3ld%%", i / global.no_groups);
data/knews-1.0b.1/src/newsrc.c:639: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	command[1024];
data/knews-1.0b.1/src/newsrc.c:658:7:  [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).
		if (atol(buffer) == NNTP_OK_GROUPS) {
data/knews-1.0b.1/src/newsrc.c:698:7:  [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 (atoi(buffer) != NNTP_OK_GROUP)
data/knews-1.0b.1/src/newsrc.c:708:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(p, "%ld%%", i / n);
data/knews-1.0b.1/src/p_attach.c:39:10:  [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).
    fp = fopen(pa->file_name, "r");
data/knews-1.0b.1/src/p_attach.c:42: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(message, "Couldn't open file!");
data/knews-1.0b.1/src/p_attach.c:83:6:  [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(message, "Couldn't guess content-type type.");
data/knews-1.0b.1/src/p_attach.c:90:6:  [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(message, "Maybe text/plain?  "
data/knews-1.0b.1/src/p_attach.c:121:14:  [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	buf[4];
data/knews-1.0b.1/src/p_attach.c:168: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[45];
data/knews-1.0b.1/src/p_attach.c:240:27:  [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 const unsigned char	hex_char[16] = "0123456789ABCDEF";
data/knews-1.0b.1/src/p_attach.c:318: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(message, "File name error!");
data/knews-1.0b.1/src/p_attach.c:353: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(buffer, "[unknown]");
data/knews-1.0b.1/src/p_attach.c:359:6:  [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, pa->type, 15);
data/knews-1.0b.1/src/p_attach.c:360:6:  [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(buffer + 15, "...");
data/knews-1.0b.1/src/p_attach.c:399:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fin = fopen(pa->file_name, "r");
data/knews-1.0b.1/src/p_attach.c:481:6:  [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(message, "Can't send binary file without encoding.");
data/knews-1.0b.1/src/p_attach.c:488:6:  [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(message,
data/knews-1.0b.1/src/p_attach.c:493:6:  [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(message, "QP for binary file?  If you say so...");
data/knews-1.0b.1/src/p_attach.c:495:6:  [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(message, "Quoted-printable = quoted-unreadable.");
data/knews-1.0b.1/src/p_attach.c:498: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(message, "Error!");
data/knews-1.0b.1/src/p_attach.c:515: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	*header[2];
data/knews-1.0b.1/src/p_attach.c:516: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	type_buf[80], subtype_buf[80];
data/knews-1.0b.1/src/p_attach.c:532: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(message, "Parse error!");
data/knews-1.0b.1/src/p_attach.c:537:6:  [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(message, "Consider sepcifying a charset parameter.");
data/knews-1.0b.1/src/p_attach.c:543: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(message, "Warning: No font for that charset.");
data/knews-1.0b.1/src/p_attach.c:550:6:  [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(message, "Warning: No mailcap entry for that type.");
data/knews-1.0b.1/src/p_attach.c:601:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int	fd = open(global.mime_types, O_RDONLY);
data/knews-1.0b.1/src/p_attach.c:627:27:  [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.
			(MimeType *)XtRealloc((char *)mime_types,
data/knews-1.0b.1/src/p_attach.c:655:41:  [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.
    mime_types = (MimeType *)XtRealloc((char *)mime_types,
data/knews-1.0b.1/src/p_check.c:91:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    msgid = memcpy(XtMalloc(len + 1), field, len);
data/knews-1.0b.1/src/p_check.c:150: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(ret, start, n);
data/knews-1.0b.1/src/p_check.c:172: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	buffer[512];
data/knews-1.0b.1/src/p_check.c:223:6:  [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(buffer, "Syntax error in '");
data/knews-1.0b.1/src/p_check.c:227:6:  [2] (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 string.
	    strcat(buffer, "' header.");
data/knews-1.0b.1/src/p_check.c:236:6:  [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(buffer, "Syntax error in '");
data/knews-1.0b.1/src/p_check.c:240:6:  [2] (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 string.
	    strcat(buffer, "' header.");
data/knews-1.0b.1/src/p_check.c:415: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	buffer[1024];
data/knews-1.0b.1/src/p_menu.c:393: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	command[64];
data/knews-1.0b.1/src/p_menu.c:396: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(command, "ARTICLE %ld\r\n", art->no);
data/knews-1.0b.1/src/p_menu.c:398:17:  [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 (!buffer || atoi(buffer) != NNTP_OK_ARTICLE) {
data/knews-1.0b.1/src/p_popup.c:424:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(context->file_name, O_RDONLY);
data/knews-1.0b.1/src/p_popup.c:550: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		buffer[256];
data/knews-1.0b.1/src/p_popup.c:723: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		msg[256];
data/knews-1.0b.1/src/p_popup.c:752: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		msg[256];
data/knews-1.0b.1/src/p_popup.c:781: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		msg[256];
data/knews-1.0b.1/src/p_popup.c:809: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		msg[256];
data/knews-1.0b.1/src/p_popup.c:834: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		msg[256];
data/knews-1.0b.1/src/p_popup.c:870: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	message[128];
data/knews-1.0b.1/src/p_popup.c:879:6:  [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(message, "Failed to start editor!");
data/knews-1.0b.1/src/p_popup.c:882:6:  [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(message, "Editor exited abnormally!");
data/knews-1.0b.1/src/p_popup.c:888: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(message, "Unknown problem with editor!");
data/knews-1.0b.1/src/p_popup.c:924: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	editcmd[512];
data/knews-1.0b.1/src/p_popup.c:979: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	message[256];
data/knews-1.0b.1/src/p_popup.c:1014: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	*expn[3];
data/knews-1.0b.1/src/p_popup.c:1053:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    fd = open(context->file_name, O_RDONLY);
data/knews-1.0b.1/src/p_post.c:28: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	buffer[16834];
data/knews-1.0b.1/src/p_post.c:44: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).
    status = atoi(reply);
data/knews-1.0b.1/src/p_post.c:102: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).
    if (atoi(reply) == NNTP_OK_POSTED)
data/knews-1.0b.1/src/p_post.c:140: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	stderr_buf[STDERR_BUFFLEN];
data/knews-1.0b.1/src/p_post.c:141: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	message[256];
data/knews-1.0b.1/src/p_post.c:187:6:  [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(message, "Failed to start ");
data/knews-1.0b.1/src/p_post.c:192:6:  [2] (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 string.
	    strcat(message, " exited abnormally!");
data/knews-1.0b.1/src/p_post.c:202:2:  [2] (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 string.
	strcat(message, " exited wierdly...");
data/knews-1.0b.1/src/p_post.c:223: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(boundary, "=-=-=__");
data/knews-1.0b.1/src/p_post.c:227: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(boundary + n, "__=-=-=");
data/knews-1.0b.1/src/p_post.c:265: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[80], *boundary = NULL;
data/knews-1.0b.1/src/p_setup.c:262: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	buffer[32];
data/knews-1.0b.1/src/p_setup.c:416:6:  [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(*curr + n, buffer, m + 1);
data/knews-1.0b.1/src/p_setup.c:530: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	*buf[2];
data/knews-1.0b.1/src/p_setup.c:531: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	type[128], subtype[128], *c;
data/knews-1.0b.1/src/p_setup.c:668: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	command[64];
data/knews-1.0b.1/src/p_setup.c:677: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).
	status = atoi(buffer);
data/knews-1.0b.1/src/p_setup.c:766: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	q_buf[32], qq_buf[32];
data/knews-1.0b.1/src/parse.c:22: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(buffer, "%d %3.3s %4d %02d:%02d:%02d GMT",
data/knews-1.0b.1/src/parse.c:592: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(p, c, len);
data/knews-1.0b.1/src/parse.c:694: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(args[n].value, c, len);
data/knews-1.0b.1/src/partial.c:155: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	message[512];
data/knews-1.0b.1/src/partial.c:165: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(message, "Have all parts of message/partial.");
data/knews-1.0b.1/src/partial.c:339:6:  [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	command[128];
data/knews-1.0b.1/src/partial.c:342:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(command, "ARTICLE %ld\r\n", arts[i]);
data/knews-1.0b.1/src/partial.c:344:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    if (!reply || atoi(reply) != NNTP_OK_ARTICLE)
data/knews-1.0b.1/src/partial.c:395:6:  [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 (atoi(buffer) != NNTP_OK_ARTICLE) {
data/knews-1.0b.1/src/partial.c:396:6:  [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	message[256];
data/knews-1.0b.1/src/partial.c:458: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	message[128], *msg_end;
data/knews-1.0b.1/src/partial.c:460: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	type[128], subtype[128];
data/knews-1.0b.1/src/partial.c:461: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	*headers[2];
data/knews-1.0b.1/src/partial.c:462: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	command[256];
data/knews-1.0b.1/src/partial.c:466: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(message, "Building message/partial cache...  ");
data/knews-1.0b.1/src/partial.c:470: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(msg_end, "%ld/%ld", i, n_arts);
data/knews-1.0b.1/src/partial.c:476: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(command, "HEAD %ld\r\n", arts[i]->no);
data/knews-1.0b.1/src/partial.c:480:6:  [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 (atoi(reply) != NNTP_OK_HEAD)
data/knews-1.0b.1/src/partial.c:535: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	message[256];
data/knews-1.0b.1/src/partial.c:554: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).
    if (atoi(reply) == NNTP_OK_HEAD) {
data/knews-1.0b.1/src/partial.c:558: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(message,
data/knews-1.0b.1/src/procs.c:567:6:  [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 (atoi(buffer) == NNTP_OK_GROUPS)
data/knews-1.0b.1/src/procs.c:570:6:  [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	message[128];
data/knews-1.0b.1/src/read.c:270:6:  [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(data + data_len, buffer, n);
data/knews-1.0b.1/src/read.c:607: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	type_buf[MIME_BUF_LEN + 1], subtype_buf[MIME_BUF_LEN + 1];
data/knews-1.0b.1/src/read.c:670: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(type_buf, "message");
data/knews-1.0b.1/src/read.c:671: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(subtype_buf, "rfc822");
data/knews-1.0b.1/src/read.c:854: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	command[256];
data/knews-1.0b.1/src/read.c:864:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(command, "ARTICLE %ld\r\n", art->no);
data/knews-1.0b.1/src/read.c:878:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    if (!buffer || atoi(buffer) != NNTP_OK_ARTICLE) {
data/knews-1.0b.1/src/read.c:1008:6:  [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 (atoi(reply) == NNTP_OK_ARTICLE) {
data/knews-1.0b.1/src/read.c:1013:6:  [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	message[256];
data/knews-1.0b.1/src/read.c:1048: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	*mime_hack[4];
data/knews-1.0b.1/src/resource.c:280:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	res = (char **)XtMalloc(sizeof res[0]);
data/knews-1.0b.1/src/resource.c:288: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.
    res = (char **)XtMalloc(n_alloc * sizeof res[0]);
data/knews-1.0b.1/src/resource.c:294:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    res = (char **)XtRealloc((char *)res, n_alloc * sizeof res[0]);
data/knews-1.0b.1/src/resource.c:294:32:  [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.
	    res = (char **)XtRealloc((char *)res, n_alloc * sizeof res[0]);
data/knews-1.0b.1/src/resource.c:428: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(str,
data/knews-1.0b.1/src/resource.c:477: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(str,
data/knews-1.0b.1/src/resource.c:518: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(str,
data/knews-1.0b.1/src/resource.c:540:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(path, O_RDONLY);
data/knews-1.0b.1/src/resource.c:547: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	default_db[4096];
data/knews-1.0b.1/src/resource.c:603:35:  [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.
	    res = (XrmQuark *)XtRealloc((char *)res, n_alloc * sizeof res[0]);
data/knews-1.0b.1/src/save.c:83:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, p1 + 1, len);
data/knews-1.0b.1/src/save.c:98:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(buf, c, len);
data/knews-1.0b.1/src/save.c:107: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(buf, c, len);
data/knews-1.0b.1/src/save.c:188:38:  [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.
	    result = (ARTICLE **)XtRealloc((char *)result,
data/knews-1.0b.1/src/save.c:211: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	email[128];
data/knews-1.0b.1/src/save.c:260:6:  [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	command[32];
data/knews-1.0b.1/src/save.c:263:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(command, "ARTICLE %ld\r\n", arts[i]->no);
data/knews-1.0b.1/src/save.c:267: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).
	    if (atoi(buffer) != NNTP_OK_ARTICLE) {
data/knews-1.0b.1/src/save.c:279: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(p, "%ld", i + 1);
data/knews-1.0b.1/src/save.c:338: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	message[128];
data/knews-1.0b.1/src/save.c:365: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(message, "Saving...   ");
data/knews-1.0b.1/src/save.c:390: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(message, "%ld articles saved, failed to get %ld articles.",
data/knews-1.0b.1/src/save.c:394: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(message, "%ld articles saved.", result[0]);
data/knews-1.0b.1/src/save.c:404: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	message[128];
data/knews-1.0b.1/src/save.c:445: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	message[128];
data/knews-1.0b.1/src/save.c:475: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(message, "Saving to temp file...   ");
data/knews-1.0b.1/src/save.c:502: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(message,
data/knews-1.0b.1/src/save.c:508: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(message,
data/knews-1.0b.1/src/save.c:1087:2:  [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(url, report->line + report->start, url_len);
data/knews-1.0b.1/src/save.c:1101: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(prog + i, url, url_len);
data/knews-1.0b.1/src/search.c:97: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	message[80];
data/knews-1.0b.1/src/search.c:100:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(message, "Couldn't find match %ld", curr_xpat + 1);
data/knews-1.0b.1/src/search.c:102:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(message, "Match %ld of %ld", curr_xpat + 1, n_xpats);
data/knews-1.0b.1/src/search.c:293: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	command[80], message[80];
data/knews-1.0b.1/src/search.c:304:6:  [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(command, "ARTICLE ");
data/knews-1.0b.1/src/search.c:306:6:  [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(command, "HEAD ");
data/knews-1.0b.1/src/search.c:309:6:  [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(command, "BODY ");
data/knews-1.0b.1/src/search.c:323: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(message, "Searching...   ");
data/knews-1.0b.1/src/search.c:331: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(mp, "%ld", n_arts++);
data/knews-1.0b.1/src/search.c:334: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(cp, "%ld\r\n", art->no);
data/knews-1.0b.1/src/search.c:340:6:  [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).
	n = atoi(reply);
data/knews-1.0b.1/src/search.c:405: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	command[512];
data/knews-1.0b.1/src/search.c:442: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).
    if (atoi(buffer) != NNTP_OK_HEAD) {
data/knews-1.0b.1/src/search.c:452: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(command, "Number of matches:  ");
data/knews-1.0b.1/src/search.c:471:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(c, "%ld", n_xpats);
data/knews-1.0b.1/src/search.c:1061:6:  [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	command[512];
data/knews-1.0b.1/src/search.c:1075: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).
	    if (atoi(reply) == NNTP_OK_GROUP) {
data/knews-1.0b.1/src/search.c:1166: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	buffer[512];
data/knews-1.0b.1/src/search.c:1168: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(buffer, c, n);
data/knews-1.0b.1/src/server.c:174: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	message[128];
data/knews-1.0b.1/src/server.c:465: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).
    i = atoi(reply);
data/knews-1.0b.1/src/server.c:468: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	buffer[1024];
data/knews-1.0b.1/src/server.c:478: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).
	if (!reply || atoi(reply) != 350)
data/knews-1.0b.1/src/server.c:484: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).
	if (!reply || atoi(reply) != 250)
data/knews-1.0b.1/src/server.c:490: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	buffer[1024];
data/knews-1.0b.1/src/server.c:501: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).
	if (!reply || atoi(reply) != NNTP_CONT_AUTH)
data/knews-1.0b.1/src/server.c:507: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).
	if (!reply || atoi(reply) != NNTP_OK_AUTH)
data/knews-1.0b.1/src/sysdeps.c:284: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(&ret->addr, news, 4);
data/knews-1.0b.1/src/sysdeps.c:294: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).
	    port = atoi(c + 1);
data/knews-1.0b.1/src/sysdeps.c:322:2:  [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(&addr, ADDR(hp), hp->h_length);
data/knews-1.0b.1/src/sysdeps.c:508:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "%lu,%lu,%lu,%lu,%lu,%lu",
data/knews-1.0b.1/src/sysdeps.c:598:5:  [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(src, dest, n);
data/knews-1.0b.1/src/sysdeps.c:616: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[16];
data/knews-1.0b.1/src/sysdeps.c:618: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(buf, "fd %d", i);
data/knews-1.0b.1/src/tag.c:173:6:  [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	buffer[80];
data/knews-1.0b.1/src/tag.c:175:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(buffer, "%ld tagged articles.", no_tagged);
data/knews-1.0b.1/src/tag.c:186: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	message[80];
data/knews-1.0b.1/src/tag.c:213: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(message, "%ld tagged articles", no_tagged);
data/knews-1.0b.1/src/tag.c:221: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	message[80];
data/knews-1.0b.1/src/tag.c:244: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(message, "%ld tagged articles", no_tagged);
data/knews-1.0b.1/src/tag.c:254: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	message[80];
data/knews-1.0b.1/src/tag.c:288:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(message, "%ld tagged articles", no_tagged);
data/knews-1.0b.1/src/tag.c:297: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	message[80];
data/knews-1.0b.1/src/tag.c:326: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(message, "%ld tagged articles", no_tagged);
data/knews-1.0b.1/src/thread.c:211: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).
	if (atol(buffer) < first_art)
data/knews-1.0b.1/src/thread.c:445:14:  [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).
    art_no = atol(buffer);
data/knews-1.0b.1/src/thread.c:500: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).
    bytes = atol(c2);
data/knews-1.0b.1/src/thread.c:505: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).
    lines = atol(c1);
data/knews-1.0b.1/src/thread.c:530:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	art->msgid = memcpy(XtMalloc(msgid_len + 1), msgid, msgid_len + 1);
data/knews-1.0b.1/src/thread.c:630:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		a->msgid = memcpy(XtMalloc(msgid_len + 1), msgid,
data/knews-1.0b.1/src/thread.c:714: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	buffer[160];
data/knews-1.0b.1/src/thread.c:721: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(buffer, "%4hu  ", art->lines);
data/knews-1.0b.1/src/thread.c:728: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(c, author, len);
data/knews-1.0b.1/src/thread.c:746: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	command[512];
data/knews-1.0b.1/src/thread.c:767:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(command, "Reading group... %3ld%%",
data/knews-1.0b.1/src/thread.c:787: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	command[64 * 12 + 1];
data/knews-1.0b.1/src/thread.c:800: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(c, "HEAD\r\nNEXT\r\n");
data/knews-1.0b.1/src/thread.c:833:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	art->msgid = memcpy(XtMalloc(msgid_len + 1), msgid, msgid_len + 1);
data/knews-1.0b.1/src/thread.c:897:11:  [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).
		bytes = atol(buffer);
data/knews-1.0b.1/src/thread.c:921:11:  [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).
		lines = atol(buffer);
data/knews-1.0b.1/src/thread.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	command[512];
data/knews-1.0b.1/src/thread.c:1026:6:  [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 (atoi(buffer) == NNTP_OK_HEAD) {
data/knews-1.0b.1/src/thread.c:1054:6:  [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 (atoi(buffer) != NNTP_OK_NOTEXT)
data/knews-1.0b.1/src/thread.c:1060:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(command,
data/knews-1.0b.1/src/thread.c:1082:6:  [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 (atoi(buffer) == NNTP_OK_HEAD) {
data/knews-1.0b.1/src/thread.c:1101: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	command[512];
data/knews-1.0b.1/src/thread.c:1110: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).
    if (!reply || atoi(reply) != NNTP_OK_GROUP)
data/knews-1.0b.1/src/thread.c:1134: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	command[512];
data/knews-1.0b.1/src/thread.c:1155: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(command, "XOVER %ld-%ld\r\n", first, last);
data/knews-1.0b.1/src/thread.c:1159:6:  [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 (atoi(buffer) == NNTP_OK_XOVER) {
data/knews-1.0b.1/src/thread.c:1161: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).
	    if (!buffer || atoi(buffer) != NNTP_OK_GROUP ||
data/knews-1.0b.1/src/thread.c:1181:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(command, "STAT %ld\r\n", first);
data/knews-1.0b.1/src/thread.c:1186: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).
	    ret = atoi(buffer);
data/knews-1.0b.1/src/thread.c:1206: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	message[256];
data/knews-1.0b.1/src/thread.c:1223: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).
    if (reply && atoi(reply) == NNTP_OK_GROUP) {
data/knews-1.0b.1/src/thread.c:1237: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).
    } else if (atoi(reply) == NNTP_OK_GROUP) {
data/knews-1.0b.1/src/thread.c:1307: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	message[128];
data/knews-1.0b.1/src/thread.c:1308: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	first_buf[32];
data/knews-1.0b.1/src/thread.c:1316: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(first_buf, "%ld", first);
data/knews-1.0b.1/src/thread.c:1318: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(message,
data/knews-1.0b.1/src/util.c:446:12:  [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).
		art_no = atol(c2);
data/knews-1.0b.1/src/uudecode.c:76:2:  [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(*file_name, &subject[pmatch[UU_NAME_OFFSET].rm_so], len);
data/knews-1.0b.1/src/uudecode.c:91: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	out_buf[16384];
data/knews-1.0b.1/src/uudecode.c:135:6:  [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(out_buf + pos, buffer, n);
data/knews-1.0b.1/src/uudecode.c:210: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	message[128];
data/knews-1.0b.1/src/uudecode.c:223: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(message, "Saving to temp file...   ");
data/knews-1.0b.1/src/widgets.c:66: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(buffer, group->name, n);
data/knews-1.0b.1/src/widgets.c:72: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(buffer, "%6ld", group->no_unread);
data/knews-1.0b.1/src/widgets.c:82:2:  [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, group->description, n);
data/knews-1.0b.1/src/widgets.c:98: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(buffer, group->subscribed ? "[s] " : "    ", 4);
data/knews-1.0b.1/src/widgets.c:107: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(buffer, group->name, n);
data/knews-1.0b.1/src/widgets.c:113: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(buffer, "%6ld", num);
data/knews-1.0b.1/src/widgets.c:123:2:  [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, group->description, n);
data/knews-1.0b.1/src/widgets.c:138: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(buffer, "   ");
data/knews-1.0b.1/src/widgets.c:140: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(buffer, "%3ld", subj->no_unread);
data/knews-1.0b.1/src/widgets.c:164:2:  [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, "Re: ", 4);
data/knews-1.0b.1/src/widgets.c:173: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(buffer, subj->subject, i);
data/knews-1.0b.1/src/widgets.c:186:2:  [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, author, n);
data/knews-1.0b.1/src/widgets.c:334: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	buffer[LINE_LEN];
data/knews-1.0b.1/src/widgets.c:396: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	buffer[LINE_LEN];
data/knews-1.0b.1/src/widgets.c:448: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	buffer[LINE_LEN];
data/knews-1.0b.1/src/widgets.c:485:6:  [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	buffer[LINE_LEN];
data/knews-1.0b.1/src/widgets.c:591: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	buffer[LINE_LEN];
data/knews-1.0b.1/src/widgets.c:656: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	buffer[LINE_LEN];
data/knews-1.0b.1/src/xface.c:88: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[4000];
data/knews-1.0b.1/src/xface.c:89:14:  [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	image[FACE_SIZE * FACE_SIZE];
data/knews-1.0b.1/src/xutil.c:226: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	message[512];
data/knews-1.0b.1/src/xutil.c:254: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(message, "%ld unread articles with Subject: ",
data/knews-1.0b.1/src/xutil.c:331: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	message[128];
data/knews-1.0b.1/src/xutil.c:420: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	message[128];
data/knews-1.0b.1/src/xutil.c:478: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).
    if (atoi(buffer) == NNTP_OK_GROUPS)
data/knews-1.0b.1/src/xutil.c:481: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	message[128];
data/knews-1.0b.1/src/xutil.c:717: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	buffer[1024];
data/knews-1.0b.1/src/xutil.c:720: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(buffer, "Parse error in regexp:\n\n");
data/knews-1.0b.1/src/xutil.c:733: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	buffer[1024];
data/knews-1.0b.1/src/xutil.c:739:2:  [2] (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 string.
	strcat(buffer, ":\n\n");
data/knews-1.0b.1/src/xutil.c:763: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[128];
data/knews-1.0b.1/util/knewsd/knewsd.c:163: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	art[32];
data/knews-1.0b.1/util/knewsd/knewsd.c:197: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(art, "%ld", arts[no]);
data/knews-1.0b.1/util/knewsd/knewsd.c:198:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(art, O_RDONLY);
data/knews-1.0b.1/util/knewsd/knewsd.c:301: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		path[1024];
data/knews-1.0b.1/util/knewsd/knewsd.c:349:23:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    arts[n_arts++] = atol(dp->d_name);
data/knews-1.0b.1/util/knewsd/knewsd.c:399:7:  [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).
	fp = fopen(active, "r");
data/knews-1.0b.1/util/knewsd/knewsd.c:411:7:  [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).
	fp = fopen(newsgroups, "r");
data/knews-1.0b.1/util/knewsd/knewsd.c:618: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	buffer[1024];
data/knews-1.0b.1/util/knewsd/knewsd.c:653: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(buffer, ".overview");
data/knews-1.0b.1/util/knewsd/knewsd.c:655:10:  [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).
    fp = fopen(buffer, "r");
data/knews-1.0b.1/util/knewsd/knewsd.c:665: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).
		(no = atol(buffer)) < first) {
data/knews-1.0b.1/util/knewsd/knewsd.c:708: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(buffer, ".overview");
data/knews-1.0b.1/util/knewsd/knewsd.c:710:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    fp = fopen(buffer, "a");
data/knews-1.0b.1/util/knewsd/knewsd.c:723:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(buffer, "%ld", arts[n]);
data/knews-1.0b.1/util/knewsd/knewsd.c:724:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    fd = open(buffer, O_RDONLY);
data/knews-1.0b.1/util/knewsd/knewsd.c:777: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	command[512];
data/knews-1.0b.1/util/knewsd/knewsd.c:929: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	buffer[16384 + 3];
data/knews-1.0b.1/util/knewsd/knewsd.c:984: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	result[32];
data/knews-1.0b.1/util/knewsd/knewsd.c:990: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(result, "%ld", (long)st.st_size);
data/knews-1.0b.1/util/tcp_relay/tcp_relay.c:68: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(&allowed_hosts[n_hosts++], hent->h_addr, hent->h_length);
data/knews-1.0b.1/util/tcp_relay/tcp_relay.c:96:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	addr.sin_port = htons(atoi(c));
data/knews-1.0b.1/util/tcp_relay/tcp_relay.c:105: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(&addr.sin_addr, hent->h_addr, hent->h_length);
data/knews-1.0b.1/util/tcp_relay/tcp_relay.c:112: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 buffer[16384];
data/knews-1.0b.1/Widgets/ArtText.c:381: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(node->cli.str);
data/knews-1.0b.1/Widgets/ArtText.c:495: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).
    long	tmp = strlen(cat);
data/knews-1.0b.1/Widgets/ArtText.c:687:40:  [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).
	    XTextWidth(font, stream->cli.str, strlen(stream->cli.str)) +
data/knews-1.0b.1/Widgets/ArtText.c:1396: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).
	long    len = strlen(report.line);
data/knews-1.0b.1/Widgets/ArtText.c:1709:37:  [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).
    node->str.str = tab_strdup(str, strlen(str), &node->str.len);
data/knews-1.0b.1/Widgets/ArtText.c:1733: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).
	    n = strlen(last->cli.str) + strlen(str) + 4;
data/knews-1.0b.1/Widgets/ArtText.c:1733: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).
	    n = strlen(last->cli.str) + strlen(str) + 4;
data/knews-1.0b.1/Widgets/ArtText.c:1774:37:  [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).
    node->str.str = tab_strdup(str, strlen(str), &node->str.len);
data/knews-1.0b.1/Widgets/ArtTree.c:1018: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).
				strlen(node->label),
data/knews-1.0b.1/Widgets/ArtTree.c:1037: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).
				strlen(node->label),
data/knews-1.0b.1/Widgets/ArtTree.c:1353: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).
			    strlen(node->label), width);
data/knews-1.0b.1/Widgets/ArtTree.c:1410: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).
			    strlen(node->label), width);
data/knews-1.0b.1/Widgets/FileSel.c:296: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).
		XtMalloc(strlen(w->filesel.directory) + strlen(dir) + 8);
data/knews-1.0b.1/Widgets/FileSel.c:296:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		XtMalloc(strlen(w->filesel.directory) + strlen(dir) + 8);
data/knews-1.0b.1/Widgets/FileSel.c:308: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(new_dir);
data/knews-1.0b.1/Widgets/FileSel.c:362: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(buffer);
data/knews-1.0b.1/Widgets/FileSel.c:420: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(file) + strlen(w->filesel.directory) + 8;
data/knews-1.0b.1/Widgets/FileSel.c:420: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).
    len = strlen(file) + strlen(w->filesel.directory) + 8;
data/knews-1.0b.1/Widgets/FileSel.c:489: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).
	long	len = strlen(buffer);
data/knews-1.0b.1/Widgets/FileSel.c:731:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	new->filesel.directory = XtMalloc(strlen(home) + strlen(dir) + 4);
data/knews-1.0b.1/Widgets/FileSel.c:731: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).
	new->filesel.directory = XtMalloc(strlen(home) + strlen(dir) + 4);
data/knews-1.0b.1/Widgets/Knapp.c:230: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).
	    len = strlen(label);
data/knews-1.0b.1/Widgets/Knapp.c:286: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(w->knapp.labels[n]));
data/knews-1.0b.1/Widgets/Knapp.c:370: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).
		    label, strlen(label));
data/knews-1.0b.1/Widgets/Message.c:111: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).
    n = strlen(message);
data/knews-1.0b.1/Widgets/Message.c:144: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(c);
data/knews-1.0b.1/Widgets/Message.c:227: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).
	    len = strlen(c);
data/knews-1.0b.1/Widgets/ScrList.c:323: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).
		    *string, strlen(*string));
data/knews-1.0b.1/Widgets/ScrList.c:981: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(string);
data/knews-1.0b.1/Widgets/ScrList.c:1013: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(string);
data/knews-1.0b.1/Widgets/StringG.c:95:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	XTextWidth(g->string_g.font, g->menu_g.label, strlen(g->menu_g.label));
data/knews-1.0b.1/Widgets/StringG.c:159: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).
		g->menu_g.label, strlen(g->menu_g.label));
data/knews-1.0b.1/Widgets/TextField.c:342: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).
	long	len = p ? p - c : strlen(c);
data/knews-1.0b.1/Widgets/TextField.c:362: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).
	    long	len = p ? p - c : strlen(c);
data/knews-1.0b.1/Widgets/TextField.c:507: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).
	long	tmp = strlen(w->textfield.lines[n].buf);
data/knews-1.0b.1/Widgets/TextField.c:631: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).
	long	 len = strlen(str);
data/knews-1.0b.1/Widgets/TextField.c:819: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).
    n = strlen(w->textfield.lines[caret_y].buf);
data/knews-1.0b.1/Widgets/TextField.c:928: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).
    pos = strlen(w->textfield.lines[line].buf);
data/knews-1.0b.1/Widgets/TextField.c:929: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(c);
data/knews-1.0b.1/Widgets/TextField.c:1074: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).
    n = strlen(c);
data/knews-1.0b.1/Widgets/TextField.c:1107: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).
    n = strlen(c);
data/knews-1.0b.1/Widgets/TextField.c:1142: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).
    n = strlen(c);
data/knews-1.0b.1/Widgets/TextField.c:1185: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(c);
data/knews-1.0b.1/Widgets/TextField.c:1234: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(c);
data/knews-1.0b.1/Widgets/TextField.c:1323:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(params[0]) < 15) {
data/knews-1.0b.1/Widgets/TextField.c:1394: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).
    n = strlen(params[0]);
data/knews-1.0b.1/Widgets/TextField.c:1398: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(w->textfield.lines[line].buf);
data/knews-1.0b.1/Widgets/TextField.c:1522: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).
    n = strlen(w->textfield.lines[y].buf);
data/knews-1.0b.1/Widgets/TextField.c:1665:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (*no_params == 1 && strlen(params[0]) < 15) {
data/knews-1.0b.1/Widgets/TextField.c:2033: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).
	n += strlen(w->textfield.lines[i].buf);
data/knews-1.0b.1/Widgets/TextField.c:2037: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).
    n = strlen(buffer);
data/knews-1.0b.1/Widgets/TextField.c:2041: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).
	n += strlen(buffer + n);
data/knews-1.0b.1/Widgets/TextField.c:2066: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(w->textfield.lines[start].buf) - w->textfield.sel_start_x + 1;
data/knews-1.0b.1/Widgets/TextField.c:2068: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(w->textfield.lines[n].buf) + 1;
data/knews-1.0b.1/Widgets/TextField.c:2086: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).
    n = strlen(c);
data/knews-1.0b.1/Widgets/TextField.c:2106: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(buffer);
data/knews-1.0b.1/Widgets/TextField.c:2112: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(buffer + len);
data/knews-1.0b.1/Widgets/TextField.c:2117: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).
    n = strlen(c);
data/knews-1.0b.1/Widgets/TextField.c:2183: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).
	n = strlen(w->textfield.lines[line].buf);
data/knews-1.0b.1/Widgets/TextField.c:2197: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).
	n = strlen(w->textfield.lines[line].buf);
data/knews-1.0b.1/Widgets/TextField.c:2224: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).
	n = strlen(w->textfield.lines[line + m].buf) - pos;
data/knews-1.0b.1/Widgets/TextField.c:2260: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).
	n = strlen(c);
data/knews-1.0b.1/Widgets/Util.c:358: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).
    if (!s || strlen(s) > 30)
data/knews-1.0b.1/Widgets/Util.c:435:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        *len_ret    = strlen(name);
data/knews-1.0b.1/Widgets/Util.c:451: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(w->core.name);
data/knews-1.0b.1/Widgets/Util.c:452: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).
        *len_ret = len + strlen(class) + 2;
data/knews-1.0b.1/Widgets/Util.c:472: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).
        *len_ret = strlen((char *)*val_ret);
data/knews-1.0b.1/regexp/engine.c:91: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).
		stop = start + strlen(start);
data/knews-1.0b.1/regexp/main.c:93: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).
		subs[0].rm_eo = strlen(argv[optind]) - endoff;
data/knews-1.0b.1/regexp/main.c:145: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).
		inbuf[strlen(inbuf)-1] = '\0';	/* get rid of stupid \n */
data/knews-1.0b.1/regexp/main.c:167: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).
	if (strcmp(erbuf, badpat) != 0 || ne != strlen(badpat)+1) {
data/knews-1.0b.1/regexp/main.c:174: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).
						ne != strlen(badpat)+1) {
data/knews-1.0b.1/regexp/main.c:180: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).
	if (strcmp(erbuf, bpname) != 0 || ne != strlen(bpname)+1) {
data/knews-1.0b.1/regexp/main.c:191: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).
	} else if (ne != strlen(erbuf)+1) {
data/knews-1.0b.1/regexp/main.c:227: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).
	re.re_endp = (opts&REG_PEND) ? f0copy + strlen(f0copy) : NULL;
data/knews-1.0b.1/regexp/main.c:440: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).
	if (sub.rm_eo > strlen(str)) {
data/knews-1.0b.1/regexp/main.c:447: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).
	shlen = (int)strlen(should);
data/knews-1.0b.1/regexp/main.c:467: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).
	shlen = strlen(at);
data/knews-1.0b.1/regexp/main.c:506: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).
	assert(strlen(efbuf) < sizeof(efbuf));
data/knews-1.0b.1/regexp/regcomp.c:111: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((char *)pattern);
data/knews-1.0b.1/regexp/regcomp.c:746:40:  [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 (u = cp->multis; *u != '\0'; u += strlen(u) + 1)
data/knews-1.0b.1/regexp/regcomp.c:1160: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).
	cs->smultis += strlen(cp) + 1;
data/knews-1.0b.1/regexp/regcomp.c:1184: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).
	register size_t len = strlen(fp);
data/knews-1.0b.1/regexp/regcomp.c:1226:40:  [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 (p = cs->multis; *p != '\0'; p += strlen(p) + 1)
data/knews-1.0b.1/regexp/regerror.c:86: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).
			assert(strlen(convbuf) < sizeof(convbuf));
data/knews-1.0b.1/regexp/regerror.c:92: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(s) + 1;
data/knews-1.0b.1/regexp/regerror.c:97:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			(void) strncpy(errbuf, s, errbuf_size-1);
data/knews-1.0b.1/regexp/split.c:173: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).
			buf[strlen(buf)-1] = '\0';	/* stomp newline */
data/knews-1.0b.1/src/actions.c:392:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if (art->from && !art->read && art->pixmap != None)
data/knews-1.0b.1/src/actions.c:406:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (art->from && ! art->read && art->pixmap != None)
data/knews-1.0b.1/src/ahead.c:100: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).
    ret = XtMalloc(strlen(cache_dir) + strlen(group_name) + 2);
data/knews-1.0b.1/src/ahead.c:100:40:  [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 = XtMalloc(strlen(cache_dir) + strlen(group_name) + 2);
data/knews-1.0b.1/src/bg.c:135: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).
		if (strlen(buffer) > 80)
data/knews-1.0b.1/src/bg.c:349:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(auth_info_user) > 480 || strlen(auth_info_pass) > 480) {
data/knews-1.0b.1/src/bg.c:349: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).
    if (strlen(auth_info_user) > 480 || strlen(auth_info_pass) > 480) {
data/knews-1.0b.1/src/cache.c:272:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (art && (!art->from || art->read || cached(art->no)))
data/knews-1.0b.1/src/cache.c:420: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).
    cache_dir_len = strlen(cache_dir);
data/knews-1.0b.1/src/child.c:239: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).
	i = strlen(context->stderr_buf);
data/knews-1.0b.1/src/child.c:244:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    i = read(context->stderr_fd, c, n);
data/knews-1.0b.1/src/child.c:266:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    (void)read(pipes[0], &c, 1);
data/knews-1.0b.1/src/child.c:341: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).
    i = strlen(context->stderr_buf);
data/knews-1.0b.1/src/child.c:347:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	i = read(context->stderr_fd, c, n);
data/knews-1.0b.1/src/child.c:487:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	(void)read(pipes[0], &result, 1);
data/knews-1.0b.1/src/connect.c:42: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(buffer) > 100)
data/knews-1.0b.1/src/connect.c:64: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(buffer) > 100)
data/knews-1.0b.1/src/expand.c:14: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).
    dest = result = XtMalloc(2 * strlen(src) + 3);
data/knews-1.0b.1/src/expand.c:27: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).
    return XtRealloc(result, strlen(result) + 1);
data/knews-1.0b.1/src/expand.c:59: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).
		n = strlen(type) + strlen(subtype) + 8;
data/knews-1.0b.1/src/expand.c:59:22:  [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).
		n = strlen(type) + strlen(subtype) + 8;
data/knews-1.0b.1/src/expand.c:65: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).
		pos += strlen(dest + pos);
data/knews-1.0b.1/src/expand.c:74: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).
		    if (strlen(args[i].name) == p - src &&
data/knews-1.0b.1/src/expand.c:83: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).
		n = strlen(args[i].value);
data/knews-1.0b.1/src/expand.c:90: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).
		pos += strlen(dest + pos);
data/knews-1.0b.1/src/expand.c:155: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).
		pos += strlen(path + pos);
data/knews-1.0b.1/src/expand.c:176: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).
		clen = strlen(c);
data/knews-1.0b.1/src/expand.c:190: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).
		    clen = strlen(c);
data/knews-1.0b.1/src/expand.c:202:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    clen = strlen(c);
data/knews-1.0b.1/src/file.c:238:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((n = read(fd, buffer + pos, len - pos)) != 0)
data/knews-1.0b.1/src/global.h:74:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned char	read;
data/knews-1.0b.1/src/k_action.c:68:2:  [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(buffer, params[0], 40);
data/knews-1.0b.1/src/k_action.c:84:2:  [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(buffer, params[1], 40);
data/knews-1.0b.1/src/k_edit.c:476: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).
	if (buffer[0] != '<' || buffer[strlen(buffer) - 1] != '>') {
data/knews-1.0b.1/src/k_file.c:308: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 (expr[0] != '<' || expr[strlen(expr) - 1] != '>') {
data/knews-1.0b.1/src/k_kill.c:35:44:  [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).
    art = find_article(node->expr_str + 1, strlen(node->expr_str) - 2);
data/knews-1.0b.1/src/k_kill.c:45:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!art || !art->from || art->read || art->pixmap != None)
data/knews-1.0b.1/src/k_kill.c:60:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!art || !art->from || art->read || art->pixmap != None)
data/knews-1.0b.1/src/k_kill.c:252:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (art->from && !art->read && art->pixmap == None &&
data/knews-1.0b.1/src/k_kill.c:271:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (art->from && art->pixmap == None && !art->read &&
data/knews-1.0b.1/src/k_kill.c:400:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (art->xref && !art->read && art->pixmap == None &&
data/knews-1.0b.1/src/k_kill.c:419:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (art->xref && art->pixmap == None && !art->read &&
data/knews-1.0b.1/src/k_node.c:126: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 (expr[0] != '<' || expr[strlen(expr) - 1] != '>') {
data/knews-1.0b.1/src/k_node.c:200: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).
	n = strlen(node->group_str);
data/knews-1.0b.1/src/k_node.c:215: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).
	n = strlen(node->expr_str);
data/knews-1.0b.1/src/mailcap.c:38: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).
    n = strlen(token);
data/knews-1.0b.1/src/mailcap.c:95:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int	expn_len = strlen(expn[i]);
data/knews-1.0b.1/src/main.c:514: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).
	int	n = strlen(argv[1]);
data/knews-1.0b.1/src/misc.c:255:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if (!art->read) {
data/knews-1.0b.1/src/misc.c:336:63:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    for (i = 0 ; i < n ; i++) if (arts[i]->from && !arts[i]->read) {
data/knews-1.0b.1/src/misc.c:420:54:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		    if (!art->from || art->subject != subj || art->read)
data/knews-1.0b.1/src/misc.c:447:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if (art->from && !art->read && art->pixmap == None) {
data/knews-1.0b.1/src/misc.c:494:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if (art->read) {
data/knews-1.0b.1/src/misc.c:575:62:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    for (i = 0 ; i < n ; i++) if (arts[i]->from && arts[i]->read) {
data/knews-1.0b.1/src/misc.c:611:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (art->from && art->read) {
data/knews-1.0b.1/src/misc.c:635:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if (art->read && art->killed && art->from) {
data/knews-1.0b.1/src/misc.c:1156: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).
	n = strlen(msgid);
data/knews-1.0b.1/src/misc.c:1191: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).
		if (strlen(reply) > 200)
data/knews-1.0b.1/src/newsrc.c:372: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).
		long	len = strlen(group->description);
data/knews-1.0b.1/src/newsrc.c:375: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 (len >= strlen(c))
data/knews-1.0b.1/src/newsrc.c:499:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((c = getc(ng)) != EOF)
data/knews-1.0b.1/src/newsrc.c:602: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).
    p = message + strlen(message);
data/knews-1.0b.1/src/newsrc.c:646: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(global.groups[j]->name) > 480) {
data/knews-1.0b.1/src/p_attach.c:46:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((ch = getc(fp)) != EOF)
data/knews-1.0b.1/src/p_attach.c:104:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(fin)) != EOF) {
data/knews-1.0b.1/src/p_attach.c:243:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    next = getc(fin);
data/knews-1.0b.1/src/p_attach.c:247:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	next = getc(fin);
data/knews-1.0b.1/src/p_attach.c:355: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).
	n = strlen(pa->type);
data/knews-1.0b.1/src/p_attach.c:363: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).
    n = strlen(buffer);
data/knews-1.0b.1/src/p_attach.c:384: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).
    n += strlen(buffer + n);
data/knews-1.0b.1/src/p_attach.c:386:5:  [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(buffer + n, pa->file_name, 248 - n);
data/knews-1.0b.1/src/p_attach.c:524: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).
    header[0] = XtMalloc(strlen(type) + 32);
data/knews-1.0b.1/src/p_check.c:40: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).
	    len = strlen(c);
data/knews-1.0b.1/src/p_check.c:55:22:  [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	n = prefix ? strlen(prefix) : 0;
data/knews-1.0b.1/src/p_check.c:211:6:  [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(buffer, art, 128);
data/knews-1.0b.1/src/p_check.c:226:6:  [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(buffer, art, len);
data/knews-1.0b.1/src/p_check.c:239:6:  [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(buffer, art, len);
data/knews-1.0b.1/src/p_check.c:509: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(newsgroups) > 512)
data/knews-1.0b.1/src/p_menu.c:338: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).
	int	n = strlen(params[1]);
data/knews-1.0b.1/src/p_popup.c:988:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(command) > 200)
data/knews-1.0b.1/src/p_post.c:56:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((ch = getc(fp)), !feof(fp)) {
data/knews-1.0b.1/src/p_post.c:188:6:  [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(message, agent, 200);
data/knews-1.0b.1/src/p_post.c:191:6:  [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(message, agent, 200);
data/knews-1.0b.1/src/p_post.c:196:2:  [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(message, agent, 200);
data/knews-1.0b.1/src/p_post.c:197: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).
	sprintf(message + strlen(message), " caught %s!",
data/knews-1.0b.1/src/p_post.c:201:2:  [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(message, agent, 200);
data/knews-1.0b.1/src/p_post.c:224: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).
    n = strlen(boundary);
data/knews-1.0b.1/src/p_setup.c:98:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(sig)) != EOF)
data/knews-1.0b.1/src/p_setup.c:125: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).
    if (may_fold && col + strlen(msgid) > 72) {
data/knews-1.0b.1/src/p_setup.c:353: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 (extra_headers[strlen(extra_headers) - 1] != '\n') {
data/knews-1.0b.1/src/p_setup.c:365:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (followup_headers[strlen(followup_headers) - 1] != '\n') {
data/knews-1.0b.1/src/p_setup.c:412: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).
	    n = strlen(*curr);
data/knews-1.0b.1/src/p_setup.c:414: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).
	    m = strlen(buffer);
data/knews-1.0b.1/src/p_setup.c:577: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).
			      strlen(buffer), &soft, False);
data/knews-1.0b.1/src/p_setup.c:602: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).
		n = strlen(buffer);
data/knews-1.0b.1/src/p_setup.c:631:39:  [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).
		n = decode_uue(&uc, buffer, buffer, strlen(buffer));
data/knews-1.0b.1/src/p_setup.c:721: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).
	n = strlen(c);
data/knews-1.0b.1/src/p_setup.c:758: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 (posted_and_mailed[strlen(posted_and_mailed) - 1] != '\n')
data/knews-1.0b.1/src/parse.c:377: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).
    n = strlen(str) - 1;
data/knews-1.0b.1/src/parse.c:418: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).
	c2 = c1 + strlen(c1);
data/knews-1.0b.1/src/parse.c:796: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(dest, src, strlen(src) + 1);
data/knews-1.0b.1/src/partial.c:164: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).
    if (!art || strlen(art->subject->subject) > 200)
data/knews-1.0b.1/src/partial.c:167: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 (!art->from || strlen(art->from) > 200)
data/knews-1.0b.1/src/partial.c:398: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(buffer) > 128)
data/knews-1.0b.1/src/partial.c:467: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).
    msg_end = message + strlen(message);
data/knews-1.0b.1/src/partial.c:565: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(reply) > 200)
data/knews-1.0b.1/src/procs.c:67:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (!art->read)
data/knews-1.0b.1/src/procs.c:434:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if (art->from && !art->read)
data/knews-1.0b.1/src/procs.c:460:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (art->from && !art->read)
data/knews-1.0b.1/src/procs.c:521:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (old && old->from && old->read) {
data/knews-1.0b.1/src/procs.c:572: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(buffer) > 80) buffer[80] = '\0';
data/knews-1.0b.1/src/procs.c:673:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if (!art->read)
data/knews-1.0b.1/src/read.c:136: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).
		hlen = strlen(*loop);
data/knews-1.0b.1/src/read.c:146: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(headers[i]), True, &wbuf);
data/knews-1.0b.1/src/read.c:158: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).
		hlen = strlen(*loop);
data/knews-1.0b.1/src/read.c:187: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).
				   strlen(headers[i]),
data/knews-1.0b.1/src/read.c:267: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).
	    n = strlen(buffer);
data/knews-1.0b.1/src/read.c:281: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).
                n = strlen(buffer);
data/knews-1.0b.1/src/read.c:309: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).
	    n = strlen(buffer);
data/knews-1.0b.1/src/read.c:323: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).
		n = strlen(buffer);
data/knews-1.0b.1/src/read.c:384:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = f->funcs->decode(dec_data, buffer, strlen(buffer),
data/knews-1.0b.1/src/read.c:411:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    len = f->funcs->decode(dec_data, buffer, strlen(buffer),
data/knews-1.0b.1/src/read.c:455:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    n = decode_qp(buffer, buffer, strlen(buffer), &soft, False);
data/knews-1.0b.1/src/read.c:475: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).
		n = strlen(buffer);
data/knews-1.0b.1/src/read.c:515:39:  [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).
		n = decode_uue(&uc, buffer, buffer, strlen(buffer));
data/knews-1.0b.1/src/read.c:551: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).
    n = strlen(bound);
data/knews-1.0b.1/src/read.c:653:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (art && !art->xref && !art->read && res_process_xrefs())
data/knews-1.0b.1/src/read.c:966:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (art->from && !art->read) {
data/knews-1.0b.1/src/read.c:1015: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(reply) > 200)
data/knews-1.0b.1/src/read.c:1063: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).
    ct  = XtMalloc(16 + strlen(params[0]));
data/knews-1.0b.1/src/read.c:1064: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).
    cte = XtMalloc(32 + strlen(params[1]));
data/knews-1.0b.1/src/resource.c:335: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(str);
data/knews-1.0b.1/src/resource.c:401: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(dest);
data/knews-1.0b.1/src/resource.c:407: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).
    len += strlen(dest + len);
data/knews-1.0b.1/src/resource.c:440: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).
    str += strlen(str);
data/knews-1.0b.1/src/resource.c:482: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).
    str += strlen(str);
data/knews-1.0b.1/src/resource.c:527: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).
    str += strlen(str);
data/knews-1.0b.1/src/resource.c:565: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 (writen(fd, default_db, strlen(default_db)) < 0) {
data/knews-1.0b.1/src/save.c:104: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(c);
data/knews-1.0b.1/src/save.c:249: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).
    char	*p = message + strlen(message);
data/knews-1.0b.1/src/save.c:408:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(cmd) > 100)
data/knews-1.0b.1/src/search.c:113:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if (art->read && !even_if_read)
data/knews-1.0b.1/src/search.c:315: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).
    cp = command + strlen(command);
data/knews-1.0b.1/src/search.c:324: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).
    mp = message + strlen(message);
data/knews-1.0b.1/src/search.c:414:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(header) + strlen(wildcard) >
data/knews-1.0b.1/src/search.c:414: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).
    if (strlen(header) + strlen(wildcard) >
data/knews-1.0b.1/src/search.c:444: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(buffer) > 100)
data/knews-1.0b.1/src/search.c:453: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).
    c = command + strlen(command);
data/knews-1.0b.1/src/search.c:1057: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).
	else if (!report->buffer || strlen(report->buffer) > 500) {
data/knews-1.0b.1/src/search.c:1088: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).
		if (strlen(reply) > 80)
data/knews-1.0b.1/src/search.c:1113: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).
	    long	len = strlen(report->buffer);
data/knews-1.0b.1/src/search.c:1156: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).
			n = strlen(c);
data/knews-1.0b.1/src/search.c:1268:56:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    while (art && (!art->from || (only_unread && art->read)))
data/knews-1.0b.1/src/search.c:1290:52:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (art && (!art->from || (only_unread && art->read)))
data/knews-1.0b.1/src/search.c:1302:56:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    while (art && (!art->from || (only_unread && art->read)))
data/knews-1.0b.1/src/search.c:1315:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if (art->from && (!only_unread || !art->read)) {
data/knews-1.0b.1/src/server.c:160:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    tmp = read(server->fd, server->buffer, server->len);
data/knews-1.0b.1/src/server.c:220: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).
		write(STDOUT_FILENO, c, strlen(c));
data/knews-1.0b.1/src/server.c:228: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).
	    write(STDOUT_FILENO, c, strlen(c));
data/knews-1.0b.1/src/server.c:235: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).
	write(STDOUT_FILENO, c, strlen(c));
data/knews-1.0b.1/src/server.c:264: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).
    long	n = strlen(message);
data/knews-1.0b.1/src/server.c:304:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    n = server->curr_pos + strlen(server->buffer + server->curr_pos);
data/knews-1.0b.1/src/server.c:313:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    i = read(server->fd, server->buffer + n, len);
data/knews-1.0b.1/src/server.c:319: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).
	for (p += strlen(p); p < end; p += strlen(p))
data/knews-1.0b.1/src/server.c:319:37:  [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 (p += strlen(p); p < end; p += strlen(p))
data/knews-1.0b.1/src/server.c:345: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(c);
data/knews-1.0b.1/src/server.c:409: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(c);
data/knews-1.0b.1/src/server.c:473: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).
	    strlen(auth_user) > 500 || strlen(auth_pass) > 500)
data/knews-1.0b.1/src/server.c:473: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(auth_user) > 500 || strlen(auth_pass) > 500)
data/knews-1.0b.1/src/server.c:495: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).
	    strlen(auth_user) > 500 || strlen(auth_pass) > 500)
data/knews-1.0b.1/src/server.c:495: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(auth_user) > 500 || strlen(auth_pass) > 500)
data/knews-1.0b.1/src/sort.c:115:52:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (art->from && art->subject->disp == 0 && !art->read)
data/knews-1.0b.1/src/sort.c:189:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if (art->from && !art->read && art->date != PARSEDATE_ERROR) {
data/knews-1.0b.1/src/sort.c:203:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if (art->from && !art->read && art->date != PARSEDATE_ERROR) {
data/knews-1.0b.1/src/sort.c:229:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (art->from && !art->read && art->pixmap != None)
data/knews-1.0b.1/src/sort.c:374:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if (!thread->read)
data/knews-1.0b.1/src/tag.c:132:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (art->from && !art->read && art->pixmap != None)
data/knews-1.0b.1/src/tag.c:202:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (art->from && !(only_unread && art->read) &&
data/knews-1.0b.1/src/tag.c:270:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (art->from && !(only_unread && art->read) && !is_tagged(art)) {
data/knews-1.0b.1/src/thread.c:395:56:  [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 (!*(sp = subj_hash_find(context->subj_ht, subj, strlen(subj)))) {
data/knews-1.0b.1/src/thread.c:406: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).
	(*sp)->hash_len = strlen(subj);
data/knews-1.0b.1/src/thread.c:483: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).
    msgid_len = strlen(msgid);
data/knews-1.0b.1/src/thread.c:592: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).
	end = context->refs + strlen(context->refs) - 1;
data/knews-1.0b.1/src/thread.c:600: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).
	    msgid_len = strlen(msgid);
data/knews-1.0b.1/src/thread.c:722: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).
	c = buffer + strlen(buffer);
data/knews-1.0b.1/src/thread.c:813:22:  [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).
    long	msgid_len = strlen(msgid);
data/knews-1.0b.1/src/thread.c:1260: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(reply) > 200)
data/knews-1.0b.1/src/util.c:188:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    !art->read && art->pixmap != None) {
data/knews-1.0b.1/src/util.c:201:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (art->subject == subj && art->from && art->read) {
data/knews-1.0b.1/src/util.c:222:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (art->subject == subj && art->from && art->read) {
data/knews-1.0b.1/src/util.c:244:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    !art->read && (art->pixmap == None || !kill)) {
data/knews-1.0b.1/src/util.c:270:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    !art->read && (art->pixmap == None || !kill)) {
data/knews-1.0b.1/src/util.c:294:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (art->from && !art->read && (art->pixmap == None || !kill)) {
data/knews-1.0b.1/src/util.c:319:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (art->from && !art->read && (art->pixmap == None || !kill)) {
data/knews-1.0b.1/src/util.c:346:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if (!art->read)
data/knews-1.0b.1/src/util.c:362:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if (!art->read)
data/knews-1.0b.1/src/util.c:379:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if (!art->read)
data/knews-1.0b.1/src/util.c:538:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (art->next && !art->next->read && art->next->no == art->no + 1)
data/knews-1.0b.1/src/util.c:547:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (art->next->read) {
data/knews-1.0b.1/src/util.c:548:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (art->next && art->next->read)
data/knews-1.0b.1/src/util.c:572:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (art && !art->read)
data/knews-1.0b.1/src/util.c:586:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (art->no == 1 && !art->read)
data/knews-1.0b.1/src/util.c:592:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (art && art->read)
data/knews-1.0b.1/src/util.c:639:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if (!art->read)
data/knews-1.0b.1/src/util.c:746: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	n = strlen(needle);
data/knews-1.0b.1/src/uudecode.c:125: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).
	    n = strlen(buffer);
data/knews-1.0b.1/src/uudecode.c:332:57:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if (arts[part] && arts[part]->from && !arts[part]->read) {
data/knews-1.0b.1/src/widgets.c:63: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).
    n = strlen(group->name);
data/knews-1.0b.1/src/widgets.c:73: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).
    n = strlen(buffer);
data/knews-1.0b.1/src/widgets.c:79: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).
	n = strlen(group->description);
data/knews-1.0b.1/src/widgets.c:104: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).
    n = strlen(group->name);
data/knews-1.0b.1/src/widgets.c:114: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).
    n = strlen(buffer);
data/knews-1.0b.1/src/widgets.c:120: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).
	n = strlen(group->description);
data/knews-1.0b.1/src/widgets.c:141: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).
    n = strlen(buffer);
data/knews-1.0b.1/src/widgets.c:170: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).
    i = strlen(subj->subject);
data/knews-1.0b.1/src/widgets.c:183: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).
	n = strlen(author);
data/knews-1.0b.1/src/xface.c:32: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).
	int	h_len = strlen(c);
data/knews-1.0b.1/src/xutil.c:76:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (thr->from && !thr->read) {
data/knews-1.0b.1/src/xutil.c:79:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if (!thr->read && thr->pixmap != None)
data/knews-1.0b.1/src/xutil.c:256:2:  [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(message, global.curr_subj->subject, 128);
data/knews-1.0b.1/src/xutil.c:483: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(buffer) > 80)
data/knews-1.0b.1/src/xutil.c:721: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(buffer);
data/knews-1.0b.1/src/xutil.c:741:5:  [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(buffer, body, 500);
data/knews-1.0b.1/util/knewsd/knewsd.c:119:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    n = read(fd, buf, n);
data/knews-1.0b.1/util/knewsd/knewsd.c:274:14:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int ch = getchar();
data/knews-1.0b.1/util/knewsd/knewsd.c:277:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ch = getchar();
data/knews-1.0b.1/util/knewsd/knewsd.c:314:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(args) > 512) {
data/knews-1.0b.1/util/knewsd/knewsd.c:320: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).
    p = path + strlen(path);
data/knews-1.0b.1/util/knewsd/knewsd.c:336:39:  [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).
    group_path = xrealloc(group_path, strlen(args) + 1);
data/knews-1.0b.1/util/knewsd/knewsd.c:428:17:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = getc(fp)) != EOF) {
data/knews-1.0b.1/util/knewsd/knewsd.c:670:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ch = getc(fp);
data/knews-1.0b.1/util/knewsd/knewsd.c:688:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((ch = getc(fp)) != EOF && ch != '\n')
data/knews-1.0b.1/util/knewsd/knewsd.c:782: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).
	int	n = strlen(*argv) - 1;
data/knews-1.0b.1/util/knewsd/knewsd.c:842:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(spool_dir) > 480) {
data/knews-1.0b.1/util/knewsd/knewsd.c:847: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).
    if (overview_dir && strlen(overview_dir) > 480) {
data/knews-1.0b.1/util/knewsd/knewsd.c:884:8:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ch = getchar();
data/knews-1.0b.1/util/knewsd/knewsd.c:937:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	long	i = read(fd, c, 1024);
data/knews-1.0b.1/util/tcp_relay/tcp_relay.c:117:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(from, buffer, sizeof buffer);

ANALYSIS SUMMARY:

Hits = 969
Lines analyzed = 56298 in approximately 3.39 seconds (16591 lines/second)
Physical Source Lines of Code (SLOC) = 46521
Hits@level = [0] 291 [1] 326 [2] 448 [3]  17 [4] 178 [5]   0
Hits@level+ = [0+] 1260 [1+] 969 [2+] 643 [3+] 195 [4+] 178 [5+]   0
Hits/KSLOC@level+ = [0+] 27.0845 [1+] 20.8293 [2+] 13.8217 [3+] 4.19166 [4+] 3.82623 [5+]   0
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.