[LU-12147] statone utility doesn't form correct string with gcc8 Created: 02/Apr/19  Updated: 26/Apr/23  Resolved: 30/Apr/19

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

Type: Bug Priority: Trivial
Reporter: Alex Zhuravlev Assignee: Alex Zhuravlev
Resolution: Fixed Votes: 0
Labels: None
Environment:

the following code:
strncpy(parent, base, t - base);
offset = t - base - 1;
leaves parent with no terminating null with gcc8
and this breaks tests like recovery-small


Issue Links:
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Comments   
Comment by Gerrit Updater [ 02/Apr/19 ]

Alex Zhuravlev (bzzz@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/34572
Subject: LU-12147 utils: statone doesn't place \0
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 4cb5e80ff1f48d217881f413c492a7c9fa20dbe3

Comment by Gerrit Updater [ 30/Apr/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34572/
Subject: LU-12147 utils: statone doesn't place \0
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 8ecd8de15cf55f9569b670e33171fc91c96b48d7

Comment by Peter Jones [ 30/Apr/19 ]

Landed for 2.13

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