volser: Catch EOFs when reading dumps
authorSimon Wilkinson <sxw@your-file-system.com>
Tue, 26 Feb 2013 12:38:59 +0000 (12:38 +0000)
committerJeffrey Altman <jaltman@your-file-system.com>
Wed, 27 Feb 2013 01:19:49 +0000 (17:19 -0800)
commitcc703d9562455c74767fcd6d2055339109fa9243
treee91c3e95c84e4ee1d7b34720cbafde7909085777
parent96131593b329a319b22368a9ef37788fb4e5d4f4
volser: Catch EOFs when reading dumps

When reading a standard tag, make sure and catch an EOF error
from iod_getc. Otherwise we'll end up trying to parse 0xFF as a
tag length.

Caught by coverity (#985603)

Change-Id: Iae0b1bf71ed495b4f454975a1bfe3aef8fca3e9e
Reviewed-on: http://gerrit.openafs.org/9275
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/volser/dumpstuff.c