[PATCH 09/10] dbghelp{dwarf}: Detect auto reference between a dwarf's DIE and its type

Eric Pouech eric.pouech at gmail.com
Sat Sep 11 03:59:36 CDT 2021


Signed-off-by: Eric Pouech <eric.pouech at gmail.com>

---
 dlls/dbghelp/dwarf.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/dbghelp/dwarf.c b/dlls/dbghelp/dwarf.c
index 1483bd282cb..1f9c50a161f 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 */




More information about the wine-devel mailing list