🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #19564

Re: What changed 1.6 vs 1.5.1 (preliminary)

#19564
From: Forrest J. Cavalier III
Date: Wed, 23 Jul 1997 00:00
44 lines
2086 bytes
Posted to news.software.nntp and e-mailed.  This is an update as I
discover more.

In article <5r5pq3$6lc$1@news1.epix.net>, mibsoft@epix.net wrote...
>
>What a mess.
>
[snip]

4. More unnecessary "fixes" somewhere in innd/art.c

#ifndef INN1P6
        (void)sprintf(buff, "Bad \"Date\" header -- \"%s\"", MaxLength(p, p));
#else /* INN1P6 */
        (void)snprintf(buff, sizeof(buff),
                "Bad \"Date\" header -- \"%s\"", MaxLength(p, p));
#endif /* INN1P6 */


The sole purpose of the MaxLength() routine (innd.c) is to return a buffer
that is less than 80 characters long, containing the relevant part of the
string.  

In this case (and many similar) sprintf is completely safe, because buff is 
declared char buff[SMBUF]; (and SMBUF is by default 256.)  (I suppose you
should worry if configdata was changed.  But who would have done that?)

To me, it appears that whoever made the changes didn't understand the
existing code. In my experience, this is a good recipe for BREAKING
something.

--------------------------------------------------------------------

James, do you have a list of ACTUAL bugs in 1.5.1?  It would make my task
much easier....

Forrest Cavalier, Mib Software, INN customization and consulting
http://www.mibsoftware.com/userkt/userkt.html

Back to slogging through it all...


Technical Details
Message-ID: <5r5r78$6lc$2@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
References: <5r21gd$24r$1@pluto.sm.dsi.unimi.it> <slrn5tcdem.gj6.memory@bigtime.blank.org> <87g1t57jf9.fsf@acropolis.ibm.net> <yy3afjdmw2e.fsf@velo.pp.vix.com> <5r5o4p$s1n$1@flea.best.net> <5r5pq3$6lc$1@news1.epix.net>

Show Full Headers
Complete Article Headers
Message-ID: <5r5r78$6lc$2@news1.epix.net>
Subject: Re: What changed 1.6 vs 1.5.1 (preliminary)
Date: Wed, 23 Jul 1997 00:00:00 +0000
From: mibsoft@epix.net (Forrest J. Cavalier III)
References: <5r21gd$24r$1@pluto.sm.dsi.unimi.it> <slrn5tcdem.gj6.memory@bigtime.blank.org> <87g1t57jf9.fsf@acropolis.ibm.net> <yy3afjdmw2e.fsf@velo.pp.vix.com> <5r5o4p$s1n$1@flea.best.net> <5r5pq3$6lc$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: 258357086
Organization: Mib Software
Newsgroups: news.software.nntp