[libc-commits] [libc] aef9a89 - [NFC] add newline after stack smashing message (#100958)

via libc-commits libc-commits at lists.llvm.org
Sun Jul 28 19:23:39 PDT 2024


Author: Schrodinger ZHU Yifan
Date: 2024-07-28T19:23:36-07:00
New Revision: aef9a89c85db61783cd7484d8f114103e22f8953

URL: https://github.com/llvm/llvm-project/commit/aef9a89c85db61783cd7484d8f114103e22f8953
DIFF: https://github.com/llvm/llvm-project/commit/aef9a89c85db61783cd7484d8f114103e22f8953.diff

LOG: [NFC] add newline after stack smashing message (#100958)

<img width="662" alt="smash newline"
src="https://github.com/user-attachments/assets/99625bcb-efd6-4733-aa01-2a2167ee686f">

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 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