qt5base-lts/tests/auto/corelib
Giuseppe D'Angelo 281771ee20 QRegExp: fix usage of uninitialized values
A (probable) typo was causing the code dealing with anchors
to use uninitialized values. This used to work by chance, but was
indeed detected by Valgrind f.i. when running tst_qregexp --
the indexIn test on anc11 data reported:

    ==3015== Conditional jump or move depends on uninitialised value(s)
    ==3015==    at 0x514B4EA: PeppeQt::QRegExpMatchState::testAnchor(int, int, int const*) (qregexp.cpp:1813)
    [...]
    ==3015==  Uninitialised value was created by a stack allocation
    ==3015==    at 0x514B3EB: PeppeQt::QRegExpMatchState::testAnchor(int, int, int const*) (qregexp.cpp:1803)

Fixing the code also makes the aforementioned test to succeed.

Change-Id: If7b3e518c1bbfcf12573d2637c33ef2eca27c4d5
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-05-19 01:45:04 +02:00
..
animation Don't use obsolete qVariantValue, qVariantCanConvert, etc. 2012-05-02 08:30:59 +02:00
codecs Change remaining uses of {to,from}Ascii to {to,from}Latin1 [QtCore] 2012-05-04 12:45:47 +02:00
global Add Q_UINT64_C to 64 bit integer literal. 2012-05-15 23:03:23 +02:00
io Fix QFile::permissions for long filenames 2012-05-16 04:24:43 +02:00
itemmodels Don't use obsolete qVariantValue, qVariantCanConvert, etc. 2012-05-02 08:30:59 +02:00
json Limit the nesting depth of the Json parser 2012-05-16 04:25:11 +02:00
kernel Move QIcon metatype handlers back to QtGui 2012-05-18 21:42:58 +02:00
mimetypes Rename QMimeDatabase method for consistency. 2012-05-15 14:25:37 +02:00
plugin Remove insignification from QPluginLoader and QFactoryLoader tests. 2012-04-17 16:28:46 +02:00
statemachine Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
thread Remove parallel flag for qsemaphore because of flaky nature. 2012-05-18 10:33:17 +02:00
tools QRegExp: fix usage of uninitialized values 2012-05-19 01:45:04 +02:00
xml Convert these files to ASCII or UTF-8 2012-04-27 22:52:01 +02:00
corelib.pro Import QMimeType / QMimeDatabase into QtCore. 2012-02-18 22:19:43 +01:00