]> sourceware.org Git - libabigail.git/commit
dwarf-reader: remove superfluous ABG_ASSERT
authorMatthias Maennich <maennich@google.com>
Sun, 15 Mar 2020 12:55:12 +0000 (13:55 +0100)
committerDodji Seketeli <dodji@redhat.com>
Wed, 18 Mar 2020 22:10:14 +0000 (23:10 +0100)
commit34e867e74f64a7834a4cbe4d1cc0d8420faf1451
tree7a52e74da1c293babb1a445086710156d7416c09
parent247b4a18156d3104a065d780526e595176c70e50
dwarf-reader: remove superfluous ABG_ASSERT

maybe_adjust_et_rel_sym_addr_to_abs_addr contained an ABG_ASSERT to
ensure symbol_section is not used on an invalid value. Since
maybe_adjust_et_rel_sym_addr_to_abs_addr handles this case, this assert
can be removed.

* src/abg-dwarf-reader.cc
(maybe_adjust_et_rel_sym_addr_to_abs_addr): improve NULL check,
remove superfluous ABG_ASSERT
* tests/data/Makefile.am: Add new test case to the distribution.
* tests/test-read-dwarf.cc: Likewise.
* tests/data/test-read-dwarf/test27-bogus-binary.elf: New test case.

Signed-off-by: Matthias Maennich <maennich@google.com>
src/abg-dwarf-reader.cc
tests/data/Makefile.am
tests/data/test-read-dwarf/test27-bogus-binary.elf [new file with mode: 0644]
tests/test-read-dwarf.cc
This page took 0.032744 seconds and 5 git commands to generate.