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

Buffer overflow detected when reading YAML file using old API

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Medium
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      lnetctl import could lead to:

      *** buffer overflow detected ***: terminated
      Aborted (core dumped) 

      The buffer used when reading YAML file with fgets in old API is 1 byte too small: we need to store '\0'.

      Also wrong length is given to fgets because strlen is called on modified buffer instead of the old one.

      Attachments

        Issue Links

          Activity

            People

              cbordage Cyril Bordage
              cbordage Cyril Bordage
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: