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

error in qstrcmp(const QByteArray &str1, const char *str2)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.6.0
    • None

    Description

      Starting from Qt 4.4 there is a special implementation for qstrcmp(const QByteArray &str1, const char *str2) which is buggy. Just try to compare two equal strings. From my point of view the line
      const char *str1end = str1data + str1.length();
      should read
      const char *str1end = str1data + str1.length() - 1;

      Btw: the "Component/s" box in the issue form is much too small. finding anything is really tedious.

      Attachments

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

        Activity

          People

            sletta Gunnar Sletta
            rochus.keller Rochus Keller
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes