Dan Carpenter 57220bc1f5 sound: sequencer: cap array index in seq_chn_common_event()
"chn" here is a number between 0 and 255, but ->chn_info[] only has
16 elements so there is a potential write beyond the end of the
array.

If the seq_mode isn't SEQ_2 then we let the individual drivers
(either opl3.c or midi_synth.c) handle it.  Those functions all
do a bounds check on "chn" so I haven't changed anything here.
The opl3.c driver has up to 18 channels and not 16.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-03-15 07:45:20 +01:00
..
2011-03-31 11:26:23 -03:00
2012-12-07 07:30:49 +01:00
2009-07-29 14:37:12 +02:00
2012-10-06 16:47:53 +02:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2010-11-11 01:54:32 +01:00
2012-12-07 07:30:49 +01:00
2011-05-20 11:33:39 +02:00
2005-04-16 15:20:36 -07:00
2011-03-31 11:26:23 -03:00
2005-04-16 15:20:36 -07:00
2013-02-22 23:31:31 -05:00
2005-04-16 15:20:36 -07:00
2012-10-06 16:47:53 +02:00
2012-03-28 18:30:03 +01:00
2006-10-03 23:01:26 +02:00
2005-04-16 15:20:36 -07:00
2012-10-06 16:47:53 +02:00
2005-04-16 15:20:36 -07:00
2011-03-31 11:26:23 -03:00
2005-04-16 15:20:36 -07:00
2012-10-06 16:47:53 +02:00
2005-04-16 15:20:36 -07:00
2012-10-06 16:47:53 +02:00
2006-10-03 23:01:26 +02:00
2005-04-16 15:20:36 -07:00
2006-10-04 07:55:32 -07:00
2010-01-08 09:17:51 +01:00
2005-04-16 15:20:36 -07:00
2013-02-22 23:31:31 -05:00
2005-04-16 15:20:36 -07:00
2012-10-06 16:47:53 +02:00
2005-04-16 15:20:36 -07:00
2012-03-28 18:30:03 +01:00
2012-06-03 12:04:08 +02:00

The modular sound driver patches were funded by Red Hat Software 
(www.redhat.com). The sound driver here is thus a modified version of 
Hannu's code. Please bear that in mind when considering the appropriate
forums for bug reporting. 

Alan Cox