Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-3504

Valgrind warning in QFileInfo::symLinkTarget()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • Some future release
    • 4.4.2
    • Core: I/O
    • None

    Description

      ==17149== Conditional jump or move depends on uninitialised value(s)
      ==17149== at 0x7096A7F: QFSFileEngine::fileName(QAbstractFileEngine::FileName) const (qfsfileengine_unix.cpp:759)
      ==17149== by 0x705BE80: QFileInfoPrivate::getFileName(QAbstractFileEngine::FileName) const (qfileinfo.cpp:198)
      ==17149== by 0x705BF2F: QFileInfo::readLink() const (qfileinfo.cpp:1149)
      ==17149== by 0x401B9D: QFileInfo::symLinkTarget() const (qfileinfo.h:108)
      ==17149== by 0x401987: main (qfileinfo_readlink.cpp:14)

      Line is:
      if (S_ISDIR(d->st.st_mode) && s[0] != '/') {

      d->st.st_mode isn't initialised (we haven't stat'ted yet). The call to d->isSymlink() stats but doesn't store the result in d->st.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            stormols Marius Storm-Olsen
            roschern Nils Christian Roscher-Nielsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes