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.