diff options
author | Sandro Mani <manisandro@gmail.com> | 2015-02-03 14:12:07 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@digia.com> | 2015-02-04 14:41:48 +0000 |
commit | 37e7c3afbc26d547daf94655a4dff1dfb59e5545 (patch) | |
tree | 2e2fa2585f6a20b0efa8de51b462703090e037b3 /src/3rdparty/.gitattributes | |
parent | 315145ac95f45af32b86c16ef15cb7c0f08a5304 (diff) |
Ensure null pointers are not added to QXcbConnection::m_touchDevices
QXcbConnection::touchDeviceForId attempts to retrieve an existing
XInput2TouchDeviceData from m_touchDevices via QHash::operator[]. If
m_touchDevices does not contain the specified XInput2TouchDeviceData,
QHash::operator[] adds a default constructed value (i.e. a null pointer) for
the specified id. This null pointer is not removed from m_touchDevices if
the condition "nrDevices <= 0" is true below. This causes a null pointer
dereference later on in QXcbConnection::finalizeXInput2.
Change-Id: Icd3352417047c4b35d56db2d9f51e3fa1d859e9d
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Diffstat (limited to 'src/3rdparty/.gitattributes')
0 files changed, 0 insertions, 0 deletions