mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 21:53:12 +08:00
[libc] add __stack_chk_guard to generic (#121121)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user