projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cf8af5
)
[media] DVB: dvb_frontend: off by one in dtv_property_dump()
author
Dan Carpenter
<
[email protected]
>
Thu, 26 May 2011 08:44:52 +0000
(
05:44
-0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Wed, 27 Jul 2011 20:55:55 +0000
(17:55 -0300)
If the tvp->cmd == DTV_MAX_COMMAND then we read past the end of the
array.
Signed-off-by: Dan Carpenter <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/dvb/dvb-core/dvb_frontend.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb/dvb-core/dvb_frontend.c
b/drivers/media/dvb/dvb-core/dvb_frontend.c
index efe9c30605e890688b6a7557156436fe0c4611a9..21c9072ed99fe40ca047d41e044ecfd06874648e 100644
(file)
--- a/
drivers/media/dvb/dvb-core/dvb_frontend.c
+++ b/
drivers/media/dvb/dvb-core/dvb_frontend.c
@@
-982,7
+982,7
@@
static void dtv_property_dump(struct dtv_property *tvp)
{
int i;
- if (tvp->cmd <= 0 || tvp->cmd > DTV_MAX_COMMAND) {
+ if (tvp->cmd <= 0 || tvp->cmd >
=
DTV_MAX_COMMAND) {
printk(KERN_WARNING "%s: tvp.cmd = 0x%08x undefined\n",
__func__, tvp->cmd);
return;