• Takashi Iwai's avatar
    ALSA: usb-audio: More validations of descriptor units · 57f87706
    Takashi Iwai authored
    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>
    57f87706
helper.h 1.28 KB