bug in lint
Arthur David Olson
ado at elsie.UUCP
Fri Feb 15 11:08:53 AEST 1985
> 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 at seismo.ARPA
DEC, VAX and Elsie are Digital Equipment and Borden trademarks
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list