From 5e4df9b9e4f1d7417c9b5d865da7e02176cf390b Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sun, 12 Feb 2006 04:00:10 +0000 Subject: [PATCH] * dwarf2-info.c (yasm_dwarf2__generate_info): Fully initialize second debug_abbrev to avoid crash on free. svn path=/trunk/yasm/; revision=1383 --- modules/dbgfmts/dwarf2/dwarf2-info.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/dbgfmts/dwarf2/dwarf2-info.c b/modules/dbgfmts/dwarf2/dwarf2-info.c index 039021df..b961ff68 100644 --- a/modules/dbgfmts/dwarf2/dwarf2-info.c +++ b/modules/dbgfmts/dwarf2/dwarf2-info.c @@ -374,6 +374,9 @@ yasm_dwarf2__generate_info(yasm_dbgfmt_dwarf2 *dbgfmt_dwarf2, abbrev = yasm_xmalloc(sizeof(dwarf2_abbrev)); abc = yasm_bc_create_common(&dwarf2_abbrev_bc_callback, abbrev, 0); abbrev->id = 0; + abbrev->tag = 0; + abbrev->has_children = 0; + STAILQ_INIT(&abbrev->attrs); abc->len = 1; yasm_dwarf2__append_bc(debug_abbrev, abc);