🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #64310

Re: distribution of control messages

#64310
From: Russ Allbery
Date: Fri, 07 Mar 2003 16:57
27 lines
2142 bytes
Jeffrey M Vinocur <jeff@litech.org> writes:
> christian mock <cm@tahina.priv.at> wrote:

>> OK, I found it: art.c:2030

>> strlcpy(ControlWord, HDR(HDR__CONTROL), sizeof(ControlWord));

>> is the culprit -- ControlWord is a char[16], which means "newgroup
>> oesterreich.something" becomes "newgroup oester", and afterwards the
>> group name is parsed from ControlWord, which means we look for peers
>> wanting "oester", and that is only matched by "*".

> *boggle*

> Yes, the value in "p" can't possibly be used further down as it
> is.  I'm just not sure when this change came about, unless it's a
> really obscure bug resulting from the fact that strlcpy doesn't
> NUL-pad the destination string if it's shorter.

I'll do some research today and get this fixed.  Thank you!  Nice catch.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <yly93razcn.fsf@windlord.stanford.edu>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
References: <b44bo1$lp1$1@tahina.priv.at> <b45lcg$684$1@tahina.priv.at> <ylsmu1zbra.fsf@windlord.stanford.edu> <b49jqk$ijm$1@tahina.priv.at> <b4aipi$6fj$3@puck.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <yly93razcn.fsf@windlord.stanford.edu>
Subject: Re: distribution of control messages
Date: Fri, 07 Mar 2003 08:57:44 -0800
From: Russ Allbery <rra@stanford.edu>
References: <b44bo1$lp1$1@tahina.priv.at> <b45lcg$684$1@tahina.priv.at> <ylsmu1zbra.fsf@windlord.stanford.edu> <b49jqk$ijm$1@tahina.priv.at> <b4aipi$6fj$3@puck.litech.org>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 26
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1047056264 8214 171.64.13.23 (7 Mar 2003 16:57:44 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Honest Recruiter,
 sparc-sun-solaris2.6)
Cancel-Lock: sha1:2x8RyszHUHgjDnnVeurp/tk/oXA=