diff options
author | Christian Strømme <christian.stromme@digia.com> | 2012-09-24 12:38:44 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-03 17:30:30 +0200 |
commit | 403b15488b3d687bc2830099f075a5ad12f0ef5f (patch) | |
tree | b42a651b927e54a2596ffc10e88d79f5c5adc3de /tests/auto/corelib/tools/qstring | |
parent | 394249616cbb4c0861a032d33f846f85e2801677 (diff) |
Fix for integer overflow in QString::replace
Task-number: QTBUG-22967
Change-Id: I604e6a725d46eab4c4369ebb54e8c9ea1350f492
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/tools/qstring')
-rw-r--r-- | tests/auto/corelib/tools/qstring/tst_qstring.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/auto/corelib/tools/qstring/tst_qstring.cpp b/tests/auto/corelib/tools/qstring/tst_qstring.cpp index 2b00ec8c20..2bf8119b9e 100644 --- a/tests/auto/corelib/tools/qstring/tst_qstring.cpp +++ b/tests/auto/corelib/tools/qstring/tst_qstring.cpp @@ -2230,8 +2230,6 @@ void tst_QString::replace_uint_uint() QFETCH( int, len ); QFETCH( QString, after ); - QEXPECT_FAIL("overflow", "QTBUG-22967: integer overflow if (index + len) > INT_MAX", Abort); - QString s1 = string; s1.replace( (uint) index, (int) len, after ); QTEST( s1, "result" ); |