Subject: CVS commit: src/sys/compat/netbsd32
To: None <source-changes@NetBSD.org>
From: David Laight <dsl@netbsd.org>
List: source-changes
Date: 01/26/2008 09:07:01
Module Name:	src
Committed By:	dsl
Date:		Sat Jan 26 09:07:01 UTC 2008

Modified Files:
	src/sys/compat/netbsd32: netbsd32_netbsd.c

Log Message:
Don't try to bound the return value for pread/pwrite/pathconf by casting
an 'ssize_t' or 'long' variable to 'register_t'.
If the sizes were different it would either overwrite stack or return
uninitialised stack.  On big-endian systems things would be worse!


To generate a diff of this commit:
cvs rdiff -r1.136 -r1.137 src/sys/compat/netbsd32/netbsd32_netbsd.c

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