]> git.michaelhowe.org Git - packages/o/openafs.git/commit
STABLE14-viced-store-data-validate-input-20060408
authorJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 3 May 2006 11:57:13 +0000 (11:57 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 3 May 2006 11:57:13 +0000 (11:57 +0000)
commit42b1a27fd3ddb2dbb34599c89acf21c1701fd41f
treeda81262825d78dff997632ff45e6b9f9c7f2f9ea
parent60fdaf8406455f2e1dc6790f4d3821786b28f3cd
STABLE14-viced-store-data-validate-input-20060408

The old StoreData RPC is only supposed to be valid for files
smaller than 2GB.  When StoreData64 was added, StoreData and StoreData64
were implemented as calls to common_StoreData64.  This removed the bounds
checking on the old StoreData RPC making it possible for operations
beyond two 2GB to be requested even if the file server cannot support
them.  This patch adds a validity check to ensure that the requested
file operations remain below 2GB.  Failures return E2BIG.

(cherry picked from commit 9817af2a81eded29eeefcf8ef4445301a7d348ea)
src/viced/afsfileprocs.c