linux/drivers/input/touchscreen
Junjie Cao 248d3a73a0 Input: ti_am335x_tsc - fix off-by-one error in wire_order validation
The current validation 'wire_order[i] > ARRAY_SIZE(config_pins)' allows
wire_order[i] to equal ARRAY_SIZE(config_pins), which causes out-of-bounds
access when used as index in 'config_pins[wire_order[i]]'.

Since config_pins has 4 elements (indices 0-3), the valid range for
wire_order should be 0-3. Fix the off-by-one error by using >= instead
of > in the validation check.

Signed-off-by: Junjie Cao <junjie.cao@intel.com>
Link: https://patch.msgid.link/20251114062817.852698-1-junjie.cao@intel.com
Fixes: bb76dc09dd ("input: ti_am33x_tsc: Order of TSC wires, made configurable")
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2025-12-18 22:00:07 -08:00
..
88pm860x-ts.c
Kconfig Input: add driver for Hynitron CST816x series 2025-09-24 22:36:50 -07:00
Makefile Input: add driver for Hynitron CST816x series 2025-09-24 22:36:50 -07:00
ad7877.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
ad7879-i2c.c
ad7879-spi.c
ad7879.c Input: include export.h in modules using EXPORT_SYMBOL*() 2025-08-21 12:00:59 -07:00
ad7879.h
ads7846.c
apple_z2.c Input: apple_z2 - fix reading incorrect reports after exiting sleep 2025-12-18 12:17:10 -08:00
ar1021_i2c.c
atmel_mxt_ts.c Input: atmel_mxt_ts - allow reset GPIO to sleep 2025-10-07 21:51:31 -07:00
auo-pixcir-ts.c
bcm_iproc_tsc.c
bu21013_ts.c
bu21029_ts.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
chipone_icn8318.c
chipone_icn8505.c
colibri-vf50-ts.c
cy8ctma140.c
cy8ctmg110_ts.c
cyttsp5.c Input: cyttsp5 - use %pe format specifier 2025-10-16 22:01:46 -07:00
cyttsp_core.c Input: include export.h in modules using EXPORT_SYMBOL*() 2025-08-21 12:00:59 -07:00
cyttsp_core.h
cyttsp_i2c.c
cyttsp_spi.c
da9034-ts.c
da9052_tsi.c
dynapro.c
edt-ft5x06.c Input: edt-ft5x06 - add support for FocalTech FT8716 2025-07-01 11:44:27 -07:00
eeti_ts.c
egalax_ts.c
egalax_ts_serial.c
ektf2127.c
elants_i2c.c
elo.c
exc3000.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
fsl-imx25-tcq.c Input: remove unneeded 'fast_io' parameter in regmap_config 2025-08-21 12:00:59 -07:00
fujitsu_ts.c
goodix.c Input: goodix - remove setting of RST pin to input 2025-10-13 09:35:26 -07:00
goodix.h Input: goodix - remove setting of RST pin to input 2025-10-13 09:35:26 -07:00
goodix_berlin.h Input: goodix_berlin - add support for Berlin-A series 2025-03-10 10:46:08 -07:00
goodix_berlin_core.c Input: include export.h in modules using EXPORT_SYMBOL*() 2025-08-21 12:00:59 -07:00
goodix_berlin_i2c.c Input: goodix_berlin - add support for Berlin-A series 2025-03-10 10:46:08 -07:00
goodix_berlin_spi.c Input: goodix_berlin - add support for Berlin-A series 2025-03-10 10:46:08 -07:00
goodix_fwupload.c
gunze.c
hampshire.c
hideep.c
himax_hx852x.c Input: add Himax HX852x(ES) touchscreen driver 2025-09-17 14:44:02 -07:00
himax_hx83112b.c
hp680_ts_input.c
htcpen.c
hycon-hy46xx.c
hynitron-cst816x.c Input: add driver for Hynitron CST816x series 2025-09-24 22:36:50 -07:00
hynitron_cstxxx.c
ili210x.c
ilitek_ts_i2c.c
imagis.c
imx6ul_tsc.c Input: imx6ul_tsc - set glitch threshold by DTS property 2025-09-24 14:21:13 -07:00
inexio.c
ipaq-micro-ts.c
iqs5xx.c
iqs7211.c
jornada720_ts.c
lpc32xx_ts.c
mainstone-wm97xx.c
max11801_ts.c
mc13783_ts.c mfd: input: rtc: mc13783: Remove deprecated mc13xxx_irq_ack() 2025-09-11 11:39:31 +01:00
melfas_mip4.c Input: Fully open-code compatible for grepping 2025-06-17 14:12:32 -07:00
migor_ts.c
mk712.c
mms114.c
msg2638.c
mtouch.c
mxs-lradc-ts.c
novatek-nvt-ts.c
pcap_ts.c
penmount.c
pixcir_i2c_ts.c
raspberrypi-ts.c
raydium_i2c_ts.c
resistive-adc-touch.c
rohm_bu21023.c
s6sy761.c
silead.c
sis_i2c.c
st1232.c Input: st1232 - add touch-overlay handling 2025-07-27 01:41:21 -07:00
stmfts.c
stmpe-ts.c Input: stmpe-ts - use module alias instead of device table 2025-04-28 12:14:12 -07:00
sun4i-ts.c
sur40.c
surface3_spi.c
sx8654.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
ti_am335x_tsc.c Input: ti_am335x_tsc - fix off-by-one error in wire_order validation 2025-12-18 22:00:07 -08:00
touchit213.c
touchright.c
touchwin.c
tps6507x-ts.c
ts4800-ts.c
tsc40.c
tsc200x-core.c Input: include export.h in modules using EXPORT_SYMBOL*() 2025-08-21 12:00:59 -07:00
tsc200x-core.h
tsc2004.c
tsc2005.c
tsc2007.h
tsc2007_core.c Input: tsc2007 - prevent overflow in pressure calculation 2025-09-03 07:44:00 -07:00
tsc2007_iio.c
usbtouchscreen.c
wacom_i2c.c
wacom_w8001.c
wdt87xx_i2c.c
wm97xx-core.c Input: include export.h in modules using EXPORT_SYMBOL*() 2025-08-21 12:00:59 -07:00
wm831x-ts.c
wm9705.c Input: include export.h in modules using EXPORT_SYMBOL*() 2025-08-21 12:00:59 -07:00
wm9712.c Input: include export.h in modules using EXPORT_SYMBOL*() 2025-08-21 12:00:59 -07:00
wm9713.c Input: include export.h in modules using EXPORT_SYMBOL*() 2025-08-21 12:00:59 -07:00
zet6223.c
zforce_ts.c Input: zforce_ts - omit error message when memory allocation fails 2025-10-17 21:43:06 -07:00
zinitix.c