aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDonald Yandt <[email protected]>2019-05-14 07:01:00 -0400
committerArnaldo Carvalho de Melo <[email protected]>2019-05-15 16:36:47 -0300
commit30ba5b0e66c872faa416a458d32cc3956ecb548a (patch)
tree646052ffc2fe8738b9b2de1b7307ce02587b99cc /tools/perf/scripts/python
parentbf6d18cffa5f26bd5dc71485c2a2ad0c42a0ce60 (diff)
perf machine: Null-terminate version char array upon fgets(/proc/version) error
If fgets() fails due to any other error besides end-of-file, the version char array may not even be null-terminated. Signed-off-by: Donald Yandt <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Avi Kivity <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Yanmin Zhang <[email protected]> Fixes: a1645ce12adb ("perf: 'perf kvm' tool for monitoring guest performance from host") 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