aboutsummaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorMitchell Krome <[email protected]>2014-12-16 12:16:12 +1000
committerArnaldo Carvalho de Melo <[email protected]>2014-12-17 11:58:17 -0300
commit7ad74b41e56e4f7f42c6b765bc44428cd09310d7 (patch)
treed8e8763a585680ce52245c93c764f3eff124f3df /lib/test-string_helpers.c
parent91529834d1dea9afccb72843c3e547e703ec177f (diff)
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 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions