Skip to content

Commit 6f3d1d3

Browse files
[libc] add __stack_chk_guard to generic (#121121)
1 parent 2e3d390 commit 6f3d1d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libc/src/compiler/generic/__stack_chk_fail.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
extern "C" {
1414

15+
uintptr_t __stack_chk_guard = static_cast<uintptr_t>(0xa9fff01234);
16+
1517
void __stack_chk_fail(void) {
1618
LIBC_NAMESPACE::write_to_stderr("stack smashing detected\n");
1719
LIBC_NAMESPACE::abort();

0 commit comments

Comments
 (0)