Browse Source

OSS msnd: fix array overflows

Fix array overflows in the OSS msnd driver spotted by the Coverity checker.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Adrian Bunk 17 năm trước cách đây
mục cha
commit
ea8e1652c5
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      sound/oss/msnd.h

+ 2 - 2
sound/oss/msnd.h

@@ -233,8 +233,8 @@ typedef struct multisound_dev {
 	spinlock_t lock;
 	spinlock_t lock;
 	int nresets;
 	int nresets;
 	unsigned long recsrc;
 	unsigned long recsrc;
-	int left_levels[16];
-	int right_levels[16];
+	int left_levels[32];
+	int right_levels[32];
 	int mixer_mod_count;
 	int mixer_mod_count;
 	int calibrate_signal;
 	int calibrate_signal;
 	int play_sample_size, play_sample_rate, play_channels;
 	int play_sample_size, play_sample_rate, play_channels;