Skip to contentSkip to conversation

dvb: dst: Fix possible buffer overflow

PATCH In review Michael Krufky 1 participant 1 message Nov 1, 2005 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 16/37 dvb: dst: Fix possible buffer overflow

From: Manu Abraham <[email protected]>

- Fixes a possible buffer overflow due to reading more than 8 bytes into an 8 byte long array

Thanks to Perceval Anichini <[email protected]> for pointing out the bug.

 drivers/media/dvb/bt8xx/dst_ca.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/dvb/bt8xx/dst_ca.c +1 -1
@@ -196,7 +196,7 @@
 	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) {