CRAS: rclient - Verify parameters to configure remix
The coefficient array should be a bounded length and a valid number of
channels should be specified.
Limiting the number of channels to 32 should give enough room for most
reasonable use cases without letting clients cause arbitrary amounts of
memory consumption in the server.
BUG=768128
TEST=fuzz
Change-Id: Ib083a010df5a31951348f93a415f3c1c18d02277
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/696329
Reviewed-by: Chinyue Chen <chinyue@chromium.org>
2 files changed