aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorViresh Kumar <[email protected]>2016-01-05 16:15:54 +0530
committerRafael J. Wysocki <[email protected]>2016-01-06 02:38:27 +0100
commit5ff24d601092b222340b28466e263b1c4559407e (patch)
tree13b6a6a3058ec97b126cbbf230fdd25ca42097f1 /tools/perf/scripts/python/call-graph-from-postgresql.py
parentd9de19b1cc013433ad293365b5b3902ec73dfd60 (diff)
PM / OPP: Use snprintf() instead of sprintf()
sprintf() can access memory outside of the range of the character array, and is risky in some situations. The driver specified prop_name string can be longer than NAME_MAX here (only an attacker will do that though) and so blindly copying it into the character array of size NAME_MAX isn't safe. Instead we must use snprintf() here. Reported-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Viresh Kumar <[email protected]> Acked-by: Geert Uytterhoeven <[email protected]> Acked-by: Stephen Boyd <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions