From: Karsten Keil <isdn@linux-pingi.de>
To: Roel Kluin <roel.kluin@gmail.com>
Cc: netdev <netdev@vger.kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Andreas Eversberg <andreas@eversberg.eu>
Subject: Re: [PATCH] mISDN: Read buffer overflow
Date: Fri, 31 Jul 2009 16:28:04 +0200 [thread overview]
Message-ID: <200907311628.05157.isdn@linux-pingi.de> (raw)
In-Reply-To: <4A72F51F.3000503@gmail.com>
On Freitag, 31. Juli 2009 15:43:59 Roel Kluin wrote:
Ouch !
Acked-by: Karsten Keil <keil@b1-systems.de>
> Check whether index is within bounds before testing the element.
>
> Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
> ---
> diff --git a/drivers/isdn/mISDN/l1oip_core.c
> b/drivers/isdn/mISDN/l1oip_core.c index c3b661a..7e5f30d 100644
> --- a/drivers/isdn/mISDN/l1oip_core.c
> +++ b/drivers/isdn/mISDN/l1oip_core.c
> @@ -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;
next prev parent reply other threads:[~2009-07-31 14:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-31 13:43 [PATCH] mISDN: Read buffer overflow Roel Kluin
2009-07-31 14:28 ` Karsten Keil [this message]
2009-08-02 19:31 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200907311628.05157.isdn@linux-pingi.de \
--to=isdn@linux-pingi.de \
--cc=akpm@linux-foundation.org \
--cc=andreas@eversberg.eu \
--cc=netdev@vger.kernel.org \
--cc=roel.kluin@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).