🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #19632

Re: ANNOUNCE: INN 1.5.1 buffer overflow patch

#19632
From: Curt Welch
Date: Thu, 24 Jul 1997 00:00
16 lines
1041 bytes
mibsoft@epix.net (Forrest J. Cavalier III) wrote:
> BTW, the appropriate change would have been:
> 	buff[sizeof(buff) - 1] = '\0';
> 	p += strlen(strncpy(p, "running", sizeof(buff) - strlen(buff) - 2));

The way I see it, it should be - 1, not - 2.

"- 2" will cause the strncpy to stop 1 char short, leaving
buf[sizeof(buff) - 2] in an undefined state (i.e. adding
a garbage char to the end of the buffer when it overflows.)

Curt Welch
http://CurtWelch.Com/

Technical Details
Message-ID: <DeYL$XV@NewsReader.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
References: <5r81l9$27j$1@holodeck.cistron.nl> <5r8944$7d3$1@news1.epix.net>

Show Full Headers
Complete Article Headers
Message-ID: <DeYL$XV@NewsReader.Com>
Subject: Re: ANNOUNCE: INN 1.5.1 buffer overflow patch
Date: Thu, 24 Jul 1997 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <5r81l9$27j$1@holodeck.cistron.nl> <5r8944$7d3$1@news1.epix.net>
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: 258551263
Organization: KCW Consulting
Newsgroups: news.software.nntp