[libc-commits] [libc] 6f3d1d3 - [libc] add __stack_chk_guard to generic (#121121)
via libc-commits
libc-commits at lists.llvm.org
Mon Dec 30 23:34:19 PST 2024
Author: Tristan Ross
Date: 2024-12-31T02:34:16-05:00
New Revision: 6f3d1d3018448fcad1071e2dc308632c19486f65
URL: https://github.com/llvm/llvm-project/commit/6f3d1d3018448fcad1071e2dc308632c19486f65
DIFF: https://github.com/llvm/llvm-project/commit/6f3d1d3018448fcad1071e2dc308632c19486f65.diff
LOG: [libc] add __stack_chk_guard to generic (#121121)
Added:
Modified:
libc/src/compiler/generic/__stack_chk_fail.cpp
Removed:
################################################################################
diff --git a/libc/src/compiler/generic/__stack_chk_fail.cpp b/libc/src/compiler/generic/__stack_chk_fail.cpp
index c76ec1407ad356..183cf9eb2cbf23 100644
--- a/libc/src/compiler/generic/__stack_chk_fail.cpp
+++ b/libc/src/compiler/generic/__stack_chk_fail.cpp
@@ -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();
More information about the libc-commits
mailing list