🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Heiko Schlichting Wed, 30 Jul 1997 00:00
[BUGREPORT] inn-1.5.1sec: idbuff[SMBUF vs BIG_BUFFER]
#19872
Author: Heiko Schlichting
Date: Wed, 30 Jul 1997 00:00
54 lines
2032 bytes
After installing inn-1.5.1sec instead inn-1.5.1  nnrpd dumps core whenever
a 'NEXT' or 'LAST' should answer with a Message-ID:

[heiko@Boa] 171 (~): telnet 0 119
200 cis.fu-berlin.de NNRP server INN 1.5.1sec 25-Jul-1997 ready (posting ok).
group bln.test
211 48 1 48 bln.test
stat 40
223 40 <5rjfiq$o4n$1@cis.fu-berlin.de> status
next
Connection closed by foreign host.


After tracing a little bit, I assume that the problem is the size of
idbuff in function CMDnextlast() of nnrpd/article.c:

	char       idbuff[SMBUF];

Later in CMDnextlast() function ARTopen is called with idbuff as second
argument:
	ARTopen(buff, idbuff)

Unfortunately ARTopen() expects the second argument of size BIG_BUFFER:

ARTopen(name, id)
    char                *name;
    char                *id;
{
[...]
    (void)strncpy(id, save_artid, BIG_BUFFER - 1);
    id[BIG_BUFFER - 1] = '\0';
[...]

In my configuration BIG_BUFFER is 8096 and SMBUF is 256, so nnrpd dumps
a core. Changing the size of idbuff to BIG_BUFFER corrects the problem
for me:

--- nnrpd/article.c.org	Wed Jul 30 03:29:03 1997
+++ nnrpd/article.c	Wed Jul 30 05:38:26 1997
@@ -551,7 +551,7 @@
     char	*av[];
 {
     char	buff[SPOOLNAMEBUFF];
-    char	idbuff[SMBUF];
+    char	idbuff[BIG_BUFFER];
     int		save;
     BOOL	next;
     int		delta;

Heiko Schlichting  | Freie Universitaet Berlin
heiko@FU-Berlin.DE | Center for Information Services (DFN-CIS)

Re: [BUGREPORT] inn-1.5.1sec: idbuff[SMBUF vs BIG_BUFFER]
#19901
Author: USENET news
Date: Wed, 30 Jul 1997 00:00
28 lines
1595 bytes
In article <5rmdp1$m6r@fu-berlin.de>,
Heiko Schlichting <heiko@cis.fu-berlin.de> wrote:
>After installing inn-1.5.1sec instead inn-1.5.1  nnrpd dumps core whenever
>a 'NEXT' or 'LAST' should answer with a Message-ID:
>
>[heiko@Boa] 171 (~): telnet 0 119
>200 cis.fu-berlin.de NNRP server INN 1.5.1sec 25-Jul-1997 ready (posting ok).
>group bln.test
>211 48 1 48 bln.test
>stat 40
>223 40 <5rjfiq$o4n$1@cis.fu-berlin.de> status
>next
>Connection closed by foreign host.

Mmm... just tried it and I get a normal 223 response followed instantly
by "503 Timeout after 0 seconds, closing connection.". Clearly a problem, 
though it looks like symptoms will vary.

I just tried your patch - which worked but with a 35-line offset - and it 
certainly seems cures the symptoms, for me.

                                John Line
-- 
Cambridge University Computing Service - USENET news manager. Usually John Line
newsmaster@ucs.cam.ac.uk    (alias {newsmaster,news,usenet}@news.cam.ac.uk)

Re: [BUGREPORT] inn-1.5.1sec: idbuff[SMBUF vs BIG_BUFFER]
#19979
Author: Michael Douglass
Date: Thu, 31 Jul 1997 00:00
19 lines
1279 bytes

: After installing inn-1.5.1sec instead inn-1.5.1  nnrpd dumps core whenever
: a 'NEXT' or 'LAST' should answer with a Message-ID:

You know what?  The ISC _knew_ about this one too...  It was reported as a
bug in 1.6b1...  I'm also very curious as to how much testing they did on
this release tree (1.5.1sec) before releasing it...  innd 1.5.1sec for me
core dumped once--and I'm not about to give it a second chance... :)

-- 
Michael Douglass
Texas Networking, Inc.

   <de> 'hail sparc, full of rammage'
   <de> 'the kernel is with thee'
   <de> 'blessed art thou amongst processors'

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads