diff options
author | Egbert Eich <eich@suse.de> | 2014-03-18 18:29:02 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-03 14:45:48 +0200 |
commit | a3ed9b781cb0e1fa4ae3b1cedcd63bd394903db7 (patch) | |
tree | 3301e5d10ec02426c5763d73748ec311d1cd2744 /tests/auto/gui/painting/qcolor/tst_qcolor.cpp | |
parent | 5ef4e0ed0c107c8ac0f4bf26c0fe986ab6e984fb (diff) |
[xcb/xsettings] Add support for byte swapping
The XSettings protocol is not endian neutral. Instead it holds
information about endianness in the first byte. It uses the same
convention as X11/X.h does.
So far byte order handling was missing leading to nasty crashes
when byte order between clients setting and reading XSettings
differed. This patch fixes this.
Using the X11/X.h conventions seems to be an 'established standard',
this piece is missing from the Xsettings specifications. Therefore
this fix may introduce spurious regressions as other Xsettings
'providers' may use a different convention. To detect this and
to avoid crashes the fix also adds checks to avoid reading past
the end of the of the Xsettings data blob. If problems are
encountered: warn and bail.
Change-Id: If8acb23cca2478369633129af2d99e122a84cede
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Diffstat (limited to 'tests/auto/gui/painting/qcolor/tst_qcolor.cpp')
0 files changed, 0 insertions, 0 deletions