qt5base-lts/tests/auto/sql/kernel
Alexandru Croitor fb55e1e71e Sql: Fix heap-user-after-free for globally initialized db objects
Becaues the database objects were created as globals, there was a
possible use-after-free issue when deleting the objects on application
exit.

Move the initialization of the database objects into static variables
inside the test constructor.

As a drive-by, also add one missing test to the CMake projects.

Fixes: QTBUG-85357
Change-Id: I2c8f2c5daee96bb9d1d21dae37950a2da5ffdf27
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2020-07-01 10:03:57 +02:00
..
qsql Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qsqldatabase Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qsqldriver Merge "Merge remote-tracking branch 'origin/wip/cmake' into dev" 2020-02-14 14:55:04 +01:00
qsqlerror QSqlError: Remove deprecated methods 2020-04-06 14:25:12 +02:00
qsqlfield Regenerate tests/auto/sql 2019-11-13 10:12:32 +00:00
qsqlquery Sql: Fix heap-user-after-free for globally initialized db objects 2020-07-01 10:03:57 +02:00
qsqlrecord Regenerate tests/auto/sql 2019-11-13 10:12:32 +00:00
qsqlresult Use QList instead of QVector in sql tests 2020-06-25 10:14:15 +02:00
qsqlthread Sql: Fix heap-user-after-free for globally initialized db objects 2020-07-01 10:03:57 +02:00
CMakeLists.txt Add Sql build and tests 2018-11-05 15:45:54 +00:00
kernel.pro SQL: Change in QSqlResultPrivate::positionalToNamedBinding() 2012-12-10 21:23:35 +01:00