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

Potential one off bug in lmv_fid2path

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Lustre 2.11.0
    • Upstream, Lustre 2.11.0
    • 3
    • 9223372036854775807

    Description

      Potential off by two in lmv_fid2path()

      We want to concatonate join string one, a '/' character, string two and
      then a NUL terminator. The destination buffer holds ori_gf->gf_pathlen
      characters. The strlen() function returns the number of characters not
      counting the NUL terminator. So we should be adding two extra spaces,
      one for the foward slash and one for the NULL..

      Attachments

        Issue Links

          Activity

            People

              simmonsja James A Simmons
              simmonsja James A Simmons
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: