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
..
2012-12-07 07:30:49 +01:00
2012-10-06 16:47:53 +02:00
2012-12-07 07:30:49 +01:00
2013-02-22 23:31:31 -05:00
2012-10-06 16:47:53 +02:00
2012-10-06 16:47:53 +02:00
2012-10-06 16:47:53 +02:00
2012-10-06 16:47:53 +02:00
2013-02-22 23:31:31 -05:00
2012-10-06 16:47:53 +02: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