diff options
author | Manu Abraham <devnull@localhost> | 2005-09-21 16:44:30 +0000 |
---|---|---|
committer | Manu Abraham <devnull@localhost> | 2005-09-21 16:44:30 +0000 |
commit | 6908980228a77a05a1644d1c00bf82d7a5162c41 (patch) | |
tree | 6c5bdb44f73972e4dd9fb771c64f3cd0d90748be /linux/drivers/media/dvb | |
parent | c639ab0356b57381534d80765ea7471d3a479038 (diff) | |
download | mediapointer-dvb-s2-6908980228a77a05a1644d1c00bf82d7a5162c41.tar.gz mediapointer-dvb-s2-6908980228a77a05a1644d1c00bf82d7a5162c41.tar.bz2 |
Fix possible buffer overflow
- Fixes a possible buffer overflow due to reading more than 8 bytes into an 8 byte long array
Thanks to Perceval Anichini <perceval.anichini@streamvision.fr> for pointing out the bug.
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r-- | linux/drivers/media/dvb/bt8xx/dst_ca.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/bt8xx/dst_ca.c b/linux/drivers/media/dvb/bt8xx/dst_ca.c index 34394aa70..1587aa719 100644 --- a/linux/drivers/media/dvb/bt8xx/dst_ca.c +++ b/linux/drivers/media/dvb/bt8xx/dst_ca.c @@ -196,7 +196,7 @@ static int ca_get_slot_info(struct dst_state *state, struct ca_slot_info *p_ca_s int i; static u8 slot_command[8] = {0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff}; - u8 *slot_info = state->rxbuffer; + u8 *slot_info = state->messages; put_checksum(&slot_command[0], 7); if ((dst_put_ci(state, slot_command, sizeof (slot_command), slot_info, GET_REPLY)) < 0) { |