mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Martin Samuelsson <sam@home.se>
To: mchehab@infradead.org, "Ronald S. Bultje" <rbultje@ronald.bitfreak.net>
Cc: v4l-dvb-maintainer@linuxtv.org, linux-kernel@vger.kernel.org,
	Adrian Bunk <bunk@stusta.de>
Subject: [patch] drivers/media/video/bt866.c: array overflows
Date: Mon, 21 Aug 2006 23:59:53 +0200	[thread overview]
Message-ID: <20060821235953.9737a404.sam@home.se> (raw)

This extends reg in the bt866 struct from 128 to 256 bytes, which will prevent a number of array overflows later in the code.

Signed-off-by: Martin Samuelsson <sam@home.se>

---

 bt866.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- /usr/src/linux-2.6.18-rc4/drivers/media/video/bt866.c       2006-08-21 22:59:16.000000000 +0200
+++ /usr/src/linux-2.6.18-rc4-avs6eyes/drivers/media/video/bt866.c      2006-08-21 21:51:14.000000000 +0200
@@ -65,7 +65,7 @@
 struct bt866 {
        struct i2c_client *i2c;
        int addr;
-       unsigned char reg[128];
+       unsigned char reg[256];
 
        int norm;
        int enable;

                 reply	other threads:[~2006-08-21 22:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20060821235953.9737a404.sam@home.se \
    --to=sam@home.se \
    --cc=bunk@stusta.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mchehab@infradead.org \
    --cc=rbultje@ronald.bitfreak.net \
    --cc=v4l-dvb-maintainer@linuxtv.org \
    /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

all inboxes | Powered by JetHome®