Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.15.8
-
78eac57f3d (qt/qtbase/dev) 78eac57f3d (qt/tqtc-qtbase/dev) 7042c1c5f8 (qt/qtbase/6.2) 7042c1c5f8 (qt/tqtc-qtbase/6.2) ba926780d1 (qt/qtbase/6.3) ba926780d1 (qt/tqtc-qtbase/6.3) ee386d9265 (qt/tqtc-qtbase/5.15) ba926780d1 (qt/tqtc-qtbase/6.3.0)
Description
QSqlQuery crashes if exec is called after the database connection is down. Looks like the QSqlQuery::driver() value ends up as nullptr but the checks for it are missing in the exec function.
Steps to reproduce the crash:
- Run the attached example