projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be4b333
)
evdev: remove unreachable code and add exception handling code for aux_data_listy
02/131602/1
accepted/tizen/unified/20170531.144602
submit/tizen/20170531.093153
author
Sung-Jin Park
<sj76.park@samsung.com>
Tue, 30 May 2017 06:53:19 +0000
(15:53 +0900)
committer
Sung-Jin Park
<sj76.park@samsung.com>
Tue, 30 May 2017 06:53:25 +0000
(15:53 +0900)
Change-Id: I7e2a936cece97d7a8ecce90fa261976514e35371
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
src/evdev.c
patch
|
blob
|
history
diff --git
a/src/evdev.c
b/src/evdev.c
index 37823b4b37e9806781d630e0e869297eb8d7d05b..dae901c1335ca8bf7b543a54403281a2a405335c 100644
(file)
--- a/
src/evdev.c
+++ b/
src/evdev.c
@@
-648,9
+648,10
@@
evdev_process_touch_extra_aux_data(struct evdev_device *device,
bool res = false;
if (!device->mt.aux_data_list) return false;
+ if (device->mt.slot < 0 || device->mt.slot >= device->mt.slots_len)
+ return false;
current_axis_list = &device->mt.aux_data_list[device->mt.slot];
- if (!current_axis_list) return false;
if (list_empty(current_axis_list)) return false;