diff options
author | Mitchell Krome <mitchellkrome@gmail.com> | 2014-12-16 05:16:12 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-12-17 17:58:17 +0300 |
commit | 7ad74b41e56e4f7f42c6b765bc44428cd09310d7 (patch) | |
tree | d8e8763a585680ce52245c93c764f3eff124f3df /virt/kvm | |
parent | 91529834d1dea9afccb72843c3e547e703ec177f (diff) | |
download | linux-7ad74b41e56e4f7f42c6b765bc44428cd09310d7.tar.xz |
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 <mitchellkrome@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20141216021612.GA7199@mitchell
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions