Subject: CVS commit: basesrc/usr.bin/xlint/lint1
To: None <source-changes@netbsd.org>
From: James Chacon <jmc@netbsd.org>
List: source-changes
Date: 06/28/2002 08:03:56
Module Name:	basesrc
Committed By:	jmc
Date:		Fri Jun 28 05:03:56 UTC 2002

Modified Files:
	basesrc/usr.bin/xlint/lint1: mem1.c

Log Message:
Change xgetblk to detect cases where the requested size is more than mblklen.
(generally it's 20k). Adjust mblklen temporarily to the size of the block
required and allocate one. This avoids coredumps when mapping in identifiers
that have huge values. (In my example it was a char[] for a 640k pixmap).


To generate a diff of this commit:
cvs rdiff -r1.7 -r1.8 basesrc/usr.bin/xlint/lint1/mem1.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.