[libc] add __stack_chk_guard to generic (#121121)

This commit is contained in:
Tristan Ross
2024-12-30 23:34:16 -08:00
committed by GitHub
parent 2e3d3903e6
commit 6f3d1d3018

View File

@@ -12,6 +12,8 @@
extern "C" {
uintptr_t __stack_chk_guard = static_cast<uintptr_t>(0xa9fff01234);
void __stack_chk_fail(void) {
LIBC_NAMESPACE::write_to_stderr("stack smashing detected\n");
LIBC_NAMESPACE::abort();