Re: [PATCH] or1k: Avoid write outside setjmp buf & shrink buf

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
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
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl0UomsACgkQ9TYGna5E
T6C1hw//YM0OorCAD5AetyGm5G5pBkvKm6aX1xETvFyWDarL72jzirZRvVL9lN+S
xRFPDh+UbfEJdxvQyxTH2ggUp5FcQu7vQ6BTCvNLRkAfuyuG2W5WH79PgX7NdVKM
zEvkYYLK7W+wLLq3RSC804ZSoMdMpZyzd+01euIPeZ53j/MuufrbvLj6fEVarAd3
Nk0elxZFTxdE6dqgpjBTwJLaVNFVEn5ubXV7WKx8BgCn813itP9KZRhHN1mpCqaF
TfisG2OTRbfpHLaxoercl0iFRe+a8o+5A6d07lwRIXzAvieq19V3l+6Q9/pmHkEl
N4Y2I6QjCPAa+aIlnT0corOIcS35FAfw6XVltMmfdGY1Dp8Y4x2fg2Aun6wk3Shl
UCc2eTB53weRitZpBrrKwFpNiUvSgjm+mbBnmK1eoRU8n285Z9wFXeSj/psK7QlI
hPSQpO5uwRqD5MpKefqQ/Mbr63DBcfGHSZ4g0+bgLyX0lk7fl6ys31J1PeupO4MN
RTFbJo1JYkRUJH7W2pfd9BVgU1Yfo+niqf9iX3/CJnqTI/djtWdDuWe10Vua35cG
Do031POnkR3wnX47yXc1bwmFcirwSfI8HMcoRjI/hHMOv01jwBPisYiNQYGN+VS4
enQ12bwZwzPHPi8sNKzvTkFhCVS+MbdEVHEvwZG7XKWOioUl1qU=
=L9F7
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.