]> git.baikalelectronics.ru Git - kernel.git/commit
media: technisat-usb2: break out of loop at end of buffer
authorSean Young <sean@mess.org>
Wed, 3 Jul 2019 14:52:39 +0000 (10:52 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 22 Jul 2019 19:25:35 +0000 (15:25 -0400)
commitd9b8de0fb54f78386feeb2e632040f0d5dfc9f69
tree56fba84986acc1201ad3fb35970bdc7b58b7786d
parent67aa6982deeb95ad5be0d98df3d03e0cf6d6f49e
media: technisat-usb2: break out of loop at end of buffer

Ensure we do not access the buffer beyond the end if no 0xff byte
is encountered.

Reported-by: syzbot+eaaaf38a95427be88f4b@syzkaller.appspotmail.com
Signed-off-by: Sean Young <sean@mess.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/dvb-usb/technisat-usb2.c