git: 5487294d79f9 - main - libc: ssp: sprinkle around some __dead2
Kyle Evans
kevans at FreeBSD.org
Fri Oct 1 04:56:09 UTC 2021
The branch main has been updated by kevans:
URL: https://cgit.FreeBSD.org/src/commit/?id=5487294d79f9ebe72a847d0855adb4df85e0d66e
commit 5487294d79f9ebe72a847d0855adb4df85e0d66e
Author: Kyle Evans <kevans at FreeBSD.org>
AuthorDate: 2021-09-29 21:48:20 +0000
Commit: Kyle Evans <kevans at FreeBSD.org>
CommitDate: 2021-10-01 04:55:17 +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.
---
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
More information about the dev-commits-src-main
mailing list