Subject: CVS commit: src/sys/dev/wsfont
To: None <source-changes@NetBSD.org>
From: Chris Gilbert <chris@netbsd.org>
List: source-changes
Date: 03/17/2006 03:21:57
Module Name:	src
Committed By:	chris
Date:		Fri Mar 17 03:21:57 UTC 2006

Modified Files:
	src/sys/dev/wsfont: wsfont.c

Log Message:
Fix range to check to avoid a static buffer overrun, when
font->encoding == 4, which would cause access past the end of the encodings
array.

Fixes Coverity CID 1446.

Note that perhaps we should actually have an encoding line for
WSDISPLAY_FONTENC_ISO2 which is encoding 4.


To generate a diff of this commit:
cvs rdiff -r1.40 -r1.41 src/sys/dev/wsfont/wsfont.c

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