diff options
author | Zhang Yu <zhangyub@uniontech.com> | 2021-02-22 09:25:01 +0800 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-03-22 15:22:11 +0000 |
commit | d3b24a14bb9e6c258e9183dc05893020d81c9a9f (patch) | |
tree | ef81c4507ee268780c2fca899429c6c749d8c74c /tests/auto/corelib/io/qurl | |
parent | 90267af5df513e7b8301610c5fffcb03dfabf4ac (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
Change-Id: Idfb9fb6228b9707f817353b04974da16205a835c
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
(cherry picked from commit c47bb4478a4c3a29c0505d7d89755f40601b326f)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests/auto/corelib/io/qurl')
0 files changed, 0 insertions, 0 deletions