🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #41666

innd-crashes on <942925094.1792snx@wang.pc.my>

#41666
From: Wolfgang Szoecs
Date: Fri, 19 Nov 1999 00:00
55 lines
2769 bytes
Hi,

sorry, my server hasn't the article, where someone else
mentioned this bug. (i looked it up on dejanews)

The problem with <942925094.1792snx@wang.pc.my> is:

as the server REFUSES this article, you'll not have it,
but it also will crash innd with a SEGV. :-(((

the problem is in innd/art.c: (in 2b2 it's around line 2282)
(inn1.7 and 2b2 have both this problem)

in the case of the above Message, 'distributions' is NULL, and
MaxLength() will dereference it. kawoom - SEGV - no news any more.

my current fix is, to ommit the call to MaxLength() and replace it
with 'distributions'.

interesting enough, that some lines before there is an 'if':

>>if (distributions) {
>>        DISTparse(distributions, &Data);
>>        if (ME.Distributions
>>         && !DISTwantany(ME.Distributions, distributions)) {
>>            (void)sprintf(buff, "%d Unwanted distribution \"%s\"",
>>                    NNTP_REJECTIT_VAL,
>>                  /* this is not good: crash !!!!
>>------------->>>>   MaxLength(distributions[0], distributions[0]));
>>                  */
>>                distributions);
>>            ARTlog(&Data, ART_REJECT, buff);
>>            if (innconf->remembertrash && Data.MessageID &&
>>                                (Mode == OMrunning) && !HISremember(hash))
>>                syslog(L_ERROR, "%s cant write history %s %m",
>>                       LogName, Data.MessageID);
>>            DISPOSE(distributions);
>>            ARTreject(REJECT_DISTRIB, cp, buff, article);
>>            return buff;
>>        }

which would imply, that at the beginning of the 'if' 'distributions'
isn't NULL but somehow this seems to get changed somewhere inside...

anyhow, with the workarounded version, the logfile says:

<942925094.1792snx@wang.pc.my> 437 Unwanted distribution ""

and innd keeps running.

-- 
Wolfgang Szoecs - Developer Online Consulting
Silicon Graphics GmbH - 85630 Munich, Germany - wolfi@sgi.COM 

Technical Details
Message-ID: <814106$1ji9f$2@bongo.munich.sgi.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

Show Full Headers
Complete Article Headers
Message-ID: <814106$1ji9f$2@bongo.munich.sgi.com>
Subject: innd-crashes on <942925094.1792snx@wang.pc.my>
Date: Fri, 19 Nov 1999 00:00:00 +0000
From: wolfi@munich.sgi.com (Wolfgang Szoecs)
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: 550608385
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: news@bongo.munich.sgi.com
X-Trace: bongo.munich.sgi.com 943032134 1689903 144.253.192.104 (19 Nov 1999 17:22:14 GMT)
Organization: Silicon Graphics - Munich, Germany
Mime-Version: 1.0
NNTP-Posting-Date: 19 Nov 1999 17:22:14 GMT
Newsgroups: news.software.nntp