~thopiekar/emgd/xserver-xorg-input-synaptics-github_community

  • Committer: Peter Hutterer
  • Date: 2012-05-16 01:52:35 UTC
  • Revision ID: git-v1:23065a974e5dcdf0d6a436a0547bb7887d306a6f
Avoid out-of-bounds access by running num_active_touches < 0 (#49439)

If a touch is active during driver init, the slot will be set to
SLOTSTATE_CLOSE when it finishes. That could decrease num_active_touches to
less than 0, causing out-of-bounds access.

X.Org Bug 49439 <http://bugs.freedesktop.org/show_bug.cgi?id=49439>

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
(cherry picked from commit 77d766b1d535dff9a27c7db343ede85d9f44850b)
Filename Latest Rev Last Changed Committer Comment Size
..
Makefile.am 1145 12 years ago Gaetan Nadon Revert "build: collapse all Makefile.am files into 1.1 KB Diff Download File
synaptics-properties.h 1279 12 years ago Peter Hutterer Indent consistently x-indent-all.sh from xorg/uti 5.9 KB Diff Download File
synaptics.h 1279 12 years ago Peter Hutterer Indent consistently x-indent-all.sh from xorg/uti 2.7 KB Diff Download File