]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Don't read build-id ELF Note in .debug file through phdrs.
authorMark Wielaard <mark@klomp.org>
Mon, 16 Apr 2018 14:53:56 +0000 (16:53 +0200)
committerMark Wielaard <mark@klomp.org>
Mon, 16 Apr 2018 14:55:46 +0000 (16:55 +0200)
commitf1f543a224eec5afd8cfddea70c1307ed0a20c55
treee7c03c9fcf49eabe88f84215542ecb08aea05d64
parent532ed8a48b72231f424dd0b421cceb91d601389a
Don't read build-id ELF Note in .debug file through phdrs.

Bug #393062 - Reading build-id ELF note through phdrs triggers
              "debuginfo reader: ensure_valid failed"

Skip the phdrs when we have to search the shdrs. In separate
.debug files the phdrs might not be valid (they are a copy of
the main ELF file) and might trigger assertions when getting
image notes based on them.
NEWS
coregrind/m_debuginfo/readelf.c