summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-05-19 11:54:24 +0100
committerTakashi Iwai <tiwai@suse.de>2021-05-19 16:20:25 +0200
commita6de7b32b686a6bda835c7c0f2de98eddbf48321 (patch)
treecfc340a23a1df6e3996f8c4b8b8819c7331eb58e /tools/perf/scripts/python/event_analyzing_sample.py
parent3fda230b3ef8bba9a37f77288551ade5c1ee6533 (diff)
downloadlinux-a6de7b32b686a6bda835c7c0f2de98eddbf48321.tar.gz
linux-a6de7b32b686a6bda835c7c0f2de98eddbf48321.zip
ALSA: rawmidi: fix incorrect array bounds check on clock_names
The array bounds check on clock_names is currently checking the size of the entire array rather than the number of elements in the array leading to a potential array bounds read error. Fix this by using the ARRAY_SIZE macro instead of sizeof. Addresses-Coverity: ("Out-of-bounds read") Fixes: 08fdced60ca0 ("ALSA: rawmidi: Add framing mode") Signed-off-by: Colin Ian King <colin.king@canonical.com> Link: https://lore.kernel.org/r/20210519105424.55221-1-colin.king@canonical.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions