diff options
| author | Axel Spoerl <axel.spoerl@qt.io> | 2022-08-05 08:33:56 +0200 |
|---|---|---|
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-08-24 14:08:18 +0000 |
| commit | 854cb55987b3de3c8379db0e7e95b4c94d4e6588 (patch) | |
| tree | 7aedd7aa1bb92db52cd448b4a5fa27eba955bb66 /src/plugins/platforms/wasm/qwasmwindowstack.cpp | |
| parent | e38c7618be50e16b51cc8afdab52ffb26ed76b0c (diff) | |
Make QHeaderView restore state from different stream versions
If restoring a QHeaderView state from a data stream with version Qt_5_0,
check alignment and resize mode properites for out-of-bound values.
If out of bounds, try QDataStream version Qt_6_0, which is used by KDE
apps compiled with 5.15.2 or 6.2.3.
QFileDialog stores settings in the same settings file across different
Qt versions, using different QDataStream versions. That makes
QFileDialog vulnerable to the issue (QTBUG-104962). A respective auto
test is added with this patch.
Fixes: QTBUG-104962
Pick-to: 6.4 6.3 6.2
Task-number: QTBUG-104425
Change-Id: I666207fca7ab837ad27a247e504a40757ee8afab
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmwindowstack.cpp')
0 files changed, 0 insertions, 0 deletions
