1
0
Fork 0
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:
Felipe Cerqueira 2017-08-17 11:29:01 -07:00 committed by Dave Watson
parent 971985133b
commit 819bf51bbd

View file

@ -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;
}