🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #26793

Re: NNTP followup/response method

#26793
From: Forrest J. Cavalier III
Date: Thu, 12 Mar 1998 00:00
50 lines
2638 bytes
In article <19980312133756.167$GQ@newsreader.com>, curt@kcwc.com wrote...
>
>Which means that some transports may not be able to handle lines which
>are over 1000 octets.  So, to make sure that the article will be able
>to get to every point in the Usenet network, you should limit your lines
>to 1000 octets or less.  Inn therefore forces new posts to follow this.
>
>However, in my testing, I found that INN 1.5.1 actually limited the line
>to 999 bytes, not 1000 like it should.
>

[snip]

>
>Thanks for the pointer.  I looked at the code, and sure enough, in inn
>1.5.1 it's wrong.
>
>The problem is in READline().  If the line, including the CR LF, is 1000
>bytes or more, READline() will return a too-long indication.  To match the
>wording of the RFC it should only return that error if the line is OVER
>1000 bytes.  I don't know if this has been changed in later verions of INN.
>It's clearly a bug in the way READline() is written because it's passed
>a buffer which can hold over 1000 characters and an argument which tells
>it to limit the line length to 1000 characters, but yet it returns an
>error when it gets a line which is 1000 characters long.
>
>Forrest, you're an inn expert.  Has READline() changed in later versions
>of inn?

I didn't think so, but I can't remember everything.  So....
I just diff'ed the code inn 1.5.1 and 1.8.  That particular behavior of 
READline has not changed.

Can you be convinced to submit a patch?  This is not a buffer overrun
error, or anything like that, and 999 is close enough to 1000 for
me, but it would be nice to fix it, while the details are fresh
in your mind and you can test it.  Please?


Great sleuthing through son-of-1036.  Nice job.  I should have
looked there.  (Hmmmm.  I should have son-of-1036 in the RKT,
it's been on my todo list for a while, but you know how that
goes....)

Forrest



Technical Details
Message-ID: <6e9fbo$9bg$1@nntp.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: <6e6cnl$es$1@cc.tut.fi> <6e6in9$57q$1@nntp.epix.net> <6e6r65$d13@darkmere.gen.nz> <6e74ml$e5r$1@nntp.epix.net> <19980312133756.167$GQ@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <6e9fbo$9bg$1@nntp.epix.net>
Subject: Re: NNTP followup/response method
Date: Thu, 12 Mar 1998 00:00:00 +0000
From: mibsoft@mibsoftware.com (Forrest J. Cavalier III)
References: <6e6cnl$es$1@cc.tut.fi> <6e6in9$57q$1@nntp.epix.net> <6e6r65$d13@darkmere.gen.nz> <6e74ml$e5r$1@nntp.epix.net> <19980312133756.167$GQ@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!not-for-mail
X-Deja-AN: 333434493
Content-Type: Text/Plain; charset=US-ASCII
Organization: Mib Software
Mime-Version: 1.0
Newsgroups: news.software.nntp