From 509f74a2fb9dbce3d80ea66293e1ac86be5ff6cf Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 16 Feb 2022 11:35:00 -0800 Subject: [PATCH] libbacktrace: initialize DWARF 5 fields of unit When I added the fields in 2019-12-13 I forgot to initialize them. * dwarf.c (build_address_map): Initialize DWARF 5 fields of unit. --- dwarf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dwarf.c b/dwarf.c index 362eb60..7561648 100644 --- a/dwarf.c +++ b/dwarf.c @@ -2554,6 +2554,9 @@ build_address_map (struct backtrace_state *state, uintptr_t base_address, u->comp_dir = NULL; u->abs_filename = NULL; u->lineoff = 0; + u->str_offsets_base = 0; + u->addr_base = 0; + u->rnglists_base = 0; /* The actual line number mappings will be read as needed. */ u->lines = NULL;