[0/4] ALSA: usb-audio: More strict validation and cleanups
mbox series

Message ID 20190822073207.8696-1-tiwai@suse.de
Headers show
Series
  • ALSA: usb-audio: More strict validation and cleanups
Related show

Message

Takashi Iwai Aug. 22, 2019, 7:32 a.m. UTC
Hi,

this patchset introduces a more comprehensive validation code for
USB-audio descriptor units, mainly for mixer stuff, for yet more
hardening against the malformed descriptors.  The rest are rather
cleanups.


Takashi

===

Takashi Iwai (4):
  ALSA: usb-audio: More validations of descriptor units
  ALSA: usb-audio: Simplify parse_audio_unit()
  ALSA: usb-audio: Unify the release of usb_mixer_elem_info objects
  ALSA: usb-audio: Remove superfluous bLength checks

 sound/usb/Makefile   |   3 +-
 sound/usb/clock.c    |  14 +--
 sound/usb/helper.h   |   4 +
 sound/usb/mixer.c    | 237 ++++++++++++------------------------
 sound/usb/power.c    |   2 +
 sound/usb/quirks.c   |   3 +
 sound/usb/stream.c   |  25 ++--
 sound/usb/validate.c | 332 +++++++++++++++++++++++++++++++++++++++++++++++++++
 8 files changed, 439 insertions(+), 181 deletions(-)
 create mode 100644 sound/usb/validate.c