Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-12999

gcc8 compile warning on string overflow in name_create_mdt

Details

    • 3
    • 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);
       
      

       

      Attachments

        Activity

          [LU-12999] gcc8 compile warning on string overflow in name_create_mdt

          Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/43321/
          Subject: LU-12999 mgs: Cleanup string handling in name_create_mdt
          Project: fs/lustre-release
          Branch: b2_12
          Current Patch Set:
          Commit: f7a59078e3c37d25b22f90e158f737e26a320b5a

          gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/43321/ Subject: LU-12999 mgs: Cleanup string handling in name_create_mdt Project: fs/lustre-release Branch: b2_12 Current Patch Set: Commit: f7a59078e3c37d25b22f90e158f737e26a320b5a

          Olaf Faaland-LLNL (faaland1@llnl.gov) uploaded a new patch: https://review.whamcloud.com/43321
          Subject: LU-12999 mgs: Cleanup string handling in name_create_mdt
          Project: fs/lustre-release
          Branch: b2_12
          Current Patch Set: 1
          Commit: aeb93ed5868af923096e714c055739ea7a5f646e

          gerrit Gerrit Updater added a comment - Olaf Faaland-LLNL (faaland1@llnl.gov) uploaded a new patch: https://review.whamcloud.com/43321 Subject: LU-12999 mgs: Cleanup string handling in name_create_mdt Project: fs/lustre-release Branch: b2_12 Current Patch Set: 1 Commit: aeb93ed5868af923096e714c055739ea7a5f646e
          pjones Peter Jones added a comment -

          Landed for 2.14

          pjones Peter Jones added a comment - Landed for 2.14

          Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36817/
          Subject: LU-12999 mgs: Cleanup string handling in name_create_mdt
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 298cdb5c0b6136b91e76c9c515bfbc2df99bae0b

          gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36817/ Subject: LU-12999 mgs: Cleanup string handling in name_create_mdt Project: fs/lustre-release Branch: master Current Patch Set: Commit: 298cdb5c0b6136b91e76c9c515bfbc2df99bae0b

          Shaun Tancheff (stancheff@cray.com) uploaded a new patch: https://review.whamcloud.com/36817
          Subject: LU-12999 mgs: Increase string buffer in name_create_mdt
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: e691efbeafeec6d21ff69b15c7b540ce1d6fc3c9

          gerrit Gerrit Updater added a comment - Shaun Tancheff (stancheff@cray.com) uploaded a new patch: https://review.whamcloud.com/36817 Subject: LU-12999 mgs: Increase string buffer in name_create_mdt Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: e691efbeafeec6d21ff69b15c7b540ce1d6fc3c9

          People

            stancheff Shaun Tancheff
            stancheff Shaun Tancheff
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: