diff options
| author | Axel Spoerl <axel.spoerl@qt.io> | 2022-04-28 17:03:03 +0200 |
|---|---|---|
| committer | Axel Spoerl <axel.spoerl@qt.io> | 2022-04-29 01:16:58 +0200 |
| commit | ebdaf8ef9cea6f3669fc73bc3395acf2e497f7fc (patch) | |
| tree | f38ee72061e201ebf7a249e0e21d380afab37c90 /src/plugins/tls/openssl/qtlsbackend_openssl.cpp | |
| parent | 08a4fd357064cfefd8de7af13025a9f1cb04cafb (diff) | |
Ignore window icon in XCB when its size exceeds maximum request length
When setting a window icon with its data size exceeding
the value returned by xcb_get_maximum_request_length(), the application
fails with XCB error code 4 (Maximum allowed requested length exceeded).
This patch adds a check if icon_data.size() exceeds
xcb_get_maximum_request_length(). If that is the case the icon is being
ignored and a warning is logged.
Fixes: QTBUG-102628
Pick-to: 6.3 6.2 5.15
Change-Id: Id47a0833efd16cd29b030e8c880acb416cbc500b
Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'src/plugins/tls/openssl/qtlsbackend_openssl.cpp')
0 files changed, 0 insertions, 0 deletions
