From: Apple Date: Tue, 1 Jul 2008 23:49:53 +0000 (+0000) Subject: xnu-1228.5.20.tar.gz X-Git-Tag: mac-os-x-1054^0 X-Git-Url: https://git.saurik.com/apple/xnu.git/commitdiff_plain/ca66cea69e6e866fd781ae2260d9474bdd48f2ca?ds=sidebyside xnu-1228.5.20.tar.gz --- 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.