summaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/raspberrypi-ts.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2019-01-14 13:54:55 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2019-01-14 15:34:24 -0800
commitd77651a227f8920dd7ec179b84e400cce844eeb3 (patch)
tree64216b5699248263656b7d53b35174efef742876 /drivers/input/touchscreen/raspberrypi-ts.c
parent3eb66e91a25497065c5322b1268cbc3953642227 (diff)
downloadblackbird-obmc-linux-d77651a227f8920dd7ec179b84e400cce844eeb3.tar.gz
blackbird-obmc-linux-d77651a227f8920dd7ec179b84e400cce844eeb3.zip
Input: uinput - fix undefined behavior in uinput_validate_absinfo()
An integer overflow may arise in uinput_validate_absinfo() if "max - min" can't be represented by an "int". We should check for overflow before trying to use the result. Reported-by: Kyungtae Kim <kt0755@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Cc: stable@vger.kernel.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/raspberrypi-ts.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud