diff options
| author | Zhang Yu <zhangyub@uniontech.com> | 2021-02-22 09:25:01 +0800 |
|---|---|---|
| committer | Zhang Yu <zhangyub@uniontech.com> | 2021-03-22 18:47:36 +0800 |
| commit | c47bb4478a4c3a29c0505d7d89755f40601b326f (patch) | |
| tree | 10b57655b639b59a18f8c88ec6465501960b2723 /src/corelib/thread/qfutureinterface.cpp | |
| parent | 248ed57e05cda6bc2fabc0d8856ff3fccbcd08e1 (diff) | |
Fix invalid pointer return with QGridLayout::itemAt(-1)
QGridLayout::takeAt() and QLayoutItem *itemAt() only check the upper bound.
If the index < 0, these function will return invalid pointer.
Fixes: QTBUG-91261
Pick-to: 5.15 6.0 6.1
Change-Id: Idfb9fb6228b9707f817353b04974da16205a835c
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/corelib/thread/qfutureinterface.cpp')
0 files changed, 0 insertions, 0 deletions
