diff options
| author | Mitchell Krome <[email protected]> | 2014-12-16 02:16:12 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2014-12-17 14:58:17 +0000 |
| commit | 7ad74b41e56e4f7f42c6b765bc44428cd09310d7 (patch) | |
| tree | d8e8763a585680ce52245c93c764f3eff124f3df /tools/perf/builtin-annotate.c | |
| parent | perf evlist: Use roundup_pow_of_two (diff) | |
| download | kernel-7ad74b41e56e4f7f42c6b765bc44428cd09310d7.tar.gz kernel-7ad74b41e56e4f7f42c6b765bc44428cd09310d7.zip | |
perf symbols: Fix use after free in filename__read_build_id
In filename__read_build_id, phdr points to memory in buf, which gets realloced
before a call to fseek that uses phdr->p_offset. This change stores the value
of p_offset before buf is realloced, so the fseek can use the value safely.
Signed-off-by: Mitchell Krome <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/20141216021612.GA7199@mitchell
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
0 files changed, 0 insertions, 0 deletions
