libdw: dwarf_peel_type break long chains/cycles.
authorMark Wielaard <mark@klomp.org>
Sun, 17 Jun 2018 22:23:48 +0000 (00:23 +0200)
committerMark Wielaard <mark@klomp.org>
Wed, 20 Jun 2018 11:49:05 +0000 (13:49 +0200)
commit822a06cd87496278298ab3167d6bb5968762ec20
tree4ceb5a2d302dc5951c634dd2002b5dbbd99a31ac
parent9d7577842f9a8580552105507139c611af34e52f
libdw: dwarf_peel_type break long chains/cycles.

Limit the number of chained modifiers to 64 (that is 8 chains for all
8 modifiers, most of which cannot be chained). This prevents loops in
the DWARF DIE DW_AT_type references.

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