🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
4 messages
4 total messages Started by Daniel Huber Sat, 10 Aug 1991 09:01
A small bug or a funny feature ??
#1964
Author: Daniel Huber
Date: Sat, 10 Aug 1991 09:01
31 lines
1248 bytes
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

I do not thing that this is a feature...  :-)

Did somebody else recognize this???


Gruessli

Daniel


-- 
Daniel Huber AD-KT2.6   VOICE: +41 31 52 96 64 FAX: +41 31 52 97 51
Ascom Autelca AG        Network Engineer ( Network, E-Mail, News )
CH-3073 Guemligen       EMAIL:  dhuber@autelca.ascom.ch
Switzerland             UUCP:   uunet!{chsun,chx400}!hslrswi!aut!dhuber
Re: A small bug or a funny feature ??
#1977
Author: Volker Hamann
Date: Tue, 13 Aug 1991 13:39
41 lines
1822 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

[stuff deleted]

>I do not thing that this is a feature...  :-)

>Did somebody else recognize this???


>Gruessli    [ nicht "Gruezi" ??? ]

>Daniel

Even worse, when I have a menu with, e.g., items a-s and select "t",
all I get is a memory fault (with core dump).

This is a bug (for sure) !

Hardware: Solbourne S4000 (Sun Sparc-II compatible)
Software: nn 6.4 Patchlevel 16

To be just, I want to add that nn is my favourite news reader, compared
to rn, gnews, xrn.

Servus
        Volker
--
|   /| ! Volker Hamann              ! Email: volker@vlsivie.tuwien.ac.at  
|  / | ! Department for VLSI Design ! Phone: (++43 1) 58801-8142
|-/--| ! University of Technology   ! Fax:   (++43 1) 569697 
|/   | ! Vienna, Austria              "IS THERE ANYBODY OUT THERE?"
Re: A small bug or a funny feature ??
#1978
Author: 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
Re: A small bug or a funny feature ??
#1981
Author: John R. Schutz
Date: Tue, 13 Aug 1991 21:25
35 lines
1947 bytes
volker@vlsivie.tuwien.ac.at (Volker Hamann) writes:

>In <2108@aut.autelca.ascom.ch> dhuber@aut.autelca.ascom.ch (Daniel Huber) writes:

>>Menu goes from/to	we type		this selects

>>Did somebody else recognize this???

>Even worse, when I have a menu with, e.g., items a-s and select "t",
>all I get is a memory fault (with core dump).

I'm not sure about Daniel Huber's problem, but they're probably
related.  Volker's problem was recognized when patch 16 came out.
Someone (I'm sorry, whoever.  I don't remember who you are!) came out
with an unofficial patch that fixed the problem.  The following should
work:

1) edit the file menu.c
2) in menu.c, change the line that reads:

   if (article_id < 0 || article_id > menu_articles) {

to

   if (article_id < 0 || article_id >= menu_articles) {

That should do it.  Simple, but important.

							john
   
--
| John R. Schutz                     | Email&NeXTmail:                       |
| A learning NeXTie                  |		john@csrnxt1.ae.utexas.edu   |
| (512)328-0587                      | The 23rd periodic element is Vanadium |
| 3009 Hatley Dr., Austin, TX  78746 | 'V'.  V is roman numeral for 5. Hmmm  |
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