diff options
author | Hui Peng <[email protected]> | 2018-12-25 18:11:52 -0500 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2019-01-07 11:10:31 +0100 |
commit | cbb2ebf70daf7f7d97d3811a2ff8e39655b8c184 (patch) | |
tree | 317ed801eaffcda3e9b2eba7ac99cf7b4aadbb7e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 3e96d7280f16e2f787307f695a31296b9e4a1cd7 (diff) |
ALSA: usb-audio: Fix an out-of-bound read in create_composite_quirks
In `create_composite_quirk`, the terminating condition of for loops is
`quirk->ifnum < 0`. So any composite quirks should end with `struct
snd_usb_audio_quirk` object with ifnum < 0.
for (quirk = quirk_comp->data; quirk->ifnum >= 0; ++quirk) {
.....
}
the data field of Bower's & Wilkins PX headphones usb device device quirks
do not end with {.ifnum = -1}, wihch may result in out-of-bound read.
This Patch fix the bug by adding an ending quirk object.
Fixes: 240a8af929c7 ("ALSA: usb-audio: Add a quirck for B&W PX headphones")
Signed-off-by: Hui Peng <[email protected]>
Cc: <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions