checkasm: Signal handling improvements
- May 13, 2024
-
-
Henrik Gramner authoredcc1137c8
-
Henrik Gramner authored
Both POSIX and the C standard places several environmental limits on setjmp() invocations, with essentially anything beyond comparing the return value with a constant as a simple branch condition being UB. We were previously performing a function call using the setjmp() return value as an argument, which is technically not allowed even though it happened to work correctly in practice. Some systems may loosen those restrictions and allow for more flexible usage, but we shouldn't be relying on that.
471549f2
-