[LU-12999] gcc8 compile warning on string overflow in name_create_mdt Created: 22/Nov/19 Updated: 29/May/21 Resolved: 16/Dec/19 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.14.0, Lustre 2.12.7 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Shaun Tancheff | Assignee: | Shaun Tancheff |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Severity: | 3 |
| Rank (Obsolete): | 9223372036854775807 |
| Description |
|
/home/shaun/lustre-wc-rel/lustre/mgs/mgs_llog.c:1539:2: note: ‘sprintf’ output between 9 and 10 bytes into a destination of size 9 sprintf(mdt_index, "-MDT%04x", i); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/shaun/lustre-wc-rel/lustre/mgs/mgs_llog.c:1539:30: error: ‘sprintf’ may write a terminating nul past the end of the destination [-Werror=format-overflow=] sprintf(mdt_index, "-MDT%04x", i);
|
| Comments |
| Comment by Gerrit Updater [ 22/Nov/19 ] |
|
Shaun Tancheff (stancheff@cray.com) uploaded a new patch: https://review.whamcloud.com/36817 |
| Comment by Gerrit Updater [ 16/Dec/19 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36817/ |
| Comment by Peter Jones [ 16/Dec/19 ] |
|
Landed for 2.14 |
| Comment by Gerrit Updater [ 14/Apr/21 ] |
|
Olaf Faaland-LLNL (faaland1@llnl.gov) uploaded a new patch: https://review.whamcloud.com/43321 |
| Comment by Gerrit Updater [ 29/May/21 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/43321/ |