qt5base-lts/src
Romain Pokrzywka d0acd26c37 Fix evdevtouch input plugin crash when the device can't be opened
If a device fails to open during the plugin startup, we exit the handler
constructor early and leave the d member as nullptr.

However the recently added m_handler->isFiltered() call after m_handler
is instantiated assumes that d is always valid, which triggers a crash
in the forementionned situation. Fix it to check for d's validity first.

This can occur when a device is connected then disconnected right after,
so that it's gone by the time we get the notification from udev.

Change-Id: Ia755868338f92b91c181be8557e06e087d70fcc6
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
2018-06-18 19:48:40 +00:00
..
3rdparty forkfd: Restore errno on exit from the SIGCHLD handler 2018-05-30 03:57:36 +00:00
android Add translation for unsupported_android_version for fr and de 2018-05-25 06:50:40 +00:00
angle ANGLE: Remove workaround for files having the same name (Debug.h/.cpp) 2018-02-06 06:17:39 +00:00
concurrent Doc: Update QtConcurrent::mapped example snippet 2018-04-19 15:33:31 +00:00
corelib Add macOS Mojave (10.14) to QOperatingSystemVersion 2018-06-18 16:29:18 +00:00
dbus Merge remote-tracking branch 'origin/5.11.0' into 5.11 2018-05-09 13:48:42 +02:00
gui Fix black border around main widget with non-integer scaling 2018-06-07 11:19:04 +00:00
network QNativeSocketEnginePrivate (win) read sender's port and address 2018-06-14 09:10:09 +00:00
opengl Merge remote-tracking branch 'origin/5.10' into 5.11 2018-02-15 10:14:11 +01:00
openglextensions
platformheaders Docs: Mark vsp2SetLayerAlpha as preliminary 2018-05-02 09:36:16 +00:00
platformsupport Fix evdevtouch input plugin crash when the device can't be opened 2018-06-18 19:48:40 +00:00
plugins ibase: Silence warning about incompatible function types 2018-06-15 11:32:13 +00:00
printsupport QWin32PrintEngine: Fix crash in drawPixmap(), drawImage() 2018-05-23 08:26:57 +00:00
sql doc: Explicitly mention that QSqlRecord fields are generated by default 2018-05-23 07:01:39 +00:00
testlib Fix build for Android with android-clang in r17 2018-06-06 11:36:33 +00:00
tools qlalr: fix build in C++17 2018-05-15 17:07:09 +00:00
widgets Fix build for Android with android-clang in r17 2018-06-06 11:36:33 +00:00
winmain Merge remote-tracking branch 'origin/5.10' into dev 2018-01-11 18:10:41 +01:00
xml QDomNode::replaceChild(): Fix documentation typo 2018-03-16 06:34:13 +00:00
src.pro Merge remote-tracking branch 'origin/5.9' into 5.11 2018-02-14 12:51:24 +01:00