This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fixing SEH exceptions for languages != C++
- From: Kai Tietz <ktietz70 at googlemail dot com>
- To: Jonathan Schleifer <js at webkeks dot org>
- Cc: Mike Stump <mikestump at comcast dot net>, "gcc-patches at gcc dot gnu dot org Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 26 Feb 2014 17:33:17 +0100
- Subject: Re: [PATCH] Fixing SEH exceptions for languages != C++
- Authentication-results: sourceware.org; auth=none
- References: <20140215182737 dot 23f55712 at webkeks dot org> <0FC77731-2471-4D6D-B7A4-D1D14665894D at comcast dot net> <A123CBB2-6945-4603-B5A5-81589AE06CC8 at webkeks dot org> <CAEwic4b6c4vOUxjS8QGHUehbtmgNVb8ppZ-oVo-gycu72g7C=A at mail dot gmail dot com> <BBA61D2E-47BF-49B6-9BF4-D7D3DB99EEC5 at webkeks dot org> <CAEwic4ZFtcY6kbq4haq50aU+bOrk1zyO1X2zbEZC8_U=RLbRJw at mail dot gmail dot com> <20140219120038 dot 4c87e734 at webkeks dot org> <FE7E56E7-33B9-4C26-ACA7-F72F22CECAA8 at webkeks dot org>
Hello Jonathan,
2014-02-20 20:19 GMT+01:00 Jonathan Schleifer <js@webkeks.org>:
> There is also definitely a use-after-free if you call _Unwind_DeleteException in your personality before returning _URC_INSTALL_CONTEXT (which you should, if you don't want to leak and your landing pad doesn't call it). I'm not sure though how to fix it. It seems the problem that register 0 is ignored is present throughout the whole file and it seems that a proper fix gets a little bit more complicated.
>
> --
> Jonathan
Sorry for replying a bit late to your thread. For current stage of
gcc further changes in this area need to be postponed.
The use-after-free issue you mention is for sure something we should
address in upcoming stage 1. So you are welcome to work on this area.
You might want to make already your papers with fsf, as they are
required for further contributions to gcc.
Regards,
Kai