prevent CNAME/PTR parsing from reading data past the response end
[musl] / src / signal / sigsetjmp.c
index 5c93707..e69de29 100644 (file)
@@ -1,17 +0,0 @@
-#include <setjmp.h>
-#include <signal.h>
-#include <stdlib.h>
-
-/* !!! This function will not work unless the compiler performs
- * tail call optimization. Machine-specific asm versions should
- * be created instead even though the workaround (tail call)
- * is entirely non-machine-specific... */
-
-int sigsetjmp(sigjmp_buf buf, int save)
-{
-       unsigned long *flag = buf + sizeof(jmp_buf)/sizeof(long);
-       sigset_t *mask = (void *)(flag + 1);
-       if ((*flag = save))
-               sigprocmask (SIG_SETMASK, NULL, mask);
-       return setjmp((void *)buf);
-}