diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-06-26 10:52:20 +0300 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2013-09-10 01:57:09 +0100 |
commit | 0aaf4c42a31301cc59177aa3246fdd7b20b570fa (patch) | |
tree | e0537d5053af351967f580d050959a97f53e0e30 /sound | |
parent | d546eadecc19fa06a326c051640ae7a24d43de2e (diff) | |
download | lwn-0aaf4c42a31301cc59177aa3246fdd7b20b570fa.tar.gz lwn-0aaf4c42a31301cc59177aa3246fdd7b20b570fa.zip |
ALSA: ak4xx-adda: info leak in ak4xxx_capture_source_info()
commit bd5fe738e388ceaa32e5171481e0d3ec59f0ccfe upstream.
"idx" is controled by the user and can be a negative offset into the
input_names[] array.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/i2c/other/ak4xxx-adda.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/i2c/other/ak4xxx-adda.c b/sound/i2c/other/ak4xxx-adda.c index cef813d23641..ed726d1569e8 100644 --- a/sound/i2c/other/ak4xxx-adda.c +++ b/sound/i2c/other/ak4xxx-adda.c @@ -571,7 +571,7 @@ static int ak4xxx_capture_source_info(struct snd_kcontrol *kcontrol, struct snd_akm4xxx *ak = snd_kcontrol_chip(kcontrol); int mixer_ch = AK_GET_SHIFT(kcontrol->private_value); const char **input_names; - int num_names, idx; + unsigned int num_names, idx; num_names = ak4xxx_capture_num_inputs(ak, mixer_ch); if (!num_names) |