DEVEL15-largefile-avoid-wraparound-write-to-old-server-20071204

LICENSE IPL10
FIXES 73720

apply analogous check that's in fileserver to clients writing to old servers


(cherry picked from commit d13cd42cb4e0b2fe3f91565eac37dc3f3e6d3270)
This commit is contained in:
Derrick Brashear 2007-12-04 21:09:49 +00:00
parent 85352be763
commit 4956f41b85

View File

@ -92,6 +92,10 @@ afs_StoreMini(register struct vcache *avc, struct vrequest *areq)
afs_int32 l1, l2;
l1 = avc->m.Length;
l2 = tlen;
if ((avc->m.Length > 0x7fffffff) ||
(tlen > 0x7fffffff) ||
((0x7fffffff - tlen) < avc->m.Length))
return EFBIG;
code =
StartRXAFS_StoreData(tcall,
(struct AFSFid *)&avc->fid.Fid,