🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #82691

Re: unrelated possible bug with C flag?

#82691
From: Julien ÉLIE
Date: Thu, 28 Jan 2010 17:49
54 lines
3745 bytes
Hi D. Stussy,

>> + for (i = 0, p = HDR(HDR__FOLLOWUPTO) ; p != NULL && *p != '\0'; p++) {
>
> I agree with changing the [outer] for-loop conditional to just "p != NULL"

Even with nothing at all because if *p is '\0', the loop will end after
the search of ",".



> I've been busy with work the past 3 days, but thought about this.  I would
> have replaced the  "continue" with "p = strchr( ++p, ',')" and remove the
> p++ from the loop-closure.  As we're only counting, I don't think we have
> to worry about whitespace.

The problem is that we do not properly see:

Followup-To:     poster,
Followup-To: news.group1,,news.group2

The first one would not be parsed as a real "poster" and the second one
would count 3 groups.


The only thing that is not handled here is newsgroups mentioned twice...

Followup-To:     poster   ,   poster
Followup-To: news.group1,   news.group1   , news.group2



> I think that RFC 1036 made it clear:  "poster", with its special meaning,
> may only appear alone.  Therefore, we don't have to check to see if it's
> specified in the string; only that it IS the string of the "newsgroups:"
> header data field.  I don't see any change in RFC 5536 to this behavior.

I am following here the law "be liberal in what you accept" because innd
is not an injecting agent.  We will not reject the article because of an
error in the syntax of the Followup-To: header.



> the varying client responses are [responses] to a condition that
> never should have arisen.

They are liberal in what they accept too.  And try to do their best.

-- 
Julien ÉLIE

« -- Ouvre l'œil, et le bon !
  -- L'autre, je peux pas encore l'ouvrir, je risque pas de me tromper ! » (Astérix) 
Technical Details
Message-ID: <hjsinn$cst$1@news.trigofacile.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.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!weretis.net!feeder2.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-151-1-9-10.w83-114.abo.wanadoo.fr!not-for-mail
References: <hic74m$vi8$1@news.trigofacile.com> <hicf9f$ntj$1@snarked.org> <hiclo9$dd4$1@news.trigofacile.com> <hidmvp$vh1$1@snarked.org> <hitipd$rtb$1@news.trigofacile.com> <hiu2ar$707$1@snarked.org> <hiun2p$2mt$1@news.trigofacile.com> <hj0m9c$g98$1@snarked.org> <hj7qh0$ggu$1@news.trigofacile.com> <hj8csn$cok$1@snarked.org> <hjaiid$f7c$1@news.trigofacile.com> <hjar9t$mq$1@snarked.org> <hjnpm4$f5l$1@news.trigofacile.com> <hjq8r4$s5h$1@news.trigofacile.com> <hjqp78$iis$1@snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <hjsinn$cst$1@news.trigofacile.com>
Subject: Re: unrelated possible bug with C flag?
Date: Thu, 28 Jan 2010 18:49:48 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <hic74m$vi8$1@news.trigofacile.com> <hicf9f$ntj$1@snarked.org> <hiclo9$dd4$1@news.trigofacile.com> <hidmvp$vh1$1@snarked.org> <hitipd$rtb$1@news.trigofacile.com> <hiu2ar$707$1@snarked.org> <hiun2p$2mt$1@news.trigofacile.com> <hj0m9c$g98$1@snarked.org> <hj7qh0$ggu$1@news.trigofacile.com> <hj8csn$cok$1@snarked.org> <hjaiid$f7c$1@news.trigofacile.com> <hjar9t$mq$1@snarked.org> <hjnpm4$f5l$1@news.trigofacile.com> <hjq8r4$s5h$1@news.trigofacile.com> <hjqp78$iis$1@snarked.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.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!weretis.net!feeder2.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-151-1-9-10.w83-114.abo.wanadoo.fr!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 54
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="Windows-1252";
 reply-type=original
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 28 Jan 2010 17:49:43 +0000 (UTC)
Injection-Info: news.trigofacile.com;
 posting-host="aaubervilliers-151-1-9-10.w83-114.abo.wanadoo.fr:83.114.8.10";
 logging-data="13213"; mail-complaints-to="abuse@trigofacile.com"
In-Reply-To: <hjqp78$iis$1@snarked.org>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6002.18005
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18005
X-Original-Bytes: 3464