Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/sys/arch/i386/i386 Pull up following revision(s) (request...
details: https://anonhg.NetBSD.org/src/rev/6b3d80f0d26b
branches: netbsd-8
changeset: 435165:6b3d80f0d26b
user: martin <martin%NetBSD.org@localhost>
date: Tue Jul 31 15:57:11 2018 +0000
description:
Pull up following revision(s) (requested by taca in ticket #945):
sys/arch/i386/i386/trap.c: revision 1.290
Don't use a const variable as an array size, because it is not a
constant expression and will cause the array to needlessly become a
variable-size one. Fixes "error: stack protector not protecting local
variables: variable length buffer [-Werror=stack-protector]" when
building i386 with MKDEBUG=YES -V COPTS="-g".
diffstat:
sys/arch/i386/i386/trap.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r a83b69b68cbf -r 6b3d80f0d26b sys/arch/i386/i386/trap.c
--- a/sys/arch/i386/i386/trap.c Fri Jul 27 10:55:40 2018 +0000
+++ b/sys/arch/i386/i386/trap.c Tue Jul 31 15:57:11 2018 +0000
@@ -1,5 +1,5 @@
-/* $NetBSD: trap.c,v 1.287.6.1 2017/07/05 19:59:29 snj Exp $ */
+/* $NetBSD: trap.c,v 1.287.6.2 2018/07/31 15:57:11 martin Exp $ */
/*-
* Copyright (c) 1998, 2000, 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -69,7 +69,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.287.6.1 2017/07/05 19:59:29 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.287.6.2 2018/07/31 15:57:11 martin Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -422,7 +422,7 @@
{
static const char lcall[7] = { 0x9a, 0, 0, 0, 0, 7, 0 };
const size_t sz = sizeof(lcall);
- char tmp[sz];
+ char tmp[sizeof(lcall)];
/* Check for the osyscall lcall instruction. */
if (frame->tf_eip < VM_MAXUSER_ADDRESS - sz &&
Home |
Main Index |
Thread Index |
Old Index