]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdw: Fix dwarf_peel_type infinite loop.
authorMark Wielaard <mark@klomp.org>
Thu, 30 Mar 2017 10:19:53 +0000 (12:19 +0200)
committerMark Wielaard <mark@klomp.org>
Wed, 5 Apr 2017 14:41:00 +0000 (16:41 +0200)
commitf339da994fda25b51cddc3d88182f249b75f89ff
tree2aa4c8272d1124a601b21e9a06cf81358bac4fb7
parentfb6709f1a41b58a9557ea45b7f53ae678c660b21
libdw: Fix dwarf_peel_type infinite loop.

We were calling dwarf_attr_integrate () in the die in the loop instead of
on the result. Which would cause an infinite loop when die != result.
Add a testcase that explicitly checks this case.

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

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdw/ChangeLog
libdw/dwarf_peel_type.c
tests/ChangeLog
tests/Makefile.am
tests/run-peel-type.sh [new file with mode: 0755]