[LU-12447] Fedora28 Lustre client build failure Created: 18/Jun/19  Updated: 03/Jul/19  Resolved: 03/Jul/19

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.13.0, Lustre 2.12.3

Type: Bug Priority: Minor
Reporter: Wang Shilong (Inactive) Assignee: Wang Shilong (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Environment:

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.


Severity: 3
Rank (Obsolete): 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));
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


 Comments   
Comment by Gerrit Updater [ 18/Jun/19 ]

Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/35257
Subject: LU-12447 utils: specify correct size for lfs project buffer
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 43b89c564ce6d642e4e45b9266f26609ce5ff796

Comment by Gerrit Updater [ 21/Jun/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35257/
Subject: LU-12447 utils: specify correct size for lfs project buffer
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: ffef6e3271ad1136d3ab1c2ee229b4690a6722a0

Comment by Gerrit Updater [ 21/Jun/19 ]

Jian Yu (yujian@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/35284
Subject: LU-12447 utils: specify correct size for lfs project buffer
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: 0d44a0bccf4a199c2a132e0588c43a69214ffd53

Comment by Gerrit Updater [ 03/Jul/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35284/
Subject: LU-12447 utils: specify correct size for lfs project buffer
Project: fs/lustre-release
Branch: b2_12
Current Patch Set:
Commit: a7614e22b431ae3f288ab5e393dbac5a0235f5f5

Comment by Peter Jones [ 03/Jul/19 ]

Landed for 2.13 and 2.12.3

Generated at Sat Feb 10 02:52:39 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.