Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/17/84; site elsie.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!mcnc!decvax!linus!philabs!cmcl2!seismo!umcp-cs!cvl!elsie!ado From: ado@elsie.UUCP (Arthur David Olson) Newsgroups: net.bugs.4bsd Subject: Re: bug in lint Message-ID: <5055@elsie.UUCP> Date: Thu, 14-Feb-85 20:08:53 EST Article-I.D.: elsie.5055 Posted: Thu Feb 14 20:08:53 1985 Date-Received: Sun, 17-Feb-85 05:49:56 EST References: <376@harvard.ARPA> Distribution: net Organization: NIH-LEC, Bethesda, MD Lines: 30 > The following program causes our 4.2BSD lint to core-dump: > struct { a x; }; > typedef int *b, *a; > struct { b y; a z; }; Index: src/mip/pftn.c Fix Description: Feeding outre source to "lint" or "cc" can cause core dumps using either the 4.1bsd or 4.2bsd versions of the programs. Repeat-By: echo "struct { a y; a z; };" > file.c cc file.c lint file.c Fix: ed mip/pftn.c /determine if name/a #ifndef OLDVERSION if (paramno > 0) #endif . w q -- Lint is an Oscar Madison trademark. -- UUCP: ..decvax!seismo!elsie!ado ARPA: elsie!ado@seismo.ARPA DEC, VAX and Elsie are Digital Equipment and Borden trademarks