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

wrong pointer dereference in libcfs/util/parser.c

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Lustre 2.11.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      This is highleghted by newer gcc as in Fedora 26:

      util/parser.c: In function Б─≤processБ─≥:
      util/parser.c:199:28: error: comparison between pointer and zero character constant [-Werror=pointer-compare]
                       if ( *next == '\0' ) {
                                  ^~
      util/parser.c:199:22: note: did you mean to dereference the pointer?
                       if ( *next == '\0' ) {
                            ^
      cc1: all warnings being treated as errors
      make[4]: *** [autoMakefile:671: libcfsutil_a-parser.o] Error 1
      make[4]: Leaving directory '/home/green/smt/git/lustre-release/libcfs/libcfs'
      

      Apparently we really need to do double dereference on next.

      Attachments

        Activity

          People

            wc-triage WC Triage
            green Oleg Drokin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: