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

Array Index Out of Bounds in osd_start()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • None
    • Lustre 2.9.0
    • 3
    • 9223372036854775807

    Description

      char flagstr[16];
      [...]
      sprintf(flagstr, "%lu:%lu", mflags, (unsigned long) lmd->lmd_flags);
      

      TRACEBACK

      • An event which alters the program's state, leading to the defect
        obd_mount_server.c:1683: Array 'flagstr' size is 16.
        • An event which alters the program's state, leading to the defect
          obd_mount_server.c:1694: 'flagstr' is passed as an argument to function 'sprintf'.
          • An event which alters the program's state, leading to the defect
            obd_mount_server.c:1694: Length of format string "%lu:%lu" is 21.
          • An event which alters the program's state, leading to the defect
            obd_mount_server.c:1694: Length of non-format characters is 1.
          • An event which alters the program's state, leading to the defect
            obd_mount_server.c:1694: Length of conversion specification '%u' for argument 'mflags' is 10.
          • An event which alters the program's state, leading to the defect
            obd_mount_server.c:1694: Length of conversion specification '%u' for argument 'lmd->lmd_flags' is 10.

      Attachments

        Issue Links

          Activity

            People

              wc-triage WC Triage
              dmiter Dmitry Eremin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: