🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #1978

Re: A small bug or a funny feature ??

#1978
From: Mike Khaw
Date: Tue, 13 Aug 1991 19:05
66 lines
2709 bytes
In <2108@aut.autelca.ascom.ch> dhuber@aut.autelca.ascom.ch (Daniel Huber) writes:

>First I'm running NN 6.4 patchlevel 16...

>If we are in the menu section and want to select some articles to
>read, we recognized the following:

>Menu goes from/to	we type		this selects
>a-i			j		e
>a			b		a
>a-s			t		a
>aij			k		i (also sometimes j)
>a-d			e		d
>a-h			i		f
>a-e			f		e
>a-c			d		c
>a-m			n		k

Sounds like the off-by-1 bug for which the following patch was posted
some time ago:

>From parcplace!ads.com!decwrl!lll-winken!elroy.jpl.nasa.gov!usc!samsung!munnari.oz.au!metro!cs.uow.edu.au!david Fri May 10 18:12:52 1991
Path: parcplace!ads.com!decwrl!lll-winken!elroy.jpl.nasa.gov!usc!samsung!munnari.oz.au!metro!cs.uow.edu.au!david
From: david@cs.uow.edu.au (David E A Wilson)
Newsgroups: news.software.nn
Subject: Re: BUG Report - NN 6.4.16
Message-ID: <1991May9.234311.271@cs.uow.edu.au>
Date: 9 May 91 23:43:11 GMT
References: <ron.673824820@augeas.cs.athabascau.ca>
Organization: Dept of Computer Science, Wollongong University
Lines: 29

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

--
Mike Khaw
ParcPlace Systems, Inc., 1550 Plymouth St., Mountain View, CA 94043
Domain=khaw@parcplace.com, UUCP=...!{uunet,sun,decwrl}!parcplace!khaw
Technical Details
Message-ID: <khaw.682110359@parcplace.com>
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!gmdzi!unido!math.fu-berlin.de!ox.com!hela!widener!iggy.GW.Vitalink.COM!pacbell.com!mips!samsung!uunet!parcplace!parcplace.com!khaw
References: <2108@aut.autelca.ascom.ch>

Show Full Headers
Complete Article Headers
Message-ID: <khaw.682110359@parcplace.com>
Subject: Re: A small bug or a funny feature ??
Date: Tue, 13 Aug 1991 19:05:59 +0000
From: khaw@parcplace.com (Mike Khaw)
References: <2108@aut.autelca.ascom.ch>
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!gmdzi!unido!math.fu-berlin.de!ox.com!hela!widener!iggy.GW.Vitalink.COM!pacbell.com!mips!samsung!uunet!parcplace!parcplace.com!khaw
Newsgroups: news.software.nn
Sender: news@parcplace.com
Lines: 66