]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Windows: Add validation for directory buffer contents
authorJeffrey Altman <jaltman@your-file-system.com>
Thu, 26 Aug 2010 15:33:43 +0000 (11:33 -0400)
committerJeffrey Altman <jaltman@openafs.org>
Wed, 8 Sep 2010 03:46:15 +0000 (20:46 -0700)
commit695fc9ba0111ca0455395fac62ce50ec42f48329
tree3222eee43dbbb55331ec77835f32fc9d8cea89e8
parent8c4d5075c3b074584db03b7858a8d066057318f4
Windows: Add validation for directory buffer contents

If the directory buffer contents are garbage we can crash
the service.  Add some simple validation checks to ensure
that cm_dirEntry_t objects have the correct flag value and
that the name strings are not too long.

LICENSE BSD

Change-Id: If4a276007ff7a21a641825037a1035ea20db79c5
Reviewed-on: http://gerrit.openafs.org/2658
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
(cherry picked from commit 72584be7fb0b6eb01ca5cb9c0703e9bc1b92f547)
Reviewed-on: http://gerrit.openafs.org/2705
src/WINNT/afsd/cm_vnodeops.c