logoalt Hacker News

gruntled-workertoday at 1:37 AM1 replyview on HN

No complaints about this in particular, but code that uses setjmp/longjmp often has a risk profile that's way bigger than memory safety alone. If you're stuck with them then by all means, mitigate all you can.


Replies

pizlonatortoday at 2:17 AM

What misuse are you imagining that isn’t a memory safety problem?

You might find that Fil-C prevents those too. It’s pretty strict. You can only use longjmp to pop stack like an exception would

show 1 reply