https://en.wikipedia.org/wiki/Buffer_overflow_protection#Canaries
Just curious what is the current status / future plans?
I know LLVM has SafeStack. No idea if it's enabled.
We have stack probes on x86/x64 for both libc and stand-alone builds. Stack protection for libc-less targets is tracked in #276, enabling it requires a few lines of code and a decision on whether the TLS should always be allocated or not.
Stack overflow detection is enabled by default in safe build modes.
It's also planned for zig to have safe recursion (#1006) and in general to have a compile-time known stack upper bound (#157).
Most helpful comment
We have stack probes on x86/x64 for both libc and stand-alone builds. Stack protection for libc-less targets is tracked in #276, enabling it requires a few lines of code and a decision on whether the TLS should always be allocated or not.