Deprecate setjmp/longjmp? [was Re: Maybe it's time to get rid of tcpwrappers/tcpd?]

Miloslav Trma─Ź mitr at volny.cz
Mon Apr 28 16:43:44 UTC 2014


2014-04-28 0:02 GMT+02:00 Andrew Price <anprice at redhat.com>:

> On 24/04/14 15:13, Lennart Poettering wrote:
>
>> We probably should make setjmp()-freeness a requirement for
>> all code included in Fedora.
>>
>
> Would it be worth the effort, and how feasible is it anyway?
>

Generally no.  Been there, done that.

Avoiding setjmp() involves touching well over 75% lines of affected code to
add explicit alternative return paths.  The result might be cleaner but
this is so radical a change that it is also very likely to introduce new
bugs.  As far as cleanups go, this is on the very end of the "you'd be
crazy to do it in Fedora other than doing it upstream and rebasing" scale.

(OTOH if the code is using setjmp() *and* also using it incorrectly,
there's no other practical thing to do than to do such a huge line-by-line
rewrite.)
     Mirek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20140428/bd9e1712/attachment.html>


More information about the devel mailing list