Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: basesrc
Module Name: basesrc
Committed By: christos
Date: Wed Jul 5 22:51:00 UTC 2000
Modified Files:
basesrc/usr.bin/xlint/lint1: decl.c
Log Message:
Prevent lint1 from coredumping on invalid c code such as:
foo((sockaddr *(void *))0);
This fix is imperfect, because right now we just check the subtype
chains for NULL and we return to the caller when the loop ends, leaving
the upper layers to cope with the syntax error. Ideally we should:
a.) return an error to the upper layer, or
b.) not call the type analysis routines in the presence of a syntax
error.
That would require a significant re-write which would take much more time
than I have...
To generate a diff of this commit:
cvs rdiff -r1.17 -r1.18 basesrc/usr.bin/xlint/lint1/decl.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index