🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
1 messages
1 total messages Started by Wolfgang Szoecs Fri, 19 Nov 1999 00:00
innd-crashes on <942925094.1792snx@wang.pc.my>
#41666
Author: 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 

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads