🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #20393

Re: Fix for core dumps in INN-1.6b3 (innd/art.c)

#20393
From: J. Porter Clark
Date: Mon, 11 Aug 1997 00:00
33 lines
1854 bytes
srb@zeus.fw.cuci.nl (Stephen R. van den Berg) writes:

>J. Porter Clark <jpc@drum.msfc.nasa.gov> wrote:
>>As Forrest Cavalier has noted here and elsewhere, there is a bug in INN
>>1.6b3's innd/art.c that may cause innd to dump core as the indirect
>>result of receiving a control message without a Control header.  The
>>fix is below.  Basically, it reverts to the 1.5.1 code, which turns out
>>to have been correct and safe after all.

>>*** innd/art.c.orig	Thu Jul 31 15:08:57 1997
>>--- innd/art.c	Fri Aug  8 20:51:20 1997
>>  		p++;
>>! 	    if (*p)
>>  		(void)strcpy(in, p);				/* safe -of */

>You mean, there is never any danger in overflowing the available bufferspace
>here?

Correct.

>And even if that is true, then I wonder why the original code (with the >= fix)
>is causing problems at all (it shouldn't be triggered then at all).

It is triggered, because ARTheaders[_control].Length has irrelevant
data at that point.

FWIW, RENEW(ARTheaders[_control].Value...) should *never* be executed.
-- 
J. Porter Clark    jpc@drum.msfc.nasa.gov
NASA/MSFC Flight Data Systems Branch

Technical Details
Message-ID: <5sn6f8$94p$1@drum.msfc.nasa.gov>
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: <5slt04$c65$1@hammer.msfc.nasa.gov> <5smo7a$lkp$1@zeus.fw.cuci.nl>

Show Full Headers
Complete Article Headers
Message-ID: <5sn6f8$94p$1@drum.msfc.nasa.gov>
Subject: Re: Fix for core dumps in INN-1.6b3 (innd/art.c)
Date: Mon, 11 Aug 1997 00:00:00 +0000
From: jpc@drum.msfc.nasa.gov (J. Porter Clark)
References: <5slt04$c65$1@hammer.msfc.nasa.gov> <5smo7a$lkp$1@zeus.fw.cuci.nl>
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: 263469303
Sender: jpc@hammer.msfc.nasa.gov
X-Complaints-To: abuse@news.msfc.nasa.gov
X-Trace: hammer.msfc.nasa.gov 871308585 28704 jpc 128.158.173.26
Organization: NASA/MSFC
Newsgroups: news.software.nntp