Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/sparc64/gen Add another compile time assert: c...
details: https://anonhg.NetBSD.org/src/rev/f8191a560b6e
branches: trunk
changeset: 764682:f8191a560b6e
user: martin <martin%NetBSD.org@localhost>
date: Sat Apr 30 23:30:27 2011 +0000
description:
Add another compile time assert: catch overflows of jmp_buf
diffstat:
lib/libc/arch/sparc64/gen/longjmp.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r fb5deb919c60 -r f8191a560b6e lib/libc/arch/sparc64/gen/longjmp.c
--- a/lib/libc/arch/sparc64/gen/longjmp.c Sat Apr 30 19:43:17 2011 +0000
+++ b/lib/libc/arch/sparc64/gen/longjmp.c Sat Apr 30 23:30:27 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: longjmp.c,v 1.4 2011/04/30 19:39:38 martin Exp $ */
+/* $NetBSD: longjmp.c,v 1.5 2011/04/30 23:30:27 martin Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -56,6 +56,8 @@
*/
__CTASSERT(0x68 == offsetof(__jmp_buf_regs_t,save_mask)+
sizeof(struct sigcontext));
+__CTASSERT(sizeof(jmp_buf) >= sizeof(__jmp_buf_regs_t) +
+ sizeof(struct sigcontext));
void
__longjmp14(jmp_buf env, int val)
Home |
Main Index |
Thread Index |
Old Index