Subject: CVS commit: syssrc/sys/kern
To: None <source-changes@netbsd.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: source-changes
Date: 09/29/2001 17:16:20
Module Name:	syssrc
Committed By:	jdolecek
Date:		Sat Sep 29 14:16:20 UTC 2001

Modified Files:
	syssrc/sys/kern: uipc_socket.c

Log Message:
Use lmin() instead of min(), and long for mlen & clen, to avoid integer
overflow on LP64 architectures. This fixes kern/10070 by Juergen Weiss.

Fix tested on NetBSD/alpha by Bernd Ernesti, on NetBSD/sparc64
by David Brownlee and Eduardo Horvath.


To generate a diff of this commit:
cvs rdiff -r1.57 -r1.58 syssrc/sys/kern/uipc_socket.c

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