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

QByteArray::at() assert with wrong limit

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.8.1
    • None
    • Windows / MinGW

    Description

      The documentation states that "QByteArray ensures that the byte at position size() is always '\0'" Ref: http://qt-project.org/doc/qt-4.8/qbytearray.html#size

      But the code triggers the following while trying to access that last byte:

      ASSERT: "i >= 0 && i < size()" in file .../include/QtCore/qbytearray.h, line 414

      Changing the assertion fixes the problem.

      Attachments

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

        Activity

          People

            mitch_curtis Mitch Curtis
            rberber Rene Berber
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes