diff options
author | Manu Abraham <manu@linuxtv.org> | 2005-11-09 00:35:24 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 10:56:02 -0500 |
commit | 5c15c0b4fa850543b8ccfcf93686d24456cc384d (patch) | |
tree | 85863bed32aedbed05a079efc077e04827f58f89 | |
parent | 4fbbc7ee591ab19707d12e2f86a1ae11f7195423 (diff) |
[PATCH] dvb: dst: 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>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Cc: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | drivers/media/dvb/bt8xx/dst_ca.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/bt8xx/dst_ca.c b/drivers/media/dvb/bt8xx/dst_ca.c index 16645e06dea2..38c728945bf1 100644 --- a/drivers/media/dvb/bt8xx/dst_ca.c +++ b/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 | |||
196 | int i; | 196 | int i; |
197 | static u8 slot_command[8] = {0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff}; | 197 | static u8 slot_command[8] = {0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff}; |
198 | 198 | ||
199 | u8 *slot_info = state->rxbuffer; | 199 | u8 *slot_info = state->messages; |
200 | 200 | ||
201 | put_checksum(&slot_command[0], 7); | 201 | put_checksum(&slot_command[0], 7); |
202 | if ((dst_put_ci(state, slot_command, sizeof (slot_command), slot_info, GET_REPLY)) < 0) { | 202 | if ((dst_put_ci(state, slot_command, sizeof (slot_command), slot_info, GET_REPLY)) < 0) { |