summaryrefslogtreecommitdiffstats
path: root/libelf/elf_newdata.c
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2015-01-20 14:52:41 +0100
committerMark Wielaard <[email protected]>2015-02-06 22:18:52 +0100
commit058ae7b4d5bdfa0f39312b056ee9cadc4c3ffeb9 (patch)
treebb41cd47b381b0d698ff2e5ef96dfbce635e02a4 /libelf/elf_newdata.c
parentc806736dc8ba24bf126d3942aaa755e7d4f86ea9 (diff)
libelf: elf_strptr should fetch the shdr for the section if not yet known.
elf_strptr might be called before the shdrs are read in. In that case it needs to explicitly call __elf[32|64]_getshdr_rdlock to check the section type and size. The new strptr testcase triggers this corner case and crashes before the fix. Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'libelf/elf_newdata.c')
0 files changed, 0 insertions, 0 deletions