fileserver-no-longer-asserts-when-read-past-EOF-20040413
authorKen Hornstein <kenh@cmf.nrl.navy.mil>
Tue, 13 Apr 2004 21:41:11 +0000 (21:41 +0000)
committerKen Hornstein <kenh@cmf.nrl.navy.mil>
Tue, 13 Apr 2004 21:41:11 +0000 (21:41 +0000)
src/viced/afsfileprocs.c

index da04b22..cf2c9ac 100644 (file)
@@ -6690,7 +6690,7 @@ FetchData_RXStyle(Volume * volptr, Vnode * targetptr,
     {
        afs_int32 high, low;
        SplitOffsetOrSize(Len, high, low);
-       assert(Int64Mode || high == 0);
+       assert(Int64Mode || (Len >= 0 && high == 0) || Len < 0);
        if (Int64Mode) {
            high = htonl(high);
            rx_Write(Call, (char *)&high, sizeof(afs_int32));   /* High order bits */