[libc-commits] [libc] [NFC] add newline after stack smashing message (PR #100958)
Schrodinger ZHU Yifan via libc-commits
libc-commits at lists.llvm.org
Sun Jul 28 19:11:57 PDT 2024
https://github.com/SchrodingerZhu created https://github.com/llvm/llvm-project/pull/100958
<img width="662" alt="smash newline" src="https://github.com/user-attachments/assets/99625bcb-efd6-4733-aa01-2a2167ee686f">
>From 5262d2786be28aef757244522e428e0d4c6a2b09 Mon Sep 17 00:00:00 2001
From: Schrodinger ZHU Yifan <i at zhuyi.fan>
Date: Sun, 28 Jul 2024 19:10:03 -0700
Subject: [PATCH] [NFC] add newline after stack smashing message
---
libc/src/compiler/generic/__stack_chk_fail.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libc/src/compiler/generic/__stack_chk_fail.cpp b/libc/src/compiler/generic/__stack_chk_fail.cpp
index 639204d29590a..c76ec1407ad35 100644
--- a/libc/src/compiler/generic/__stack_chk_fail.cpp
+++ b/libc/src/compiler/generic/__stack_chk_fail.cpp
@@ -13,7 +13,7 @@
extern "C" {
void __stack_chk_fail(void) {
- LIBC_NAMESPACE::write_to_stderr("stack smashing detected");
+ LIBC_NAMESPACE::write_to_stderr("stack smashing detected\n");
LIBC_NAMESPACE::abort();
}
More information about the libc-commits
mailing list