mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-01-08 18:33:42 +01:00
dwarf: Fix uninitialized variable c->dwarf.eh_valid_mask.
We were testing libunwind-coredump and got some warnings about uninitialized eh_valid_mask. The code was working fine because the default value of the mask was 0, but it could potentially take a wrong branch if there's garbage in memory.
This commit is contained in:
parent
971985133b
commit
819bf51bbd
1 changed files with 1 additions and 0 deletions
|
@ -83,6 +83,7 @@ common_init (struct cursor *c, unsigned use_prev_instr)
|
|||
c->dwarf.pi_is_dynamic = 0;
|
||||
c->dwarf.hint = 0;
|
||||
c->dwarf.prev_rs = 0;
|
||||
c->dwarf.eh_valid_mask = 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue