From: Petr Machata Date: Thu, 16 Apr 2009 15:51:58 +0000 (+0200) Subject: dwarflint: Fix a SEGV X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=80b8f077c705fe49bfa6d9cb65b57c00f71fa309;p=thirdparty%2Felfutils.git dwarflint: Fix a SEGV --- diff --git a/src/dwarflint.c b/src/dwarflint.c index 9e197db77..c24e6a523 100644 --- a/src/dwarflint.c +++ b/src/dwarflint.c @@ -3204,8 +3204,10 @@ read_die_chain (struct read_ctx *ctx, { relocate_one (reloc, rel, addr_64 ? 8 : 4, &addr, &where, reloc_target (form, it), symbolp); - *relocatedp = true; - *addrp = addr; + if (relocatedp != NULL) + *relocatedp = true; + if (addrp != NULL) + *addrp = addr; } else if (type_is_rel && addr != 0) /* In non-rel files, neither addr, nor ref_addr