mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
xf86-input-evdev:
- add patch to fix potential null pointer dereferencement
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
diff -Nurp xserver-xorg-input-evdev-2.2.2/src/emuMB.c xserver-xorg-input-evdev-2.2.2-working/src/emuMB.c
|
||||
--- xserver-xorg-input-evdev-2.2.2/src/emuMB.c 2009-03-22 23:35:13.000000000 -0700
|
||||
+++ xserver-xorg-input-evdev-2.2.2-working/src/emuMB.c 2009-07-30 14:30:19.000000000 -0700
|
||||
@@ -280,7 +280,7 @@ void EvdevMBEmuWakeupHandler(pointer dat
|
||||
EvdevPtr pEvdev = (EvdevPtr)pInfo->private;
|
||||
int ms;
|
||||
|
||||
- if (pEvdev->emulateMB.pending)
|
||||
+ if (pEvdev && pEvdev->emulateMB.pending)
|
||||
{
|
||||
ms = pEvdev->emulateMB.expires - GetTimeInMillis();
|
||||
if (ms <= 0)
|
||||
@@ -296,7 +296,7 @@ void EvdevMBEmuBlockHandler(pointer data
|
||||
EvdevPtr pEvdev= (EvdevPtr) pInfo->private;
|
||||
int ms;
|
||||
|
||||
- if (pEvdev->emulateMB.pending)
|
||||
+ if (pEvdev && pEvdev->emulateMB.pending)
|
||||
{
|
||||
ms = pEvdev->emulateMB.expires - GetTimeInMillis ();
|
||||
if (ms <= 0)
|
||||
@@ -346,7 +346,7 @@ void
|
||||
EvdevMBEmuEnable(InputInfoPtr pInfo, BOOL enable)
|
||||
{
|
||||
EvdevPtr pEvdev = (EvdevPtr)pInfo->private;
|
||||
- if (pEvdev->emulateMB.enabled == MBEMU_AUTO)
|
||||
+ if (pEvdev && pEvdev->emulateMB.enabled == MBEMU_AUTO)
|
||||
pEvdev->emulateMB.enabled = enable;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user