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

Potential one off bug in lmv_fid2path

XMLWordPrintable

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

      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..

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

              Created:
              Updated:
              Resolved: