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>
Mon, 6 Sep 2010 03:55:24 +0000 (20:55 -0700)
commit72584be7fb0b6eb01ca5cb9c0703e9bc1b92f547
treec58be99ee8c369114da5f42656a049daafbc7c66
parent3f69933c4243d6861d5cce701c28f2dee088e6c2
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>
src/WINNT/afsd/cm_vnodeops.c