[PATCH alsa-lib] control: ctlparse - use type-specific bound on element count

Jaroslav Kysela perex at perex.cz
Tue Jun 16 21:30:35 CEST 2020


Dne 16. 06. 20 v 20:29 John Keeping napsal(a):
> Using a fixed bound of 128 means that too many values may be set for an
> INTEGER64 type and that any elements past 128 are out of reach for BYTE
> type controls.
> 
> Derive the maximum number of elements from the type so that the full
> range is parsed for all types.
> 
> Signed-off-by: John Keeping <john at metanate.com>

Nice catch. Applied to the alsa-lib repository. Thank you.

			Jaroslav

-- 
Jaroslav Kysela <perex at perex.cz>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.


More information about the Alsa-devel mailing list