]> git.michaelhowe.org Git - packages/o/openafs.git/commit
fstrace: Don't read uninitialised data
authorSimon Wilkinson <sxw@your-file-system.com>
Sat, 2 Mar 2013 11:49:13 +0000 (11:49 +0000)
committerStephan Wiesand <stephan.wiesand@desy.de>
Tue, 3 Jun 2014 16:48:22 +0000 (12:48 -0400)
commitcb1c5ddb307db2d4f7a9e3e9627b8576fc1aa9e5
tree2074d8038e40bb87e1064341be2bd808035354f4
parentc5d1f3130dc2943de19e3a40b84500eb84078a79
fstrace: Don't read uninitialised data

The pftix variable points to the next free element in the
printfTypes array, so when we iterate through that array to
read that data back, we should stop when our iterator equals
pftix, not when it is greater than it.

Caught by coverity (#986013)

Reviewed-on: http://gerrit.openafs.org/9442
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
(cherry picked from commit 908105fe8d51551e45692de4e145022138a0356c)

Change-Id: I2dec4dc3b041093e1d1ac2ea4546a341e9b00687
Reviewed-on: http://gerrit.openafs.org/11053
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/venus/fstrace.c