OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_66-25-g93d48b1
Gerrit Code Review
gerrit@openafs.org
Mon, 2 Nov 2009 14:29:30 -0800 (PST)
The following commit has been merged in the master branch:
commit 93d48b1735b88b3051357307bdbebf5da9872d69
Author: Dan Hyde <drh@umich.edu>
Date: Thu Oct 29 12:07:47 2009 -0400
Add array bounds checking in h_Enumerate
When hostList is not properly NULL-terminated, the current code does
not protect from buffer overflow. The following patch prevents buffer
overflow, prints a message, and asserts.
On our Linux hosts, we never reached the original assert, as there is
a problem handling the segfault the buffer overflow causes.
FIXES 125506
Change-Id: Ifce92c593d17050e45add9e37a7a9ed4fbc377ef
Reviewed-on: http://gerrit.openafs.org/757
Reviewed-by: Dan Hyde <drh@umich.edu>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/viced/host.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
--
OpenAFS Master Repository