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

QDirIteratorPrivate assert triggered from QDir::entryList

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 5.12.12
    • 5.0.0
    • Core: I/O
    • None
    • Linux with a posix locale

    Description

      Given a file created with "touch `printf '\350\277\231'`" and a posix locale.

      Doing a QDir::entryList() on the directory containing this file results in an assert in QDirIteratorPrivate::matchesFilters(const QString&, const QFileInfo&).

      The filename given to matchesFilters is empty (probably because of the failed conversion to unicode).
      Qt should not assert in this case.

      Attachments

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

        Activity

          People

            stromme Christian
            sacu Sascha Cunz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes