OpenAFS Master Repository branch, master, updated. BP--openafs-stable-1_6_x-601-g463b045
Gerrit Code Review
gerrit@openafs.org
Tue, 28 Dec 2010 07:04:12 -0800 (PST)
The following commit has been merged in the master branch:
commit 463b045b9fe4a412877c2a65f5deafb1442c1bf1
Author: Jeffrey Altman <jaltman@your-file-system.com>
Date: Mon Dec 27 19:34:14 2010 -0500
vos: do not mix memory allocation methods
ListVLDB mixed memory allocated with xdr_alloc() and memory
allocated with malloc(). This is not safe to do since it is
possible on some platforms for xdr_alloc() to allocated memory
using a method other than the malloc() linked to the vos
executable.
Instead of stealing the xdr_alloc()'d buffer, allocate a new
buffer and copy the contents.
Change-Id: Icdda3d4d0b7c15464fe7f48123f3e0ebed4c2cc5
Reviewed-on: http://gerrit.openafs.org/3600
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
src/volser/vos.c | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
--
OpenAFS Master Repository