libdwfl: Don't install an Elf handle in a Dwfl_Module twice
authorMark Wielaard <mark@klomp.org>
Wed, 8 Dec 2021 22:44:34 +0000 (23:44 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 9 Dec 2021 18:34:19 +0000 (19:34 +0100)
commit98e7adf70896ac179258d41c2aac38e9e91614bb
tree3f24480acdf00deb7a25235654680292abb60d3a
parentb9ed67836b6f4e580927b4e8e1c8517e70a086be
libdwfl: Don't install an Elf handle in a Dwfl_Module twice

dwfl_segment_report_module can be called with the same module
name, start and end address twice (probably because of a corrupt
core file). In that case don't override the main.elf handle if
it already exists.

https://sourceware.org/bugzilla/show_bug.cgi?id=28655

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdwfl/ChangeLog
libdwfl/dwfl_segment_report_module.c