🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #11143

Re: TRN v3.5 dumps core subscribing to "comp.answers"

#11143
From: Wayne Davison
Date: Wed, 31 Aug 1994 01:45
26 lines
1542 bytes
According to R. Michael Foster <fosterm@source.asset.com>:
> Problem 1: TRN v.3.5 reports a segmentation fault and dumps core when
> subscribing to group "comp.answers". [...]
> Problem 2: TRN v.3.5 reports invalid hash table when subscribing to group
> "news.answers".

Sounds like the problem Ben Golding just posted a fix for -- an article
with an overly-long header just showed up and revealed a bug in the
header-caching code.  My version of his patch will be in version 3.6
and looks like this:

Index:head.c
@@ -263,6 +263,8 @@
     while (in_header) {
 	if (headbuf_size < artpos + LBUFLEN) {
+	    len = bp - headbuf;
 	    headbuf_size += LBUFLEN * 4;
 	    headbuf = saferealloc(headbuf,headbuf_size);
+	    bp = headbuf + len;
 	}
 #ifdef USE_NNTP

Thanks again, Ben!
-- 
Wayne Davison
davison@borland.com
Technical Details
Message-ID: <CvDM7n.5K6@borland.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!hookup!swrinde!howland.reston.ans.net!agate!darkstar.UCSC.EDU!news.hal.COM!decwrl!borland.com!davison
References: <33vh3m$qt0@source.asset.com>

Show Full Headers
Complete Article Headers
Message-ID: <CvDM7n.5K6@borland.com>
Subject: Re: TRN v3.5 dumps core subscribing to "comp.answers"
Date: Wed, 31 Aug 1994 01:45:22 GMT
From: davison@borland.com (Wayne Davison)
References: <33vh3m$qt0@source.asset.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!hookup!swrinde!howland.reston.ans.net!agate!darkstar.UCSC.EDU!news.hal.COM!decwrl!borland.com!davison
Newsgroups: news.software.readers
Organization: Borland International
Distribution: Everywhere
Lines: 26