pkgsrc/news/newsx/patches/patch-ac
cube 511c5d6ab7 - Make news/newsx build again after latest news/inn update.
- Apply a patch from Fedora (by Dominik 'Rathann' Mierzejewski) to fix
  CVE-2008-3252.

Bump package revision (security fix).
2008-07-28 16:27:42 +00:00

19 lines
608 B
Text

$NetBSD: patch-ac,v 1.1 2008/07/28 16:27:42 cube Exp $
--- src/getarticle.c.orig 2003-01-21 10:47:25.000000000 +0100
+++ src/getarticle.c
@@ -143,12 +143,12 @@ read_article(long where,char *group)
long len;
long bytecount = 0L; /* BUG: */
- line=linebuf;
- line[MAX_HEADER_SIZE] = '\0'; /* better safe than sorry */
+ linebuf[MAX_HEADER_SIZE] = '\0'; /* better safe than sorry */
path_line[0] = '\0';
/* fetch the article, header and body */
for (;;) {
+ line=linebuf;
if (!get_server_msg(line, MAX_HEADER_SIZE)) {
/* timeout: simply give up */
return 0;