[PATCH] or1k: Avoid write outside setjmp buf & shrink buf
Corinna Vinschen
vinschen@redhat.com
Thu Jun 27 11:03:00 GMT 2019
On Jun 27 10:03, Martin Erik Werner wrote:
> Update the offsets used to save registers into the stejmp jmp_buf
> structure in order to:
>
> * Avoid writing the supervision register outside the buffer and thus
> clobbering something on the stack. Previously the supervision register
> was written at offset 124 while the buffer was of length 124.
>
> * Shrink the jmp_buf down to the size actually needed, by avoiding holes
> at the locations of omitted registers.
> ---
> newlib/libc/include/machine/setjmp.h | 5 +++-
> newlib/libc/machine/or1k/setjmp.S | 56 ++++++++++++++++++------------------
Pushed.
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20190627/6627e5b0/attachment.sig>
More information about the Newlib
mailing list