Eric Pouech : dbghelp: Don' t crash when parsing the forward declaration of a function.

Alexandre Julliard julliard at winehq.org
Mon May 26 13:12:42 CDT 2008


Module: wine
Branch: master
Commit: 1a34d70354dcb8f790d7c840822094b78407b770
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1a34d70354dcb8f790d7c840822094b78407b770

Author: Eric Pouech <eric.pouech at orange.fr>
Date:   Sun May 25 19:29:58 2008 +0200

dbghelp: Don't crash when parsing the forward declaration of a function.

---

 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-cvs mailing list