🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #302

Re: Xrn 6.15 catching signals on SunOs 4.1.1

#302
From: Mike Yang
Date: Sun, 07 Jul 1991 17:56
33 lines
1855 bytes
In article <10024@discus.technion.ac.il> edr%techunix.bitnet@lilac.berkeley.edu writes:
>Hi.
>Is there a patch for Xrn 6-15 so that it will stop catching signals
>now and again and crash?
>
>it behaved just fine before we upgraded from 4.0.3 to 4.1.1. and it's
>constant crashing is rather annoying.

Xrn 6.15 has a memory overrun problem.  The following change fixes it:

*** ORIG/internals.c	Tue Mar  5 13:01:43 1991
--- internals.c	Wed May  1 10:48:27 1991
***************
*** 2592,2598 ****
  		if (avl_lookup(tree, curSub, &ptr)) {
  		    /* add to the end */
  		    pte = (struct entry *) ptr;
! 		    if (lineLength > pte->left) {
  			/* grow the string */
  			pte->size += CHUNK;
  			pte->left += CHUNK;
--- 2592,2598 ----
  		if (avl_lookup(tree, curSub, &ptr)) {
  		    /* add to the end */
  		    pte = (struct entry *) ptr;
! 		    if (lineLength >= pte->left) {
  			/* grow the string */
  			pte->size += CHUNK;
  			pte->left += CHUNK;

-----------------------------------------------------------------------
                 Mike Yang        Silicon Graphics, Inc.
               mikey@sgi.com           415/335-1786
Technical Details
Message-ID: <1991Jul7.175634.22472@fido.asd.sgi.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.readers.mbox.zip!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!mips!sgi!shinobu!fido.asd.sgi.com!mikey
References: <10024@discus.technion.ac.il>

Show Full Headers
Complete Article Headers
Message-ID: <1991Jul7.175634.22472@fido.asd.sgi.com>
Subject: Re: Xrn 6.15 catching signals on SunOs 4.1.1
Date: Sun, 07 Jul 1991 17:56:34 +0000
From: mikey@sgi.com (Mike Yang)
References: <10024@discus.technion.ac.il>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!mips!sgi!shinobu!fido.asd.sgi.com!mikey
Newsgroups: news.software.readers
Sender: news@fido.asd.sgi.com (Usenet News Admin)
Organization: Silicon Graphics, Inc.
Lines: 33