[alsa-devel] [PATCH v5] ASoC: Apply msbits constraint for sample size bigger than the msbits

Clemens Ladisch clemens at ladisch.de
Wed Jan 18 16:35:35 CET 2012


Peter Ujfalusi wrote:
> We run the loop as long as the sample size is bigger than the requested
> msbits.

> +	while (sample_sizes[i] > bits && i < ARRAY_SIZE(sample_sizes)) {

This will overrun sample_sizes[] if bits < 8.


Regards,
Clemens


More information about the Alsa-devel mailing list