Files
third_party_elfutils/libelf
Omar Sandoval ee2dd07f57 libelf: handle PN_XNUM in elf_getphdrnum before shdr 0 is cached
__elf_getphdrnum_rdlock() handles PN_XNUM by getting sh_info from
elf->state.elf{32,64}.scns.data[0].shdr.e{32,64}. However, that is only
a cache that may or may not have been populated by elf_begin() or
elf{32,64}_getshdr(); if it hasn't been cached yet, elf_getphdrnum()
returns 65535 (the value of PN_XNUM) instead. We should explicitly get
the shdr if it isn't cached.

Signed-off-by: Omar Sandoval <osandov@fb.com>
2020-03-23 11:23:24 +01:00
..
2015-09-23 15:50:00 +02:00
2018-02-10 03:19:26 +01:00
2019-04-14 22:25:50 +02:00
2019-02-28 22:41:14 +01:00