OpenAFS Master Repository branch, openafs-stable-1_6_x, updated. openafs-stable-1_6_0pre1-81-ga3a7fb4
Gerrit Code Review
gerrit@openafs.org
Wed, 2 Feb 2011 18:39:05 -0800 (PST)
The following commit has been merged in the openafs-stable-1_6_x branch:
commit a3a7fb4fd617aaa1bd372bc2929caa9d01987cc6
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.
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>
(cherry picked from commit 463b045b9fe4a412877c2a65f5deafb1442c1bf1)
Change-Id: I64f43459a212ceb1b4f89e45a9827fc7b981ff6e
Reviewed-on: http://gerrit.openafs.org/3807
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/volser/vos.c | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
--
OpenAFS Master Repository