Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Oct 2021 07:16:15 GMT
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 90a75a07ed46 - stable/12 - libc: ssp: sprinkle around some __dead2
Message-ID:  <202110060716.1967GFse039092@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=90a75a07ed465acc7135125eeff3a06ebb2b281e

commit 90a75a07ed465acc7135125eeff3a06ebb2b281e
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2021-09-29 21:48:20 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2021-10-06 07:16:02 +0000

    libc: ssp: sprinkle around some __dead2
    
    This is consistent with, e.g., NetBSD's implementation, which declares
    these as noreturn in ssp/ssp.h.
    
    (cherry picked from commit 5487294d79f9ebe72a847d0855adb4df85e0d66e)
---
 lib/libc/secure/stack_protector.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/libc/secure/stack_protector.c b/lib/libc/secure/stack_protector.c
index 15460278502d..7ddd6338ec55 100644
--- a/lib/libc/secure/stack_protector.c
+++ b/lib/libc/secure/stack_protector.c
@@ -64,9 +64,9 @@ extern int __sysctl(const int *name, u_int namelen, void *oldp,
 
 long __stack_chk_guard[8] = {0, 0, 0, 0, 0, 0, 0, 0};
 static void __guard_setup(void) _GUARD_SETUP_CTOR_ATTR;
-static void __fail(const char *);
-void __stack_chk_fail(void);
-void __chk_fail(void);
+static void __fail(const char *) __dead2;
+void __stack_chk_fail(void) __dead2;
+void __chk_fail(void) __dead2;
 
 /*LINTED used*/
 static void



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110060716.1967GFse039092>