🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #19662

Re: ANNOUNCE: INN 1.5.1 buffer overflow patch

#19662
From: Matt Dillon
Date: Fri, 25 Jul 1997 00:00
25 lines
1395 bytes
:In article <5r9m1a$6oe$1@holodeck.cistron.nl>,
:Miquel van Smoorenburg <miquels@cistron.nl> wrote:
:>
:>I've fixed my patch to use
:>
:>#define STRCPY(dst, src) \
:>	(dst[sizeof(dst) - 1] = 0, strncpy(dst, src, sizeof(dst) - 1))
:>
:>The first part sets the last byte to \0, the strncpy copies one byte less
:>then the dst length so the last \0 does not get overwritten.
:>
:>Mike.
:>-- 
:>| Miquel van Smoorenburg |  "I need more space" "Well, why not move to Texas" |
:>| miquels@cistron.nl     |  "No, on my account, stupid." "Stupid? Uh-oh.."    |
:>|     PGP fingerprint: FE 66 52 4F CD 59 A5 36  7F 39 8B 20 F1 D6 74 02       |

    This is an extremely dangerous macro.

						-Matt



Technical Details
Message-ID: <5r9o69$q72$1@flea.best.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
References: <5r81l9$27j$1@holodeck.cistron.nl> <5r8a6h$30f$1@holodeck.cistron.nl> <33D7E146.95CD5BC@spinne.com> <5r9m1a$6oe$1@holodeck.cistron.nl>

Show Full Headers
Complete Article Headers
Message-ID: <5r9o69$q72$1@flea.best.net>
Subject: Re: ANNOUNCE: INN 1.5.1 buffer overflow patch
Date: Fri, 25 Jul 1997 00:00:00 +0000
From: dillon@best.net (Matt Dillon)
References: <5r81l9$27j$1@holodeck.cistron.nl> <5r8a6h$30f$1@holodeck.cistron.nl> <33D7E146.95CD5BC@spinne.com> <5r9m1a$6oe$1@holodeck.cistron.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: 258692186
Organization: Best Internet Communications, Inc. - 415 964 BEST
Newsgroups: news.software.nntp