Skip to content
Commit 57f87706 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: usb-audio: More validations of descriptor units



Introduce a new helper to validate each audio descriptor unit before
and check the unit before actually accessing it.  This should harden
against the OOB access cases with malformed descriptors that have been
recently frequently reported by fuzzers.

The existing descriptor checks are still kept although they become
superfluous after this patch.  They'll be cleaned up eventually
later.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent f9f0e9ed
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment