]> git.michaelhowe.org Git - packages/o/openafs.git/commit
LINUX: fix array indexing issue in memory statistics
authorChas Williams (CONTRACTOR) <chas@cmf.nrl.navy.mil>
Thu, 17 Jan 2013 02:16:31 +0000 (21:16 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Fri, 22 Mar 2013 14:44:12 +0000 (07:44 -0700)
commit69ef35ac1417ddba2d292bc22df9f54305ba9da1
tree50719c85af5122f25dd28ec55e72e6c9840cd400
parentd0418efd8edc60979ee7983b81437b5a467732e9
LINUX: fix array indexing issue in memory statistics

The comma is a sequence point and i gets incremented and then used.
This results in writing past the end of the array by one (and failing
to initialize the first element as well).

Potential fix for RT ticket 131566.

Reviewed-on: http://gerrit.openafs.org/8914
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Simon Wilkinson <simonxwilkinson@gmail.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
(cherry picked from commit 04ddecc1f2827463edf22857f9b19910ccc25e98)

Change-Id: I09a96fcb5ffc9a58f0930f76e4ee5f65628ba5c8
Reviewed-on: http://gerrit.openafs.org/9520
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/afs/LINUX/osi_alloc.c
src/afs/LINUX24/osi_alloc.c