OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-3592-gfcb7974
Gerrit Code Review
gerrit@openafs.org
Sat, 9 Mar 2013 19:15:40 -0800 (PST)
The following commit has been merged in the master branch:
commit fcb7974b838c2b37a8b81b88b11905c6ece398f6
Author: Simon Wilkinson <sxw@your-file-system.com>
Date: Sat Mar 2 10:27:47 2013 +0000
util: Avoid overflow in GetNameByINet
We copy the results of gethostbyaddr into a fixed length buffer
without checking whether they fit. Add a length check, and use
strlcpy to do the copy to make sure we can't overflow.
Caught by coverity (#985912, #985872)
Change-Id: I1e8f0fbb2577199c25201940f54646a4acdbbd37
Reviewed-on: http://gerrit.openafs.org/9393
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/util/hostparse.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
--
OpenAFS Master Repository