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

Zoltan Boszormenyi zboszor at freemail.hu
Mon Apr 28 07:47:53 UTC 2014


2014-04-28 00:02 keltezéssel, Andrew Price írta:
> 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?
> - Do we have any usage statistics?
> - How often do we see bugs caused by bad uses of setjmp/longjmp?
> - Is mitigation instead of blanket removal possible?
> - How likely is it that /all/ setjmp/longjmp uses can be reasonably replaced?
> - Is there existing upstream momentum to move away from setjmp/longjmp?
>
> (I'm not against the idea but I think it deserves further discussion.)
>
> Andy

Just one datapoint: have fun rewriting PostgreSQL's error handling
while still keeping it portable and acceptable upstream. Not to mention
Cerberus (a.k.a. Tom Lane) who guards that entrance, reads this list and
IIRC is a Red Hat employee at the moment. :-)

Best regards,
Zoltán Böszörményi



More information about the devel mailing list