qt5base-lts/tests/auto/corelib
Michal Klocek b770b7517d Fix crash on reallocateAndGrow
After 6be398 few tests fail/crash with qtcharts.
Fix issue on reallocateAndGraw and avoid accessing
flags on invalid header.

Data::allocate can return invalid header and dataptr,
which takes place if capacity is 0. In code before 6be398
clone method checks if header is not null before resetting
flags. However after b76fbb4 resetting flags is no longer
needed since it is done in allocateGrow.

Task-number: QTBUG-89092
Pick-to: 6.0
Change-Id: I2fde781dad7a0694a5f17ab716f647c2e35f4ff0
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
2020-12-21 10:35:16 +00:00
..
animation Replace discouraged Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPE 2020-11-30 17:16:21 +01:00
global qRound: do not expect failure on ARM64 2020-12-17 18:29:48 +00:00
io Tests: Fix building with qmake on Windows 2020-12-17 13:02:15 +01:00
itemmodels Fix invalid QSortFilterProxyModel::dataChanged parameters 2020-11-30 12:39:21 +08:00
kernel Blacklist tst_QDeadlineTimer::stdchrono on Windows/clang 2020-12-21 10:23:15 +01:00
mimetypes CMake: Regenerate projects using pro2cmake one last time 2020-12-10 11:52:30 +01:00
plugin Fix tst_qlibrary after rebuild 2020-11-24 21:50:46 +01:00
serialization CMake: Regenerate projects using pro2cmake one last time 2020-12-10 11:52:30 +01:00
text CMake: Regenerate projects using pro2cmake one last time 2020-12-10 11:52:30 +01:00
thread Clean-up warnings in corelib/thread tests 2020-12-17 14:33:56 +01:00
time Restore previous QDateTime behavior in DST gap 2020-12-15 15:54:46 +01:00
tools Fix crash on reallocateAndGrow 2020-12-21 10:35:16 +00:00
.prev_CMakeLists.txt Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
CMakeLists.txt Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
corelib.pro Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00