diff options
author | Uli Schlachter <psychon@znc.in> | 2012-01-15 17:45:14 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-16 11:01:09 +0100 |
commit | 23a372ab8d59cd9b33356a16744313890b544f4f (patch) | |
tree | 30ff9f80e1faa0a0ca711cac32cea538bb1df672 /src/plugins/platforms/xcb/qxcbnativeinterface.h | |
parent | ba888bb8c8e6fce76efc855ef81250f2c9426b40 (diff) |
xcb: Obey maximum request length when uploading images
When connecting to an X11 server, the server tells the client what its
maximum allowed request size is. Larger requests are not permitted.
Thus, libxcb verifies that all requests which are sent are smaller than
this size limit and possibly kills the connection (without any good
error message).
Thus, when uploading an image, we could be trying to send more pixel
data than fit into a single request. If this would be the case, the
code will now use multiple requests where each request only sends a
part of the allowed rows.
In case all the data fits into a single request, this commit shouldn't
change any behavior.
Change-Id: I84a4ebfcdb6de7e206015c37e3e33cba3bd309b1
Signed-off-by: Uli Schlachter <psychon@znc.in>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbnativeinterface.h')
0 files changed, 0 insertions, 0 deletions