diff options
author | Takashi Iwai <[email protected]> | 2020-12-23 18:45:57 +0100 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2020-12-23 18:46:54 +0100 |
commit | c06ccf3ebb7503706ea49fd248e709287ef385a3 (patch) | |
tree | 031d0d16bba3f78694debe0289575cafd0a2abd4 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | c1e8952395c1f44a6304c71401519d19ed2ac56a (diff) |
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 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions