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

Buffer overflow detected when reading YAML file using old API

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: