🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #19567

Re: What changed 1.6 vs 1.5.1 (preliminary)

#19567
From: Wolfgang Rupprecht
Date: Wed, 23 Jul 1997 00:00
22 lines
1594 bytes

mibsoft@epix.net (Forrest J. Cavalier III) writes:
> But tell me, under what circumstance do you think sprintf is a
> security risk with the following code.  Was all this hassle really
> necessary?

Do you also think it's wrong when folks initialize a variable or cast
something to to shut up a "gcc -Wall" gripe?  "Eg. foo might be used
uninitialized in routine bar."  Would you rather waste people-time on
every compile ignoring certain output?

Similarly getting rid of all strcpy() and sprintf() is easier than
looking at the code and making sure its still safe after every change
near that code.  I personally would rather see the "n" routines used
if it buys us a bit of insurance against future oops's .

-wolfgang
-- 
Wolfgang Rupprecht    <wolfgang@wsrcc.com>         http://www.wsrcc.com/

Technical Details
Message-ID: <x7afjdtjm5.fsf@capsicum.wsrcc.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: <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: <x7afjdtjm5.fsf@capsicum.wsrcc.com>
Subject: Re: What changed 1.6 vs 1.5.1 (preliminary)
Date: Wed, 23 Jul 1997 00:00:00 +0000
From: Wolfgang Rupprecht <wolfgang@dailyplanet.wsrcc.com>
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: 258502740
Organization: W S Rupprecht Computer Consulting, Fremont CA
Newsgroups: news.software.nntp