🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
8 messages
8 total messages Started by Pete Ashdown Fri, 05 Jun 1992 18:17
Bug in letter selection.
#2799
Author: Pete Ashdown
Date: Fri, 05 Jun 1992 18:17
10 lines
1101 bytes
A user here found this bug today.  If you are looking at a title selection
screen which doesn't have many articles, and you type the letter of an article
that is higher than what is on the screen, nn coredumps.  For example, if you
have one article "a" and you type any letter from b-z, it will coredump.
-- 
  See the problems you get, when the heart of a man means less than a TV set.

DISCLAIMER: My writings have NOTHING to do with my employer.  Keep it that way.
Pete Ashdown    pashdown@slack.sim.es.com    ...uunet!slack.sim.es.com!pashdown
Re: Bug in letter selection.
#2796
Author: crystal
Date: Sat, 06 Jun 1992 00:58
22 lines
1900 bytes
In <1992Jun5.181727.15786@javelin.sim.es.com> pashdown@javelin.sim.es.com (Pete Ashdown) writes:


>A user here found this bug today.  If you are looking at a title selection
>screen which doesn't have many articles, and you type the letter of an article
>that is higher than what is on the screen, nn coredumps.  For example, if you
>have one article "a" and you type any letter from b-z, it will coredump.
>-- 
>  See the problems you get, when the heart of a man means less than a TV set.

>DISCLAIMER: My writings have NOTHING to do with my employer.  Keep it that way.
>Pete Ashdown    pashdown@slack.sim.es.com    ...uunet!slack.sim.es.com!pashdown

Yes, it happens to me, too... if there are 6 articles and I want to look at
all of them and forget to pay attention and hit a 7th letter then I get a 
half-meg+ of core dump. I got puzzled when I found core dumps in 6 of my
directories, and my administrator was irritable because I was over my storage
quota.  We figured out that if you create a directory called 'core' in each
one of the directories you are likely to call nn from, then the core dump has
no place to go and voila! no more over quota angry sys admins... ;>
 
 .
Re: Bug in letter selection.
#2797
Author: Kavaklis Yannis
Date: Sat, 06 Jun 1992 08:20
34 lines
2312 bytes
crystal@glia.biostr.washington.edu (crystal) writes:

>In <1992Jun5.181727.15786@javelin.sim.es.com> pashdown@javelin.sim.es.com (Pete Ashdown) writes:


>>A user here found this bug today.  If you are looking at a title selection
>>screen which doesn't have many articles, and you type the letter of an article
>>that is higher than what is on the screen, nn coredumps.  For example, if you
>>have one article "a" and you type any letter from b-z, it will coredump.
>>-- 
>>  See the problems you get, when the heart of a man means less than a TV set.

>>DISCLAIMER: My writings have NOTHING to do with my employer.  Keep it that way.
>>Pete Ashdown    pashdown@slack.sim.es.com    ...uunet!slack.sim.es.com!pashdown

>Yes, it happens to me, too... if there are 6 articles and I want to look at
>all of them and forget to pay attention and hit a 7th letter then I get a 
>half-meg+ of core dump. I got puzzled when I found core dumps in 6 of my
>directories, and my administrator was irritable because I was over my storage
>quota.  We figured out that if you create a directory called 'core' in each
>one of the directories you are likely to call nn from, then the core dump has
>no place to go and voila! no more over quota angry sys admins... ;>
> 
> .

The problem is in the menu.c file in the function get_k_cmd_1().
You have to change tha range check at the end of the function.
As far it concerns the coredumps, the command
limit coredumpsize 0m
in your .cshrc file (in case that you use csh) will prevent any further 
coredumps.. (or you can do it just before starting a programm that may
produce a useless core file).

Yannis Kavaklis
Re: Bug in letter selection.
#2802
Author: Gary Morris
Date: Mon, 08 Jun 1992 17:58
19 lines
1694 bytes
In <crystal.707792300@glia> crystal@glia.biostr.washington.edu (crystal) writes:
>In <1992Jun5.181727.15786@javelin.sim.es.com> pashdown@javelin.sim.es.com (Pete Ashdown) writes:
>>A user here found this bug today.  If you are looking at a title selection
>>screen which doesn't have many articles, and you type the letter of an article
>>that is higher than what is on the screen, nn coredumps.  For example, if you
>>have one article "a" and you type any letter from b-z, it will coredump.

>Yes, it happens to me, too... if there are 6 articles and I want to look at
>all of them and forget to pay attention and hit a 7th letter then I get a 
>half-meg+ of core dump. ...

