The following commit has been merged in the openafs-stable-1_6_x branch:
commit 618343f0261bb5ffa036d93f1a3bc313ed76a037
Author: Andrew Deason <[email protected]>
Date:   Tue Dec 10 17:02:34 2013 -0600

    cellconfig: Do not use 'long' for dbserver IPs
    
    A few places in this file assume that our dbserver IP addresses are
    "long"s. A long int can be 8 bytes on some platforms, but we know
    these IP addresses are all 4-byte integers. In the rare instances
    where we have the maximum number of dbservers, this can overwrite a
    bit of extra memory. This can also result in a misaligned access on
    platforms such as SPARC v9, since the elements of he->h_addr_list are
    not guaranteed to be 8-byte aligned.
    
    So instead, treat these as 4-byte integers. For copying out of
    he->h_addr_list, also use a memcpy anyway to be safe, since we are not
    guaranteed alignment.
    
    Reviewed-on: http://gerrit.openafs.org/10599
    Tested-by: BuildBot <[email protected]>
    Reviewed-by: Jeffrey Altman <[email protected]>
    (cherry picked from commit d8f75d3206eaa56b3a819a5bc13a4bf3a9130512)
    
    Change-Id: I2568577b05f47ebc75b34a9cd106fceac8a31ef7
    Reviewed-on: http://gerrit.openafs.org/10603
    Tested-by: BuildBot <[email protected]>
    Reviewed-by: Andrew Deason <[email protected]>
    Reviewed-by: Benjamin Kaduk <[email protected]>
    Reviewed-by: Stephan Wiesand <[email protected]>

 src/auth/cellconfig.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

-- 
OpenAFS Master Repository
_______________________________________________
OpenAFS-cvs mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-cvs

Reply via email to