summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2017-06-30 10:59:15 +0300
committerRob Clark <robdclark@gmail.com>2017-08-01 16:23:55 -0400
commit65e93108891e571f177c202add9288eda9ac4100 (patch)
treec02b44b217bf30be76a71997aa9b8b18c0515161 /tools/perf/scripts/python/call-graph-from-sql.py
parentd490c9cd2f67399e1dbc951f190d03724b81d0c8 (diff)
drm/msm: fix an integer overflow test
We recently added an integer overflow check but it needs an additional tweak to work properly on 32 bit systems. The problem is that we're doing the right hand side of the assignment as type unsigned long so the max it will have an integer overflow instead of being larger than SIZE_MAX. That means the "sz > SIZE_MAX" condition is never true even on 32 bit systems. We need to first cast it to u64 and then do the math. Fixes: 4a630fadbb29 ("drm/msm: Fix potential buffer overflow issue") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Jordan Crouse <jcrouse@codeaurora.org> Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions