🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.bugs
Article #506

Bug in sps

#506
From: William Kucharski
Date: Thu, 29 Nov 1990 00:26
29 lines
1506 bytes
This small but nasty bug was causing the recently sps command recently
posted to comp.sources.unix to seg fault and die.  I've sent mail to the author
but felt it was hair-pulling enough to post as well:

*** filecount.c.dist	Wed Nov 28 17:02:26 1990
--- filecount.c	Wed Nov 28 17:02:20 1990
***************
*** 44,50 ****
  		len = User.u_us.u_lastfile * sizeof (struct file *) ;
  		if (len <= 0)
  			return 0;
! 		if (files == 0 || len < files_len)
  		{
  			if (files != 0)
  				free (files) ;
--- 44,50 ----
  		len = User.u_us.u_lastfile * sizeof (struct file *) ;
  		if (len <= 0)
  			return 0;
! 		if (files == 0 || len > files_len)
  		{
  			if (files != 0)
  				free (files) ;
--
| William Kucharski, Solbourne Computer, Inc.     | Opinions expressed above
| Internet:   kucharsk@Solbourne.COM	          | are MINE alone, not those
| uucp:	...!{boulder,sun,uunet}!stan!kucharsk     | of Solbourne...
| Snail Mail: 1900 Pike Road, Longmont, CO  80301 | "It's Night 9 with D2 Dave"
Technical Details
Message-ID: <1990Nov29.002611.21851@Solbourne.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!ncar!boulder!stan!number6!kucharsk
References: <MLEISHER.90Nov27165844@ithaka.nmsu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!ncar!boulder!stan!number6!kucharsk
From: kucharsk@number6.Solbourne.COM (William Kucharski)
Newsgroups: comp.sources.bugs
Subject: Bug in sps
Message-ID: <1990Nov29.002611.21851@Solbourne.COM>
Date: 29 Nov 90 00:26:11 GMT
References: <MLEISHER.90Nov27165844@ithaka.nmsu.edu>
Sender: news@Solbourne.COM
Organization: Solbourne Computer, Inc., Longmont, CO
Lines: 29