OpenAFS Master Repository branch, openafs-stable-1_6_x, updated. openafs-stable-1_6_8-34-ga5b4025

Gerrit Code Review gerrit@openafs.org
Tue, 3 Jun 2014 12:39:19 -0400


The following commit has been merged in the openafs-stable-1_6_x branch:
commit a5b40254de63ade492da9508b7d0218a7fe07f30
Author: Simon Wilkinson <sxw@your-file-system.com>
Date:   Sat Mar 2 09:59:20 2013 +0000

    auth: Don't overflow hostName array
    
    afsconf_cell's hostName structure is a fixed length. Don't overflow
    it by writing whatever comes back from gethostbyaddr into it. Use
    strlcpy to catch an overflow, and if one occurs, just use
    "UNKNOWNHOST", rather than a truncated host name.
    
    Caught by coverity (#985906)
    
    Reviewed-on: http://gerrit.openafs.org/9354
    Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
    (cherry picked from commit fed5dac9f25f7fbd74b6834ce6f087eaf31be2f2)
    
    Change-Id: I468f66585e19623d62dee8730141767bd050ed1d
    Reviewed-on: http://gerrit.openafs.org/11041
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Andrew Deason <adeason@sinenomine.net>
    Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
    Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>

 src/auth/writeconfig.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

-- 
OpenAFS Master Repository