From: Adrian Bunk <bunk@kernel.org>
To: linux-kernel@vger.kernel.org
Subject: [2.6 patch] OSS msnd: fix array overflows
Date: Sat, 27 Oct 2007 16:22:11 +0200 [thread overview]
Message-ID: <20071027142211.GZ30533@stusta.de> (raw)
This patch fixes array overflows in the OSS msnd driver spotted by the
Coverity checker.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
97463a59dfb9ccb915d3b615225c98cb3e310c0a
diff --git a/sound/oss/msnd.h b/sound/oss/msnd.h
index 05cf786..d0ca582 100644
--- a/sound/oss/msnd.h
+++ b/sound/oss/msnd.h
@@ -233,8 +233,8 @@ typedef struct multisound_dev {
spinlock_t lock;
int nresets;
unsigned long recsrc;
- int left_levels[16];
- int right_levels[16];
+ int left_levels[32];
+ int right_levels[32];
int mixer_mod_count;
int calibrate_signal;
int play_sample_size, play_sample_rate, play_channels;
next reply other threads:[~2007-10-27 14:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-27 14:22 Adrian Bunk [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-01-01 13:49 [2.6 patch] OSS msnd: fix array overflows Adrian Bunk
2008-01-01 18:43 ` Oliver Pinter (Pintér Olivér)
2008-01-01 23:15 ` Adrian Bunk
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=20071027142211.GZ30533@stusta.de \
--to=bunk@kernel.org \
--cc=linux-kernel@vger.kernel.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