In namei_create() a temporary FdHandle_t is allocated on
the stack but was never initialized. Depending on what
prior data was on the stack the FdHandle_t could result
in subsequent operations failing in unpredictable ways.
Change-Id: I6246930adc87cf84ad9c0913cda2d00e6f851bc1
Reviewed-on: http://gerrit.openafs.org/3667
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
b32_string_t str1;
memset((void *)&tmp, 0, sizeof(IHandle_t));
+ memset(&tfd, 0, sizeof(FdHandle_t));
tmp.ih_dev = nt_DriveToDev(part);
if (tmp.ih_dev == -1) {
int ogm_parm;
memset((void *)&tmp, 0, sizeof(IHandle_t));
+ memset(&tfd, 0, sizeof(FdHandle_t));
tmp.ih_dev = volutil_GetPartitionID(part);
if (tmp.ih_dev == -1) {