musl's strlen() is a work of art except for the hopefully-harmless UB http://git.musl-libc.org/cgit/musl/tree/src/string/strlen.c …
-
-
@whitequark@jfbastien Alternatively we could do 3 inline syscalls to: 1. block all signals, 2. getpid, 3. kill -9 self. -
@RichFelker@jfbastien -KILL? maybe -TRAP. but yeah -
@whitequark@jfbastien Being non-catchable is desirable here. If state is corrupted, any further execution is dangerous. -
@whitequark@jfbastien This is a major bug in gcc/glibc __stack_chk_fail, etc. - the handler can actually turn over code execution! -
@RichFelker@whitequark I asked a glibc maintainer about this, it sounds like that's a design philosophy difference :-) -
@jfbastien@whitequark Keep in mind, on x86, the vdso syscall pointer is in the TCB, which is just above the stack on non-main threads...
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.