git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb9b164
)
[media] stb0899: don't go past DiSEqC msg buffer
author
Mauro Carvalho Chehab
<mchehab@osg.samsung.com>
Wed, 5 Nov 2014 11:34:12 +0000
(09:34 -0200)
committer
Mauro Carvalho Chehab
<mchehab@osg.samsung.com>
Wed, 5 Nov 2014 11:34:12 +0000
(09:34 -0200)
As reported by spatch:
drivers/media/dvb-frontends/stb0899_drv.c:720 stb0899_send_diseqc_msg() error: buffer overflow 'cmd->msg' 6 <= 7
The buffer size is 6 and not 8. Anyway, the best is to use sizeof(),
to avoid such mistakes.
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
No differences found