Subject: CVS commit: src/lib/libc/rpc
To: None <>
From: Christos Zoulas <>
List: source-changes
Date: 03/16/2003 17:42:22
Module Name:	src
Committed By:	christos
Date:		Sun Mar 16 15:42:22 UTC 2003

Modified Files:
	src/lib/libc/rpc: xdr_mem.c

Log Message:
Don't do:

	if ((xdrp->x_handy -= need) < 0)
		return FALSE;

because by repeatedly calling this we can cause overflow, and then overwrite
valid memory. Instead do:

	if (xdrp->x_handy < need)
		return FALSE;
	xdrp->x_handy -= need;

To generate a diff of this commit:
cvs rdiff -r1.15 -r1.16 src/lib/libc/rpc/xdr_mem.c

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