[alsa-devel] [PATCH v2 2/2] ASoC: Intel: Skylake: Add DSP firmware manifest parsing

Mark Brown broonie at kernel.org
Thu Apr 21 18:07:13 CEST 2016


On Thu, Apr 21, 2016 at 11:45:23AM +0530, Vinod Koul wrote:

> +	num_entry = adsp_hdr->num_module_entries;
> +
> +	tbl = devm_kzalloc(ctx->dev,
> +		num_entry * sizeof(struct uuid_tbl), GFP_KERNEL);
> +
> +	if (!tbl)
> +		return -ENOMEM;

I'm still not seeing any bounds checking to make sure we don't read
beyond the end of the firmware file.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20160421/49cdf317/attachment.sig>


More information about the Alsa-devel mailing list