🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #93013

Re: INN Can't store article

#93013
From: Julien ÉLIE
Date: Sat, 25 Jul 2026 18:12
63 lines
3667 bytes
Hi Kevin,

> https://github.com/InterNetNews/inn/pull/369 should fix the Newsgroups 
> header.

Thanks for the patch!
I will have more time next week in August to integrate all your recent PRs.


> If you can show me any messages that were problematic beyond 
> that header I can take a look.

Probably unrelated to this very bug, but Richard Kettlewell looked at 
ARTassignnumbers() last November in 
<wwvecpvhqu2.fsf@LkoBDZeT.terraraq.uk> and also noted the following 
possible issues:

"""
ReplicLength is set in ARTassignnumbers, which is the kind of ad-hoc
string builder that tends to be full of bugs. It has a number of issues
but the most relevant is:

* If the collection of group names (and article numbers etc) adds up to
   more than 2GB then len will overflow to negative. This could explain
   the outcome seen, although it would need a pathologically large input
   article.

Other observations about ARTassignnumbers, which I don't think can
explain the behavior seen:

* A pathhost bigger than the default xref buffer size (2049 bytes) would
   generate a buffer overflow.

* An article number longer than ARTNUMPRINTSIZE could fail to expand the
   buffer when needed.  Currently you get ten digits, and the starting
   buffer size is 2049 bytes, so this is probably not an issue in
   real life.

* If there are no groups at all then the buffer expansion never happens
   at all, so nothing explicitly accounts for the CRLF at the end -
   i.e. the commented assumption "checked during the reallocation above"
   is violated. But the default buffer size is more than enough in that
   case.

* p and len are tracked separately, which is pointless and invites
   error, but I don't see any way to get them out of sync apart from the
   overflow issue described above.

* ReplicLength is set in an unnecessarily complicated way, because
    len - (q + 1 - data->Xref) == Path.used - 1
   but I don't see any realistic way for that to end up negative or for
   q+1 to run past the end of the buffer.
"""

-- 
Julien ÉLIE

« 21.1.1 How to convert mSQL tools for MySQL?
   1. Run the shell script msql2mysql on the source.  This requires the
   replace program, which is distributed with MySQL.
   2. Compile.
   3. Fix all compiler errors. » (MySQL online manual)
Technical Details
Message-ID: <1142ua8$1431n$2@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.bofh.team!news.trigofacile.com!.POSTED.lfbn-mon-1-162-97.w86-210.abo.wanadoo.fr!not-for-mail
References: <113r1g4$f2p$1@omnios-inn.blueworldhosting.com> <113r232$3rh24$3@paganini.bofh.team> <113ts50$i64$2@csiph.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.bofh.team!news.trigofacile.com!.POSTED.lfbn-mon-1-162-97.w86-210.abo.wanadoo.fr!not-for-mail
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
Newsgroups: news.software.nntp
Subject: Re: INN Can't store article
Date: Sat, 25 Jul 2026 20:12:23 +0200
Organization: Groupes francophones par TrigoFACILE
Message-ID: <1142ua8$1431n$2@news.trigofacile.com>
References: <113r1g4$f2p$1@omnios-inn.blueworldhosting.com>
 <113r232$3rh24$3@paganini.bofh.team> <113ts50$i64$2@csiph.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 25 Jul 2026 18:12:24 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="lfbn-mon-1-162-97.w86-210.abo.wanadoo.fr:86.210.13.97";
	logging-data="1182775"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:EIvE2H5U/GaI2emJs1icVZZqx10= sha256:pwDHDz8Azb2COaQjZkDc2vDWngWRIqOv3nWDV+ZrlBo=
	sha1:E/pUYDSFvwySTaNEHdTEkquvxRY= sha256:667B/kjPy/86jWrr3ubTpoJyAtdTHxGDUInCngQ0NUg=
In-Reply-To: <113ts50$i64$2@csiph.com>