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

Result of malloc that may return NULL will be dereferenced

    XMLWordPrintable

Details

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

    Description

      		if (popt->po_delete && argv[i][len - 1] != '=') {
      			buf = malloc(len + 1);
      			sprintf(buf, "%s=", argv[i]);
      		} else {
      			buf = argv[i];
      		}
      

      Attachments

        Activity

          People

            dmiter Dmitry Eremin (Inactive)
            dmiter Dmitry Eremin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: