ubik: Zero header before writing to disk
authorSimon Wilkinson <sxw@your-file-system.com>
Tue, 26 Feb 2013 12:21:59 +0000 (12:21 +0000)
committerDerrick Brashear <shadow@your-file-system.com>
Tue, 26 Feb 2013 16:49:01 +0000 (08:49 -0800)
commitd8fa251a14e9469fb6ec722d100b6a8557248694
tree908c18234dfa2261b82a0d07972e34f57e01edb6
parente191cb889c941848fe09f04c24d969111e6dc494
ubik: Zero header before writing to disk

The ubik disk header contains a padding field, which is never
zeroed before being written out to disk. This means that there is
a shorts worth of stack garbage in every ubik label!

Just zero the whole structure with memset before we populate it.

Caught by coverity (#986011)

Change-Id: Ib9f8b45111a83178372409c717c30ccb6a1044f4
Reviewed-on: http://gerrit.openafs.org/9272
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/ubik/phys.c