qt6-bb10/tests/auto/corelib/text
Marc Mutz b1938e5787 tst_QByteArray: fix UB (signed overflow)
The first case is simple, as it's a static overflow. Theoretically,
the compiler would be allowed to just remove the complete function as
dead code. This is an error left from the port from int to qsizetype:
Qt 5.15 there has uint(MaxAllocSize) + 1, so use quint here again,
qint64 is wrong.

In the second case, we _may_ reach alloc == MaxAllocSize. Check that,
if we do, we don't then add 1 to it.

Pick-to: 6.3 6.2
Change-Id: I93044ed6f1b77559642fa1e4e8f313cf59eeeb79
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2021-12-16 23:25:47 +01:00
..
qanystringview Short live q20::ssize()! 2021-11-20 01:38:41 +00:00
qbytearray tst_QByteArray: fix UB (signed overflow) 2021-12-16 23:25:47 +01:00
qbytearrayapisymmetry Silence compiler warning 2021-10-06 15:05:20 +02:00
qbytearraylist QByteArrayList: add join(QByteArrayView) 2021-11-04 01:16:16 +01:00
qbytearraymatcher Remove the qmake project files 2021-01-07 15:32:28 +01:00
qbytearrayview Add QByteArrayView::trimmed() 2021-08-11 22:32:42 +02:00
qbytedatabuffer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qchar Fix autotest runtime failures on INTEGRITY 2021-12-16 19:45:08 +02:00
qcollator QCollator: add public, static functions to do comparisons 2021-11-01 22:30:23 +02:00
qlatin1string QLatin1String: Add a constructor taking QByteArrayView 2021-06-12 03:08:59 +02:00
qlocale QLocale: Extend support for language codes 2021-12-09 03:45:08 +01:00
qregularexpression Check that QStringView::split() w/rvalue QRegularExpression returns valid data 2021-11-29 20:04:38 +00:00
qstring QString::arg: deprecate use of arbitrary Unicode digits as replacements 2021-11-30 19:33:34 +02:00
qstring_no_cast_from_bytearray testlib: Deprecate QWARN() in favor of qWarning() 2021-08-04 19:31:51 +02:00
qstringapisymmetry QString et al: fix lastIndexOf() API asymmetry 2021-12-02 16:05:33 +00:00
qstringbuilder QStringBuilder: Add support for QByteArrayView 2021-12-04 08:21:22 +00:00
qstringconverter Fix autotest runtime failures on INTEGRITY 2021-12-16 19:45:08 +02:00
qstringiterator Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstringlist Ensure test using setlocale() doesn't leave it permanently changed 2021-06-12 00:03:53 +02:00
qstringmatcher Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstringtokenizer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstringview Remove checks for features available in C++17 2021-10-02 17:54:39 +02:00
qtextboundaryfinder Update UCD to Revision 28 2021-10-18 16:45:10 +00:00
qunicodetools Add additional grapheme, word, and sentence break class tests from tr29 2021-11-10 09:44:03 +01:00
shared QString/QByteArray::number(double): Test big numbers 2021-08-17 03:53:45 +02:00
CMakeLists.txt Add an initial tst_QAnyStringView 2021-11-18 17:13:19 +00:00