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

Suspicious dereference of pointer before NULL check in osp_declare_xattr_get()

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.10.0
    • None
    • 3
    • 9223372036854775807

    Description

      Suspicious dereference of pointer 'name' by passing argument 1 to function 'strlen' at line 841 before NULL check at line 845

      • An event which alters the program's state, leading to the defect
        osp_object.c:841: 'name' is dereferenced by being passed as argument 1 to function 'strlen'.
      • An event which alters the program's state, leading to the defect
        osp_object.c:845: 'name' is checked for NULL.
      841			__u16			 namelen = strlen(name);
      842			int			 rc	 = 0;
      843		 
      844			LASSERT(buf != NULL);
      845			LASSERT(name != NULL);
      

      Attachments

        Activity

          [LU-7952] Suspicious dereference of pointer before NULL check in osp_declare_xattr_get()
          pjones Peter Jones made changes -
          Fix Version/s New: Lustre 2.10.0 [ 12204 ]
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          dmiter Dmitry Eremin (Inactive) created issue -

          People

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

            Dates

              Created:
              Updated:
              Resolved: