[news.software.b] News patch #4 may break small systems

campbell@maynard.BSW.COM (Larry Campbell) (03/08/87)

After applying news patch #4, my system became severely constipated.
Processes running inews were going into infinite loops.  Examination
of several core dumps revealed that inews was doing:

    insert -> broadcast -> log -> sprintf -> _doprnt -> malloc -> <loop>

My system is a humble 16-bitter, and everything is pretty close to the
edge.  I looked at the patch and the only thing that looked like it might
affect storage was the change in header.h from:

	char nbuf[BUFLEN];

to

	char nbuf[LBUFLEN];

So I tried changing it back to BUFLEN, and the problem disappeared.

Now of course malloc shouldn't go into an infinite loop, but I don't
have a source license, so there's not much I can do about malloc.
I just thought I'd mention this in case other 16-bit systems running
V7-derived UNIX ran into it.

(My system is a DEC Rainbow running VENIX 2.0, which is essentially V7.)
-- 
Larry Campbell                                The Boston Software Works, Inc.
Internet: campbell@maynard.uucp             120 Fulton Street, Boston MA 02109
uucp: {alliant,wjh12}!maynard!campbell              +1 617 367 6846
ARPA: campbell%maynard.uucp@harvisr.harvard.edu      MCI: LCAMPBELL