OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
CVS: cvs.openbsd.org: XF4

From: Otto Moerbeek (ottocvs.openbsd.org)
Date: Fri Feb 03 2006 - 05:06:32 CST


CVSROOT: /cvs
Module name: XF4
Changes by: ottocvs.openbsd.org 2006/02/03 04:06:32

Modified files:
        xc/programs/Xserver/hw/xfree86/common: xf86Xinput.c

Log message:
A high resolution device that's moving fast can potentially generate
an int overflow, making dx*dx+dy*dy negative. Now pow(negative,
non-integer) yields NaN, so you loose. Use fp math to avoid that.
looks resonable millert ok matthieu