🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #2727

Re: NN bug

#2727
From: guest account
Date: Thu, 07 May 1992 13:46
89 lines
3585 bytes
ajayshah@almaak.usc.edu (Ajay Shah) writes:

>I found I could reproduce this bug in nn 6.4.16.

>I am at a menu containing four entries (a b c d).  Each of them is a
>single article.  I say "c d e" and it dumps core.  It did this in two
>different newsgroups too, repeatedly.  I tried to script the whole
>interaction but script would not work right.
>Thanks,
>        -ans.
>-- 
>Ajay Shah, (213)749-8133, ajayshah@usc.edu

  This was a problem earlier in nn 6.4.16.  It is probably in the faq for nn.
  It was also posted here some months ago.  I am enclosing the original article
  that would correct this.

  Hope this helps.

  Ed.


 *** Original article ***

From: sherman@unx.sas.com (Chris Sherman)
Newsgroups: news.software.nn
Subject: Re: nn 6.4.16 is coredumping like crazy!! Help!!
Keywords: nn coredump core dump huge core files
Message-ID: <sherman.687061516@foster>
Date: 10 Oct 91 02:25:16 GMT
References: <1991Oct5.190108.337@nixbbs.UUCP>
Sender: news@unx.sas.com (Noter of Newsworthy Events)
Organization: SAS Institute Inc.
Lines: 53
Nntp-Posting-Host: foster.unx.sas.com

In <1991Oct5.190108.337@nixbbs.UUCP> root@nixbbs.UUCP (Donald Burr) writes:


>We are running nn 6.4.16, and having *MAJOR* problems with nn coredumping.
>The main place where this happens is at the article selection level; if you
>hit the letter of an article that isn't on the display (i.e. if articles
>are listed lettered from a-m, and you hit 'q'), nn coredumps.

>Is there a patch or fix that will correct this?  Or is a new version of nn
>available that fixes this?

>In any case, please supply relevant data as to how to get this stuff -- FTP
>site, what directory and filename, etc.

Back in May, David Wilson posted this unofficial patch.  Standard
disclaimers apply.


ron@augeas.cs.athabascau.ca (Ron Haukenfrers) writes:
>In NN 6.4.16, if you try to select the max_message + 1 the system will
>core dump.
>The question is, is this something just specific to our site or is it a real
>bug.

It is a real bug (an off by one error in menu.c):

*** /share/src/nn/menu.c	Tue May  7 14:18:03 1991
--- /share/src/nn/menu.c.dist	Tue May  7 14:17:56 1991
***************
*** 725,731 ****
  	article_id = map & ~K_ARTICLE_ID;
  	map = K_ARTICLE_ID;
  
! 	if (article_id < 0 || article_id >= menu_articles) {
  	    ding();
  	    goto loop;
  	}
--- 725,731 ----
  	article_id = map & ~K_ARTICLE_ID;
  	map = K_ARTICLE_ID;
  
! 	if (article_id < 0 || article_id > menu_articles) {
  	    ding();
  	    goto loop;
  	}
-- 
David Wilson	Dept Comp Sci, Uni of Wollongong	david@cs.uow.edu.au

-- 
     ____/     /     /     __  /    _  _/    ____/
    /         /     /     /   /      /     /          Chris Sherman
   /         ___   /        _/      /          /
 _____/   __/   __/   __/ _\    _____/   _____/           sherman@unx.sas.com
Technical Details
Message-ID: <1992May7.134641.25027@esker.geog.utoronto.ca>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!news-server.csri.toronto.edu!helios.physics.utoronto.ca!alchemy.chem.utoronto.ca!esker.geog.utoronto.ca!guest
References: <l0e3kpINN56h@almaak.usc.edu>

Show Full Headers
Complete Article Headers
Message-ID: <1992May7.134641.25027@esker.geog.utoronto.ca>
Subject: Re: NN bug
Date: Thu, 7 May 1992 13:46:41 GMT
From: guest@esker.geog.utoronto.ca (guest account)
References: <l0e3kpINN56h@almaak.usc.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!news-server.csri.toronto.edu!helios.physics.utoronto.ca!alchemy.chem.utoronto.ca!esker.geog.utoronto.ca!guest
Newsgroups: news.software.nn
Organization: University of Toronto Department of Geography
Lines: 90