[Wayland-bugs] [Bug 86993] Crash when absinfo_x/y is nil

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Dec 3 19:38:17 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=86993

            Bug ID: 86993
           Summary: Crash when absinfo_x/y is nil
           Product: Wayland
           Version: unspecified
          Hardware: All
                OS: Linux (All)
            Status: NEW
          Severity: critical
          Priority: medium
         Component: libinput
          Assignee: wayland-bugs at lists.freedesktop.org
          Reporter: starxforever at live.com

Created attachment 110439
  --> https://bugs.freedesktop.org/attachment.cgi?id=110439&action=edit
temporary patch to solve this issue

libinput, SRCREV = 56b5f846ac7f8243da4ba2f288654becf1014c46

issue:
   Weston will crash when plugin a mouse device.

precondition:
   Define "LIBINPUT_CALIBRATION_MATRIX" in udev rules;

crash point:
   crash happens in function "evdev_device_calibrate()" when calculate x/y
scaler: 

   sx = device->abs.absinfo_x->maximum - device->abs.absinfo_x->minimum + 1;
   sy = device->abs.absinfo_y->maximum - device->abs.absinfo_y->minimum + 1;

   inside this calculation, maybe the absinfo_x/y is nil, then the access to
maximum & minimum value will aborted.

   even it is caused by the driver, i thin libinput need to focus this case.

   see the attached patch for a temporary solution.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20141204/6861bf3b/attachment.html>


More information about the wayland-bugs mailing list