]> git.alsa-project.org Git - alsa-lib.git/commit
control: ctlparse - use type-specific bound on element count
authorJohn Keeping <john@metanate.com>
Tue, 16 Jun 2020 18:29:30 +0000 (19:29 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 16 Jun 2020 19:29:20 +0000 (21:29 +0200)
commit198eb642bc75acb5dc842ed5e3e23236d3a4f6f0
treefdb0d7bb4200cb586037d48fbcced9b75fbefddf
parent7036ea07c88b0abe8866e713eaf123971c5ba235
control: ctlparse - use type-specific bound on element count

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@metanate.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/control/ctlparse.c