[libc-commits] [libc] [NFC] add newline after stack smashing message (PR #100958)
via libc-commits
libc-commits at lists.llvm.org
Sun Jul 28 19:13:34 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Schrodinger ZHU Yifan (SchrodingerZhu)
<details>
<summary>Changes</summary>
<img width="662" alt="smash newline" src="https://github.com/user-attachments/assets/99625bcb-efd6-4733-aa01-2a2167ee686f">
---
Full diff: https://github.com/llvm/llvm-project/pull/100958.diff
1 Files Affected:
- (modified) libc/src/compiler/generic/__stack_chk_fail.cpp (+1-1)
``````````diff
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();
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/100958
More information about the libc-commits
mailing list