<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Crash when absinfo_x/y is nil"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=86993">86993</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Crash when absinfo_x/y is nil
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Wayland
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>critical
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>libinput
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>wayland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>starxforever@live.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=110439" name="attach_110439" title="temporary patch to solve this issue">attachment 110439</a> <a href="attachment.cgi?id=110439&action=edit" title="temporary patch to solve this issue">[details]</a></span>
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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>