diff options
author | Patrick Boettcher <pb@linuxtv.org> | 2008-09-07 21:04:38 +0200 |
---|---|---|
committer | Patrick Boettcher <pb@linuxtv.org> | 2008-09-07 21:04:38 +0200 |
commit | c28e7446b370682d03bca416af6451c35a6ee538 (patch) | |
tree | 3408c35a902efd1b252175c2d073a918e5a4eff4 /linux/drivers/media/dvb | |
parent | 06999cfa3758e3e88f071bea68bc44a962f737fb (diff) | |
download | mediapointer-dvb-s2-c28e7446b370682d03bca416af6451c35a6ee538.tar.gz mediapointer-dvb-s2-c28e7446b370682d03bca416af6451c35a6ee538.tar.bz2 |
S5H1420: Fix size of shadow-array to avoid overflow
From: Patrick Boettcher <pb@linuxtv.org>
The array size of 'shadow' still needs to be fixed in order to not overflow when reading register 0x00.
Thanks to Oliver Endriss for pointing that out.
Priority: high
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r-- | linux/drivers/media/dvb/frontends/s5h1420.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/frontends/s5h1420.c b/linux/drivers/media/dvb/frontends/s5h1420.c index 31fc7c313..46d55e393 100644 --- a/linux/drivers/media/dvb/frontends/s5h1420.c +++ b/linux/drivers/media/dvb/frontends/s5h1420.c @@ -59,7 +59,7 @@ struct s5h1420_state { * it does not support repeated-start, workaround: write addr-1 * and then read */ - u8 shadow[255]; + u8 shadow[256]; }; static u32 s5h1420_getsymbolrate(struct s5h1420_state* state); |