mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
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:
parent
85352be763
commit
4956f41b85
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user