media: hdpvr: add terminating 0 at end of string
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 15 Aug 2019 13:00:33 +0000 (10:00 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 19 Aug 2019 15:08:45 +0000 (12:08 -0300)
commit8b8900b729e4f31f12ac1127bde137c775c327e6
tree634a079f9d8bb0d9ecc6aff8ec55ea7e6aa02b77
parent0d616f2a3fdbf1304db44d451d9f07008556923b
media: hdpvr: add terminating 0 at end of string

dev->usbc_buf was passed as argument for %s, but it was not safeguarded
by a terminating 0.

This caused this syzbot issue:

https://syzkaller.appspot.com/bug?extid=79d18aac4bf1770dd050

Reported-and-tested-by: syzbot+79d18aac4bf1770dd050@syzkaller.appspotmail.com
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/hdpvr/hdpvr-core.c