qt5base-lts/tests/auto/sql/kernel/qsqlquery
Marcel Krems 41a716ebbf QSqlite: Don't crash after binding too many placeholders
When you bind more values than the query has placeholders,
indexes will be empty which causes an out-of-bounds access in indexes.first.

We can't check the parameter count because of multiple placeholders with the same name,
so we check if the name is null.

Tested with SQLite and PostgreSQL

Pick-to: 5.15
Change-Id: Id5d4bd15d7ed16603f47b87d6e0bf811a20157d8
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
2020-08-24 13:50:55 +02:00
..
.gitignore Moved sql autotests into new directory structure 2011-09-06 09:32:15 +02:00
CMakeLists.txt CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qsqlquery.pro QSql tests: Remove Windows CE and clean up code. 2016-03-10 15:07:02 +00:00
tst_qsqlquery.cpp QSqlite: Don't crash after binding too many placeholders 2020-08-24 13:50:55 +02:00