🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #46207

Re: INN 2.3.0 public beta

#46207
From: Karl Kleinpaste
Date: Sun, 30 Apr 2000 00:00
33 lines
2205 bytes
Karl Kleinpaste <karl@charcoal.com> writes:
> Apr 30 00:24:33 mesquite innd: SERVER cant store overview for @05000000000F000000410000000000000000@

Found the bug.

--- inn-BETA-20000428/storage/ov.c	Fri Apr 28 06:08:25 2000
+++ inn-2.3.0b/storage/ov.c	Sun Apr 30 11:21:17 2000
@@ -189,7 +189,7 @@
 BOOL OVadd(TOKEN token, char *data, int len, time_t arrived, time_t expires) {
     char		*next;
     static char		*xrefdata, *patcheck, *overdata;
-    char		*xrefstart;
+    char		*xrefstart, *xrefend;
     static int		xrefdatalen = 0, overdatalen = 0;
     BOOL		found = FALSE;
     int			xreflen;
@@ -229,6 +229,14 @@
         next++;
     }
     xreflen = len - (next - data);
+
+    /*
+     * If there are other fields beyond Xref in overview, then
+     * we must find Xref's end, or data following is misinterpreted.
+     */
+    if (xrefend = memchr(next, '\t', xreflen))
+	xreflen = xrefend - next;
+
     if (xrefdatalen == 0) {
         xrefdatalen = BIG_BUFFER;
         xrefdata = NEW(char, xrefdatalen);

Technical Details
Message-ID: <vxkg0s3r30g.fsf@mesquite.charcoal.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <yl7ldiu3j8.fsf@windlord.stanford.edu> <vxkg0s6t1oi.fsf@mesquite.charcoal.com> <vxk8zxyt0hi.fsf@mesquite.charcoal.com> <8eerd7$5tq$2@newstest.mesh.ad.jp> <vxkg0s4ry09.fsf@mesquite.charcoal.com>

Show Full Headers
Complete Article Headers
Message-ID: <vxkg0s3r30g.fsf@mesquite.charcoal.com>
Subject: Re: INN 2.3.0 public beta
Date: Sun, 30 Apr 2000 00:00:00 +0000
From: Karl Kleinpaste <karl@charcoal.com>
References: <yl7ldiu3j8.fsf@windlord.stanford.edu> <vxkg0s6t1oi.fsf@mesquite.charcoal.com> <vxk8zxyt0hi.fsf@mesquite.charcoal.com> <8eerd7$5tq$2@newstest.mesh.ad.jp> <vxkg0s4ry09.fsf@mesquite.charcoal.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 617527366
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: postmaster@cs.cmu.edu
X-Trace: cantaloupe.srv.cs.cmu.edu 957110527 29489 128.2.194.2 (30 Apr 2000 16:02:07 GMT)
X-Face: "5(T0tZd{6}pd~YzBG8O/*EW,.]6]@`m^e;fv65W^Y&=d"M\1H}>T~4_.kcDD.O~y3k)a6h R;Nmi>9|>Nm${2IpM0^RcUEa\jcq?KOP)C&~x51l~zCHTulL^_T|u0I^kB'z@]{`2YjQu
Organization: Charcoal Communicators
Mime-Version: 1.0
User-Agent: Gnus/5.0805 (Gnus v5.8.5) XEmacs/21.2 (Iris)
NNTP-Posting-Date: 30 Apr 2000 16:02:07 GMT
Newsgroups: news.software.nntp