• Takashi Iwai's avatar
    ALSA: usb-audio: Check mixer unit bitmap yet more strictly · f9f0e9ed
    Takashi Iwai authored
    The bmControls (for UAC1) or bmMixerControls (for UAC2/3) bitmap has a
    variable size depending on both input and output pins.  Its size is to
    fit with input * output bits.  The problem is that the input size
    can't be determined simply from the unit descriptor itself but it
    needs to parse the whole connected sources.  Although the
    uac_mixer_unit_get_channels() tries to check some possible overflow of
    this bitmap, it's incomplete due to the lack of the  evaluation of
    input pins.
    
    For covering possible overflows, this patch adds the bitmap overflow
    check in the loop of input pins in parse_audio_mixer_unit().
    
    Fixes: 0bfe5e43 ("ALSA: usb-audio: Check mixer unit descriptors more strictly")
    Cc: <stable@vger.kernel.org>
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    f9f0e9ed
Name
Last commit
Last update
..
6fire Loading commit data...
bcd2000 Loading commit data...
caiaq Loading commit data...
hiface Loading commit data...
line6 Loading commit data...
misc Loading commit data...
usx2y Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
card.c Loading commit data...
card.h Loading commit data...
clock.c Loading commit data...
clock.h Loading commit data...
debug.h Loading commit data...
endpoint.c Loading commit data...
endpoint.h Loading commit data...
format.c Loading commit data...
format.h Loading commit data...
helper.c Loading commit data...
helper.h Loading commit data...
media.c Loading commit data...
media.h Loading commit data...
midi.c Loading commit data...
midi.h Loading commit data...
mixer.c Loading commit data...
mixer.h Loading commit data...
mixer_maps.c Loading commit data...
mixer_quirks.c Loading commit data...
mixer_quirks.h Loading commit data...
mixer_scarlett.c Loading commit data...
mixer_scarlett.h Loading commit data...
mixer_us16x08.c Loading commit data...
mixer_us16x08.h Loading commit data...
pcm.c Loading commit data...
pcm.h Loading commit data...
power.c Loading commit data...
power.h Loading commit data...
proc.c Loading commit data...
proc.h Loading commit data...
quirks-table.h Loading commit data...
quirks.c Loading commit data...
quirks.h Loading commit data...
stream.c Loading commit data...
stream.h Loading commit data...
usbaudio.h Loading commit data...