🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #53545

Re: Server choking on nulls (was: Header compression - necessary, useful, senseless ?)

#53545
From: Curt Welch
Date: Sun, 29 Jul 2001 06:50
34 lines
2930 bytes
Jan Ingvoldstad <jani@ifi.uio.no> wrote:
> A small test reading from INN 1.7.2 and INN 2.2 shows that the null
> character indeed terminates the string, but only for the current
> line.

My understanding of INN was that innd was "fixed" around the 2.0 timeframe
to be 8-bit clean.  But last I checked, nnrpd was still doing all
IO to the user with an fgets() type of routine which means it think the
line ends when it sees the null.  This means that you can not POST or
READ articles though nnrpd with nulls in them.  But yet the innd program
could recieve them, store them, and pass then along to peers just fine.

> I've just posted an article to misc.test, with the following
> Message-ID:
>
>   <oasofq48u86.fsf@tyrfing.ifi.uio.no>
>
> The body before the signature contains the following, when read with
> INN 1.7.2 or INN 2.2 (I don't know whether that's the way it is stored
> in the spool, of course):
>
>   The character '
>   ("The character '\0' may or may not terminate this line prematurely.")

On my server, it's stored like your example above (with no null in it).

And that's probably because nnrpd saw the null when you tried to post it
and assumed it was the end of the line.  So it got messed up at post time
is my guess.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20010729025014.062$TF@newsreader.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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <3009e.q71214@archiver.winews.net> <20010726131654.725$7w@newsreader.com> <0t3b605fdfi155bn3e9%md@wonderland.linux.it> <20010726175821.025$Hd@newsreader.com> <4112a.r71201@archiver.winews.net> <20010727120040.184$4k@newsreader.com> <280720010219054011%planb@newsreaders.com> <87wv4td0ql.fsf@erlenstar.demon.co.uk> <280720011513067165%planb@newsreaders.com> <87d76kako1.fsf@erlenstar.demon.co.uk> <280720011959565155%planb@newsreaders.com> <oasn15o8u3s.fsf@tyrfing.ifi.uio.no>

Show Full Headers
Complete Article Headers
Message-ID: <20010729025014.062$TF@newsreader.com>
Subject: Re: Server choking on nulls (was: Header compression - necessary, useful, senseless ?)
Date: Sun, 29 Jul 2001 06:50:14 +0000
From: curt@kcwc.com (Curt Welch)
References: <3009e.q71214@archiver.winews.net> <20010726131654.725$7w@newsreader.com> <0t3b605fdfi155bn3e9%md@wonderland.linux.it> <20010726175821.025$Hd@newsreader.com> <4112a.r71201@archiver.winews.net> <20010727120040.184$4k@newsreader.com> <280720010219054011%planb@newsreaders.com> <87wv4td0ql.fsf@erlenstar.demon.co.uk> <280720011513067165%planb@newsreaders.com> <87d76kako1.fsf@erlenstar.demon.co.uk> <280720011959565155%planb@newsreaders.com> <oasn15o8u3s.fsf@tyrfing.ifi.uio.no>
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!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com 1BrTbf=EJC/ttJeV/y5n5yYU1@wJpj1AE@sye+QFkKW.hb
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
  %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 33