aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAndrzej Hajda <[email protected]>2015-10-06 11:00:17 +0200
committerArnaldo Carvalho de Melo <[email protected]>2015-10-06 18:04:59 -0300
commit38349665388fb079fb2bc8c46db9446dd976802a (patch)
tree5b212fd3e5984d2faff65bf79bebc61f97f787c8 /tools/perf/scripts/python
parent1178bfd41f3ab6914eb6884875b776bc3032c9b5 (diff)
perf tools: Fix handling read result using a signed variable
The function can return negative value, assigning it to unsigned variable can cause memory corruption. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej Hajda <[email protected]> Cc: Bartlomiej Zolnierkiewicz <[email protected]> Cc: Marek Szyprowski <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions