[alsa-devel] [RFC][PATCH 0/2] ALSA: control: add dimen validator
Takashi Sakamoto
o-takashi at sakamocchi.jp
Fri May 29 10:58:55 CEST 2015
Hi,
This patchset adds a validator for dimen field in control element
information.
The dimen information is used to represent channel matrix of the control
element, thus the number of elements in the matrix should be within the
number of channels in the control element.
Current implementation allows each drivers to set arbitrary number to
the information. When the information is wrong, it can cause
buffer-over-run to userspace applications depending on application
implementation.
Actually, the dimen information is scarcely used by current drivers and
applications, while it's better for ALSA core to ensure the information
is enough safe.
Takashi Sakamoto (2):
ALSA: control: add dimension validator for userspace element
ALSA: control: add dimension validator for kernel driver
sound/core/control.c | 62 ++++++++++++++++++++++++++++++++++++++--------------
1 file changed, 46 insertions(+), 16 deletions(-)
--
2.1.4
More information about the Alsa-devel
mailing list