From 526c586898d5509a4abfdbd17e20c7325b75b312 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Tue, 3 Feb 2004 05:43:23 +0000 Subject: [PATCH] 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 --- src/viced/afsfileprocs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5