aboutsummaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2013-02-06 14:57:17 +0900
committerArnaldo Carvalho de Melo <[email protected]>2013-02-06 18:09:26 -0300
commit5936f54d6ca2857d81188dcdff8c61b8fc482f53 (patch)
tree07d0d610008fab926ebaeb0371941379d10c0ea8 /lib/debugobjects.c
parent553099857702bb77e541c47bde47f6863834d2e2 (diff)
perf sort: Check return value of strdup()
When setup_sorting() is called, 'str' is passed to strtok_r() but it's not checked to have a valid pointer. As strtok_r() accepts NULL pointer on a first argument and use the third argument in that case, it can cause a trouble since our third argument, tmp, is not initialized. Signed-off-by: Namhyung Kim <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions