Re: [patch] ALSA: ak4xx-adda: info leak in ak4xxx_capture_source_info()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At Wed, 26 Jun 2013 10:52:20 +0300,
Dan Carpenter wrote:
> 
> "idx" is controled by the user and can be a negative offset into the
> input_names[] array.
> 
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

Thanks, applied now.


Takashi


> diff --git a/sound/i2c/other/ak4xxx-adda.c b/sound/i2c/other/ak4xxx-adda.c
> index cef813d2..ed726d1 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)
> 
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux