OpenAFS Master Repository branch, master, updated. BP-openafs-stable-1_8_x-597-gd73680c

Gerrit Code Review gerrit@openafs.org
Fri, 22 May 2020 12:13:44 -0400


The following commit has been merged in the master branch:
commit d73680c5f70ee5aeb634a9ec88bf1097743d0f76
Author: Cheyenne Wills <cwills@sinenomine.net>
Date:   Mon May 11 14:06:19 2020 -0600

    vol: Fix format-truncation warning with gcc-10.1
    
    Building with gcc-10.1 produces a warning (error if --enable-checking)
    in vol-salvage.c
    
    error: ā€˜%sā€™ directive output may be truncated writing up to 755 bytes
           into a region of size 255 [-Werror=format-truncation=]
      809 |     snprintf(inodeListPath, 255, "%s" OS_DIRSEP "salvage.inodes.%s.%d", tdir, name,
    
    Use strdup/asprintf to allocate the buffer dynamically instead of using
    a buffer with a hardcoded size.
    
    Change-Id: Ib2f01c2eb73c7abc162be2b1939e55688a81f812
    Reviewed-on: https://gerrit.openafs.org/14207
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>

 src/vol/vol-salvage.c |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

-- 
OpenAFS Master Repository