From ca66cea69e6e866fd781ae2260d9474bdd48f2ca Mon Sep 17 00:00:00 2001 From: Apple Date: Tue, 1 Jul 2008 23:49:53 +0000 Subject: [PATCH 1/1] xnu-1228.5.20.tar.gz --- bsd/vfs/vfs_cluster.c | 3 +++ config/MasterVersion | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bsd/vfs/vfs_cluster.c b/bsd/vfs/vfs_cluster.c index c3b24c28d..891852d26 100644 --- a/bsd/vfs/vfs_cluster.c +++ b/bsd/vfs/vfs_cluster.c @@ -4330,6 +4330,9 @@ advisory_read_ext(vnode_t vp, off_t filesize, off_t f_offset, int resid, int (*c if ( !UBCINFOEXISTS(vp)) return(EINVAL); + if (resid < 0) + return(EINVAL); + max_io_size = cluster_max_io_size(vp->v_mount, CL_READ); KERNEL_DEBUG((FSDBG_CODE(DBG_FSRW, 60)) | DBG_FUNC_START, diff --git a/config/MasterVersion b/config/MasterVersion index 06cd966f5..2c14c9c7c 100644 --- a/config/MasterVersion +++ b/config/MasterVersion @@ -1,4 +1,4 @@ -9.3.0 +9.4.0 # The first line of this file contains the master version number for the kernel. # All other instances of the kernel version in xnu are derived from this file. -- 2.47.2