linux/drivers/input/tablet
Vladis Dronov 772703cadb Input: gtco - fix crash on detecting device without endpoints
commit 162f98dea4 upstream.

The gtco driver expects at least one valid endpoint. If given malicious
descriptors that specify 0 for the number of endpoints, it will crash in
the probe function. Ensure there is at least one endpoint on the interface
before using it.

Also let's fix a minor coding style issue.

The full correct report of this issue can be found in the public
Red Hat Bugzilla:

https://bugzilla.redhat.com/show_bug.cgi?id=1283385

Reported-by: Ralf Spenneberg <ralf@spenneberg.net>
Signed-off-by: Vladis Dronov <vdronov@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2016-06-15 21:29:21 +01:00
..
acecad.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
aiptek.c Input: aiptek - fix crash on detecting device without endpoints 2016-03-24 10:01:16 +00:00
gtco.c Input: gtco - fix crash on detecting device without endpoints 2016-06-15 21:29:21 +01:00
hanwang.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
kbtab.c Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
Kconfig Merge branch 'next' into for-linus 2012-03-27 00:27:10 -07:00
Makefile Input: add support for Hanwang tablets 2010-09-01 23:26:18 -07:00
wacom.h Input: delete non-required instances of include <linux/init.h> 2014-01-06 23:23:57 -08:00
wacom_sys.c Input: wacom - add support for three new ISDv4 sensors 2014-05-14 18:47:09 -07:00
wacom_wac.c HID: wacom: Report ABS_MISC event for Cintiq Companion Hybrid 2015-03-03 14:40:05 +00:00
wacom_wac.h Input: wacom - process outbound for newer Cintiqs 2014-05-29 00:09:16 -07:00