From e20397ba4669f2d64cdd1f7a002430983bed8852 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Tue, 10 Feb 2009 18:37:04 +0100 Subject: [PATCH] Fix SEGV on absence of relocation data --- src/dwarflint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dwarflint.c b/src/dwarflint.c index 9020514be..07a54c3da 100644 --- a/src/dwarflint.c +++ b/src/dwarflint.c @@ -2797,7 +2797,8 @@ check_cu_structural (struct read_ctx *ctx, if (read_die_chain (ctx, cu, abbrevs, strings, dwarf_64, address_size == 8, die_refs, &die_loc_refs, strings_coverage, - reloc->data != NULL ? reloc : NULL, ebl) >= 0) + (reloc != NULL && reloc->data != NULL) ? reloc : NULL, + ebl) >= 0) { for (size_t i = 0; i < abbrevs->size; ++i) if (!abbrevs->abbr[i].used) -- 2.47.3