]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Demand Attach: Volumes and vnodes are different
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Sun, 25 Apr 2010 19:36:06 +0000 (20:36 +0100)
committerDerrick Brashear <shadow@dementia.org>
Mon, 17 May 2010 12:38:15 +0000 (05:38 -0700)
commit2736eb7b090bcec9756c55f312cc97a4521f8b02
tree4c26339564d674ffc4262222b0fd8c9a556e3d6b
parent6fd1db1a86e830b3758772a79f25c30080c4dd06
Demand Attach: Volumes and vnodes are different

fssync-debug attempts to copy sizeof(Volume) bytes into an object
defined as a Vnode, a sure fire way to make things go boom.

gcc on Snow Leopard picks this up as a buffer overflow, and warns about
it. Fix the problem by only copying sizeof(Vnode) bytes.

Change-Id: Iadcda0b465f9a9f310dcbe4d3862ea479e052674
Reviewed-on: http://gerrit.openafs.org/1834
Reviewed-by: Tom Keiser <tkeiser@sinenomine.net>
Reviewed-by: Alistair Ferguson <alistair.ferguson@mac.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/vol/fssync-debug.c