From: Derrick Brashear Date: Tue, 3 Feb 2004 05:43:23 +0000 (+0000) Subject: fs-return-EIO-when-starting-read-beyond-EOF-20040202 X-Git-Tag: openafs-devel-1_3_60~100 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=526c586898d5509a4abfdbd17e20c7325b75b312;p=packages%2Fo%2Fopenafs.git fs-return-EIO-when-starting-read-beyond-EOF-20040202 FIXES 1493 large file support asserted when attempting to read beginning past the end of the file --- diff --git a/src/viced/afsfileprocs.c b/src/viced/afsfileprocs.c index 1b271dc13..6acbf127a 100644 --- a/src/viced/afsfileprocs.c +++ b/src/viced/afsfileprocs.c @@ -6676,7 +6676,7 @@ FetchData_RXStyle(Volume * volptr, Vnode * targetptr, tlen = FDH_SIZE(fdP); ViceLog(25, ("FetchData_RXStyle: file size %llu\n", (afs_uintmax_t) tlen)); - if (tlen < 0) { + if ((tlen < 0) || (Pos > tlen)) { FDH_CLOSE(fdP); return EIO; }