Article View: news.software.nntp
Article #20376Re: Fix for core dumps in INN-1.6b3 (innd/art.c)
From: Stephen R. van den Berg
Date: Mon, 11 Aug 1997 00:00
Date: Mon, 11 Aug 1997 00:00
26 lines
1607 bytes
1607 bytes
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?
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).
--
Sincerely, srb@cuci.nl
Stephen R. van den Berg (AKA BuGless).
Warning: Dates in calendar are closer than they appear.
Technical Details
Message-ID:
<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-mailReferences:
<5slt04$c65$1@hammer.msfc.nasa.gov>Show Full Headers
Complete Article Headers
Message-ID: <5smo7a$lkp$1@zeus.fw.cuci.nl> Subject: Re: Fix for core dumps in INN-1.6b3 (innd/art.c) Date: Mon, 11 Aug 1997 00:00:00 +0000 From: srb@zeus.fw.cuci.nl (Stephen R. van den Berg) References: <5slt04$c65$1@hammer.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 X-Deja-AN: 263506146 X-Trace: heracles.fw.cuci.nl 871293995 20144 (None) 10.0.0.3 Organization: Cubic Circle Newsgroups: news.software.nntp