From 905dbd4384ef74bf579dbb407bd8cb2b9b4205ef Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Tue, 27 Sep 2011 20:44:51 +0000 Subject: Make struct label_t large enough for the kernel setjmp() purposes. Found after deraadt@ and jsing@ noticed hppa64 label_t was too short; amazing this did not get noticed earlier. --- sys/arch/sparc/include/_types.h | 4 ++-- sys/arch/sparc64/include/_types.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/sparc/include/_types.h b/sys/arch/sparc/include/_types.h index 8185af96b71..7b5454f27da 100644 --- a/sys/arch/sparc/include/_types.h +++ b/sys/arch/sparc/include/_types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: _types.h,v 1.14 2011/09/08 03:40:32 guenther Exp $ */ +/* $OpenBSD: _types.h,v 1.15 2011/09/27 20:44:50 miod Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -37,7 +37,7 @@ #if defined(_KERNEL) typedef struct label_t { - int val[2]; + int val[3]; } label_t; #endif diff --git a/sys/arch/sparc64/include/_types.h b/sys/arch/sparc64/include/_types.h index fad34490b9e..332bf6bd4bf 100644 --- a/sys/arch/sparc64/include/_types.h +++ b/sys/arch/sparc64/include/_types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: _types.h,v 1.13 2011/09/08 03:40:32 guenther Exp $ */ +/* $OpenBSD: _types.h,v 1.14 2011/09/27 20:44:50 miod Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -37,7 +37,7 @@ #if defined(_KERNEL) typedef struct label_t { - int val[2]; + long val[2]; } label_t; #endif -- cgit v1.2.3