Skip to contentSkip to conversation

OSS msnd: fix array overflows

PATCH New Adrian Bunk 1 participant 1 message Oct 27, 2007 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 OSS msnd: fix array overflows

This patch fixes array overflows in the OSS msnd driver spotted by the Coverity checker.

---
97463a59dfb9ccb915d3b615225c98cb3e310c0a

sound/oss/msnd.h +2 -2
index 05cf786..d0ca582 100644
@@ -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;