]> git.baikalelectronics.ru Git - kernel.git/commit
[media] c8sectpfe: don't go past channel_data array
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 11 Aug 2015 19:13:54 +0000 (16:13 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 11 Aug 2015 19:16:55 +0000 (16:16 -0300)
commit2a5c3d492454f5f3dec5fe4f88e72d8b14b3dc67
tree6316f46dfd932e72fe717d762c785d1e6d7899ba
parent0ef680427708e3a0aba9d436b6532f75b61995e5
[media] c8sectpfe: don't go past channel_data array

As reported by smatch:
drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c:365 find_channel() error: buffer overflow 'fei->channel_data' 8 <= 63

It seems that a cut-and-paste type of error occurred here:
the channel_data array size is C8SECTPFE_MAX_TSIN_CHAN, and not
C8SECTPFE_MAXCHANNEL.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c