OpenAFS Master Repository branch, openafs-stable-1_8_x, updated. openafs-stable-1_8_8_1-59-g80be173

Gerrit Code Review gerrit@openafs.org
Thu, 4 Aug 2022 14:06:10 -0400


The following commit has been merged in the openafs-stable-1_8_x branch:
commit 80be173ac14d02af725c7ee1db9043ae79e6b535
Author: Cheyenne Wills <cwills@sinenomine.net>
Date:   Tue May 24 20:14:36 2022 -0600

    vol: Use asprintf in _namei_examine_special
    
    GCC-12 is flagging an snprintf statement with a format truncation
    warning:
    
      namei_ops.c: In function ‘namei_ListAFSSubDirs’:
      namei_ops.c:2029:22: error: ‘%s’ directive output may be truncated
       writing up to 255 bytes into a region of size between 0 and 511
       [-Werror=format-truncation=]
    
    Change code to use asprintf instead of snprintf.  Return an error if a
    memory allocation fails.
    
    Reviewed-on: https://gerrit.openafs.org/14955
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
    (cherry picked from commit ae70db6cde5be5abd3bbbb26bd9af6fe68cc4b6b)
    
    Change-Id: I742e0210ac35eec7a143a780db4a6047a0a7c3fc
    Reviewed-on: https://gerrit.openafs.org/15056
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Andrew Deason <adeason@sinenomine.net>
    Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
    Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>

 src/vol/namei_ops.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

-- 
OpenAFS Master Repository