Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
Fedora release 28 (Twenty Eight)
gcc (GCC) 8.0.1 20180324 (Red Hat 8.0.1-0.20)
Copyright (C) 2018 Free Software Foundation, Inc.
-
3
-
9223372036854775807
Description
Hit following build failure when trying to build lustre master client:
lfs.c:5571:4: error: ‘strncpy’ specified bound 4096 equals destination size [-Werror=stringop-truncation] strncpy(mntdir, dname, sizeof(mntdir)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lfs_project.c: In function ‘lfs_project_item_alloc’: lfs_project.c:72:2: error: ‘strncpy’ specified bound 4096 equals destination size [-Werror=stringop-truncation] strncpy(lpi->lpi_pathname, pathname, sizeof(lpi->lpi_pathname)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Attachments
Activity
Fix Version/s | New: Lustre 2.13.0 [ 14290 ] | |
Fix Version/s | New: Lustre 2.12.3 [ 14418 ] | |
Assignee | Original: WC Triage [ wc-triage ] | New: Wang Shilong [ wshilong ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Description |
Original:
Hit following build failure when trying to build lustre master client:
{noformat} lfs.c:5571:4: error: ‘strncpy’ specified bound 4096 equals destination size [-Werror=stringop-truncation] strncpy(mntdir, dname, sizeof(mntdir)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lfs.c:5571:4: error: ‘strncpy’ specified bound 4096 equals destination size [-Werror=stringop-truncation] strncpy(mntdir, dname, sizeof(mntdir)); {noformat} |
New:
Hit following build failure when trying to build lustre master client:
{noformat} lfs.c:5571:4: error: ‘strncpy’ specified bound 4096 equals destination size [-Werror=stringop-truncation] strncpy(mntdir, dname, sizeof(mntdir)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lfs_project.c: In function ‘lfs_project_item_alloc’: lfs_project.c:72:2: error: ‘strncpy’ specified bound 4096 equals destination size [-Werror=stringop-truncation] strncpy(lpi->lpi_pathname, pathname, sizeof(lpi->lpi_pathname)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {noformat} |