aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorMichael Mera <[email protected]>2017-05-01 15:41:16 +0900
committerDoug Ledford <[email protected]>2017-05-01 15:04:23 -0400
commit062d0f22a30c39840ea49b72cfcfc1aa4cc538fa (patch)
tree828b88cd5adbbeac367ec477ec502c294eb05949 /tools/perf/scripts/python/call-graph-from-postgresql.py
parentb03ee4ca0cec348c84dccf08aaec2454c4d236c2 (diff)
IB/ocrdma: fix out of bounds access to local buffer
In write to debugfs file 'resource_stats' the local buffer 'tmp_str' is written at index 'count-1' where 'count' is the size of the write, so potentially 0. This patch filters odd values for the write size/position to avoid this type of problem. Signed-off-by: Michael Mera <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions