diff options
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-05-04 17:54:20 +0200 |
|---|---|---|
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-05-05 19:31:10 +0200 |
| commit | c9df93bf2763b182cd4396b9224c9584af4dac00 (patch) | |
| tree | 3424d0cb22061177e57ec892d8944739889e41ea /src/widgets/doc/snippets/graphicsview_snippet.cpp | |
| parent | 8d6d1d6fea1d262f97f088eb92441cececad3f88 (diff) | |
Explicitly prevent out-of-bounds access to tabPositions array
Use DockCount enum value for the size of the array, and explicitly
handle when toDockPos returns DockCount (which it might).
Change-Id: Id52399607fb1ae74a24a050de7a8481264c03e47
Fixes: QTBUG-83983
Coverity-Id: 218539
Pick-to: 5.15
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/widgets/doc/snippets/graphicsview_snippet.cpp')
0 files changed, 0 insertions, 0 deletions
