]> git.itanic.dy.fi Git - linux-stable/commit
video: fbdev: pxa3xx-gcu: Fix integer overflow in pxa3xx_gcu_write
authorHyunwoo Kim <imv4bel@gmail.com>
Mon, 20 Jun 2022 14:17:46 +0000 (07:17 -0700)
committerHelge Deller <deller@gmx.de>
Mon, 20 Jun 2022 18:12:17 +0000 (20:12 +0200)
commita09d2d00af53b43c6f11e6ab3cb58443c2cac8a7
treebb8b03e867f3730cc49a0bce5663ad5ddafeb09c
parent267173cbf4a6b37599e644098c756e7e4b771fe9
video: fbdev: pxa3xx-gcu: Fix integer overflow in pxa3xx_gcu_write

In pxa3xx_gcu_write, a count parameter of type size_t is passed to words of
type int.  Then, copy_from_user() may cause a heap overflow because it is used
as the third argument of copy_from_user().

Signed-off-by: Hyunwoo Kim <imv4bel@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/pxa3xx-gcu.c