]> git.michaelhowe.org Git - packages/o/openafs.git/commit
viced-store-data-validate-input-20060408
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 8 Apr 2006 20:40:15 +0000 (20:40 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 8 Apr 2006 20:40:15 +0000 (20:40 +0000)
commit9817af2a81eded29eeefcf8ef4445301a7d348ea
treec25e03a8832b3c7e2b69298e038a72c8992e4134
parentb9282fbe0f9c4eec359ecdce77b35c88cde54793
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.
src/viced/afsfileprocs.c