Skip to content

Commit 509f74a

Browse files
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.
1 parent c062afc commit 509f74a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dwarf.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2554,6 +2554,9 @@ build_address_map (struct backtrace_state *state, uintptr_t base_address,
25542554
u->comp_dir = NULL;
25552555
u->abs_filename = NULL;
25562556
u->lineoff = 0;
2557+
u->str_offsets_base = 0;
2558+
u->addr_base = 0;
2559+
u->rnglists_base = 0;
25572560

25582561
/* The actual line number mappings will be read as needed. */
25592562
u->lines = NULL;

0 commit comments

Comments
 (0)