diff options
author | Jameson Nash <vtjnash@gmail.com> | 2022-04-25 18:30:37 -0400 |
---|---|---|
committer | Dave Watson <dade.watson@gmail.com> | 2022-05-22 11:10:44 -0700 |
commit | 0c4484911dcaa47af09da3a717a66ab98dc7f7a8 (patch) | |
tree | 433b34c181e661e759ed3cc7e94e0d11a3908a2f /src/s390x | |
parent | 7eb6f72ff22a8db41800a317d331750982f75296 (diff) | |
download | libunwind-0c4484911dcaa47af09da3a717a66ab98dc7f7a8.tar.gz |
avoid leaking registers across sigreturn
Mostly just relevant for fp registers, which are frequently mostly just
ignored otherwise.
Diffstat (limited to 'src/s390x')
-rw-r--r-- | src/s390x/Gstep.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/s390x/Gstep.c b/src/s390x/Gstep.c index 0b79580b..c6b64417 100644 --- a/src/s390x/Gstep.c +++ b/src/s390x/Gstep.c @@ -64,6 +64,9 @@ s390x_handle_signal_frame (unw_cursor_t *cursor) c->sigcontext_addr = sc_addr; + for (i = 0; i < DWARF_NUM_PRESERVED_REGS; ++i) + c->dwarf.loc[i] = DWARF_NULL_LOC; + /* Update the dwarf cursor. Set the location of the registers to the corresponding addresses of the uc_mcontext / sigcontext structure contents. */ |