Module: wine Branch: master Commit: e28ec5a0fb6fbbca7ed69d445881dfc60974ea4a URL: https://source.winehq.org/git/wine.git/?a=commit;h=e28ec5a0fb6fbbca7ed69d445... Author: Eric Pouech <eric.pouech(a)gmail.com> Date: Sat Sep 11 10:59:36 2021 +0200 dbghelp/dwarf: Detect auto reference between a dwarf's DIE and its type. Signed-off-by: Eric Pouech <eric.pouech(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/dbghelp/dwarf.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/dbghelp/dwarf.c b/dlls/dbghelp/dwarf.c index a59999c9e70..00fa0f6fb60 100644 --- a/dlls/dbghelp/dwarf.c +++ b/dlls/dbghelp/dwarf.c @@ -1025,6 +1025,11 @@ static struct symt* dwarf2_lookup_type(dwarf2_parse_context_t* ctx, FIXME("Unable to find back reference to type %lx\n", attr.u.uvalue); return ctx->symt_cache[sc_unknown]; } + if (type == di) + { + FIXME("Reference to itself\n"); + return ctx->symt_cache[sc_unknown]; + } if (!type->symt) { /* load the debug info entity */