aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorAlan Stern <[email protected]>2013-09-06 11:49:51 -0400
committerJames Bottomley <[email protected]>2013-09-11 09:44:00 -0700
commit984f1733fcee3fbc78d47e26c5096921c5d9946a (patch)
tree2f36698d0e3a90f653d5c6673c2144b3530cb1c6 /tools/perf/util/scripting-engines/trace-event-python.c
parent76c4f79d909623ea144262626428a2dfb54b40e3 (diff)
[SCSI] sd: Fix potential out-of-bounds access
This patch fixes an out-of-bounds error in sd_read_cache_type(), found by Google's AddressSanitizer tool. When the loop ends, we know that "offset" lies beyond the end of the data in the buffer, so no Caching mode page was found. In theory it may be present, but the buffer size is limited to 512 bytes. Signed-off-by: Alan Stern <[email protected]> Reported-by: Dmitry Vyukov <[email protected]> CC: <[email protected]> Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions