mISDN: Read buffer overflow
Subsystems (2)
PATCH 1/1 mISDN: Read buffer overflow
Check whether index is within bounds before testing the element.
Signed-off-by Roel Kluin <[email protected]>
---
drivers/isdn/mISDN/l1oip_core.c +1 -1
@@ -1480,7 +1480,7 @@ l1oip_init(void)return -ENOMEM ; l1oip_cnt =0 ; -while (type[l1oip_cnt] && l1oip_cnt <MAX_CARDS ) { +while (l1oip_cnt <MAX_CARDS && type[l1oip_cnt]) {switch (type[l1oip_cnt] &0xff ) {case 1 : pri =0 ;
On Freitag, 31. Juli 2009 15:43:59 Roel Kluin wrote:
Ouch !
Acked-by Karsten Keil <[email protected]>
Quoted 17 lines
Check whether index is within bounds before testing the element.
Signed-off-by Roel Kluin <[email protected]>---
(quoted diff) +0
-0
b/drivers/isdn/mISDN/l1oip_core.cindex c3b661a..7e5f30d 100644drivers/isdn/mISDN/l1oip_core.c +1
-1@@ -1480,7 +1480,7 @@ l1oip_init(void)return -ENOMEM ; l1oip_cnt =0 ; -while (type[l1oip_cnt] && l1oip_cnt <MAX_CARDS ) { +while (l1oip_cnt <MAX_CARDS && type[l1oip_cnt]) {switch (type[l1oip_cnt] &0xff ) {case 1 : pri =0 ;
From: Roel Kluin <[email protected]>
Date: Fri, 31 Jul 2009 15:43:59 +0200
Quoted 3 lines
Check whether index is within bounds before testing the element.
Signed-off-by Roel Kluin <[email protected]>
Applied.