[PATCH] [DbgHelp]: don't crash when parsing the forward declaration of a function

Eric Pouech eric.pouech at orange.fr
Sun May 25 12:29:58 CDT 2008




A+
---

 dlls/dbghelp/dwarf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/dlls/dbghelp/dwarf.c b/dlls/dbghelp/dwarf.c
index 5f6458f..ccd39fb 100644
--- a/dlls/dbghelp/dwarf.c
+++ b/dlls/dbghelp/dwarf.c
@@ -1679,7 +1679,7 @@ static struct symt* dwarf2_parse_subprogram(dwarf2_parse_context_t* ctx,
         symt_add_function_point(ctx->module, subpgm.func, SymTagCustom,
                                 &subpgm.frame, NULL);
     }
-    symt_normalize_function(subpgm.ctx->module, subpgm.func);
+    if (subpgm.func) symt_normalize_function(subpgm.ctx->module, subpgm.func);
 
     return di->symt;
 }





More information about the wine-patches mailing list