diff options
| author | Takashi Iwai <[email protected]> | 2020-12-23 17:45:57 +0000 |
|---|---|---|
| committer | Takashi Iwai <[email protected]> | 2020-12-23 17:46:54 +0000 |
| commit | c06ccf3ebb7503706ea49fd248e709287ef385a3 (patch) | |
| tree | 031d0d16bba3f78694debe0289575cafd0a2abd4 /net/switchdev/switchdev.c | |
| parent | ALSA: hda/realtek - Modify Dell platform name (diff) | |
| download | kernel-c06ccf3ebb7503706ea49fd248e709287ef385a3.tar.gz kernel-c06ccf3ebb7503706ea49fd248e709287ef385a3.zip | |
ALSA: usb-audio: Fix UBSAN warnings for MIDI jacks
The calculation of in_cables and out_cables bitmaps are done with the
bit shift by the value from the descriptor, which is an arbitrary
value, and can lead to UBSAN shift-out-of-bounds warnings.
Fix it by filtering the bad descriptor values with the check of the
upper bound 0x10 (the cable bitmaps are 16 bits).
Reported-by: [email protected]
Cc: <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