You must be using nn 6.4.16.  Those bugs were fixed in some unofficial
(not from Kim) patches 17 and 18 that were posted to this newsgroup a while
back.  Send email if you need a copy.

--GaryM
-- 
Gary Morris                     Internet: garym@telesoft.com
TeleSoft, San Diego, CA         Phone:    +1 619-457-2700
Re: Bug in letter selection.
#2806
Author: Bill Wohler
Date: Tue, 09 Jun 1992 11:40
44 lines
1885 bytes
people,

  *please* glance at the faq before posting.  five posts could have
  been eliminated, saving network bandwidth across the whole world.
  faq not on your system?  read my next post...

Subject: Unofficial patches for various bugs
From: Building nn-12 
  
  Several bugs have been reported and fixed and the patches are
  available here for those not patient enough to wait until the next
  release.  Remember, these are *unofficial* patches so back them out
  before patching in the next release of nn.
  
  Why does nn crash when I select an article 1 past the last
  displayed?  
  
  The answer is an off by one bug in menu.c:
  
  *** menu.c.dist	Tue May  7 14:17:56 1991
  --- menu.c		Tue May  7 14:18:03 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 <david@cs.uow.edu.au>
  

Bill Wohler <wohler@sap-ag.de> <sapwdf!wohler>
Heidelberg Red Barons Ultimate Frisbee Team
Re: Bug in letter selection.
#2814
Author: Michael T Pins
Date: Tue, 09 Jun 1992 21:55
53 lines
2759 bytes
crystal@glia.biostr.washington.edu (crystal) writes:

>In <1992Jun5.181727.15786@javelin.sim.es.com> pashdown@javelin.sim.es.com (Pete Ashdown) writes:


>>A user here found this bug today.  If you are looking at a title selection
>>screen which doesn't have many articles, and you type the letter of an article
>>that is higher than what is on the screen, nn coredumps.  For example, if you
>>have one article "a" and you type any letter from b-z, it will coredump.

>Yes, it happens to me, too... if there are 6 articles and I want to look at
>all of them and forget to pay attention and hit a 7th letter then I get a 
>half-meg+ of core dump. I got puzzled when I found core dumps in 6 of my
>directories, and my administrator was irritable because I was over my storage
>quota.  We figured out that if you create a directory called 'core' in each
>one of the directories you are likely to call nn from, then the core dump has
>no place to go and voila! no more over quota angry sys admins... ;>

Of course, the better solution is to just fix the code....
The following patch will fix the problem, and is short enough it's worth
posting yet again:


  The following patch fixes the infamous 
  off by one bug in menu.c:
  
  *** menu.c.dist	Tue May  7 14:17:56 1991
  --- menu.c		Tue May  7 14:18:03 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;
	  }
  


-- 
*****************************************************************************
* Michael Pins                |   Internet: amigapd@isca.uiowa.edu          *
* ISCA's Amiga Librarian      |         #include <std.disclaimer>           *
*****************************************************************************
Re: Bug in letter selection.
#2824
Author: Alexis Rosen
Date: Thu, 11 Jun 1992 13:23
16 lines
1360 bytes
I tried feeding the "unofficial" patches to patch, and it died. Of course,
I said, there's an extra two spaces at the front of every line. A small sed
later, I was... not in business. Something _very_ peculiar appears to have
happened to those diffs. That was months ago, and other things have kept me
busy. But seeing this thread reminded me of this.

Could someone please explain to me what I'm missing here? I assume if there
was really some problem with the patches that couldn't be fixed easily, it
would have come to light ages ago.

Thanks,
--
Alexis Rosen   Owner/Sysadmin,
PANIX Public Access Unix & Internet, NYC.
alexis@panix.com
{uupsi,cmcl2}!panix!alexis
Re: Bug in letter selection.
#2834
Author: Bill Wohler
Date: Fri, 12 Jun 1992 08:14
16 lines
1422 bytes
alexis@panix.com (Alexis Rosen) writes:
>I tried feeding the "unofficial" patches to patch, and it died. Of course,
>I said, there's an extra two spaces at the front of every line.

  modern patch programs will ignore leading characters if they are the
  same on every line.  your message prompted me to check it out, and i
  found that the problem is that the patches themselves are
  munged.  it's just a problem with spaces instead of tabs or
  something like that, but enough to confuse patch.  fortunately, the
  important patch is short enough so you can make the changes by hand.
  i'll try to get fixed patches out in the next issue.

  cheers!

Bill Wohler <wohler@sap-ag.de> <sapwdf!wohler>
Heidelberg Red Barons Ultimate Frisbee Team
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