qt5base-lts/src/sql
Edward Welbourne 78eac57f3d Check for null driver() before trying to exec()
QSqlQuery::exec() took for granted that it can dereference driver(),
which should be true for all sane usage; however, it should not crash
if used misguidedly. Added regression test, based on bug report's
reproducer, which crashes without the fix.

Fixes: QTBUG-100037
Pick-to: 6.3 6.2 5.15 5.12
Change-Id: I94600bc60f89e82a1121b418144006a683921a38
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
2022-01-25 16:18:35 +01:00
..
doc Doc: Use find_package(Qt6 REQUIRED COMPONENTS ...) idiom 2021-12-09 22:20:04 +01:00
kernel Check for null driver() before trying to exec() 2022-01-25 16:18:35 +01:00
models Doc: Ensure deprecated APIs in Qt Sql are documented as such 2021-07-22 07:08:56 +02:00
CMakeLists.txt Migrate to autogenerated cpp exports 2021-06-25 19:33:12 +02:00
configure.cmake CMake: Regenerate configure.cmake files to get reports 2020-03-09 23:09:02 +01:00
qt_cmdline.cmake CMake: Re-implement configure/qmake's command line handling in CMake 2020-08-17 08:08:20 +02:00