ALSA: usb-audio: Add sanity checks for endpoint accesses
authorTakashi Iwai <tiwai@suse.de>
Tue, 15 Mar 2016 14:20:58 +0000 (15:20 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 16 Mar 2016 11:45:32 +0000 (12:45 +0100)
commit447d6275f0c21f6cc97a88b3a0c601436a4cdf2a
treee2249232cdd129840ef943a3b2136a2205065f25
parent902eb7fd1e4af3ac69b9b30f8373f118c92b9729
ALSA: usb-audio: Add sanity checks for endpoint accesses

Add some sanity check codes before actually accessing the endpoint via
get_endpoint() in order to avoid the invalid access through a
malformed USB descriptor.  Mostly just checking bNumEndpoints, but in
one place (snd_microii_spdif_default_get()), the validity of iface and
altsetting index is checked as well.

Bugzilla: https://bugzilla.suse.com/show_bug.cgi?id=971125
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/clock.c
sound/usb/endpoint.c
sound/usb/mixer_quirks.c
sound/usb/pcm.c
This page took 0.029578 seconds and 5 git commands to generate.