Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/sys no need for alloca() (breaks SSP)



details:   https://anonhg.NetBSD.org/src/rev/de502e5cbc9f
branches:  trunk
changeset: 1009735:de502e5cbc9f
user:      christos <christos%NetBSD.org@localhost>
date:      Fri May 01 21:35:30 2020 +0000

description:
no need for alloca() (breaks SSP)

diffstat:

 tests/lib/libc/sys/t_sigaltstack.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f7fffc409e24 -r de502e5cbc9f tests/lib/libc/sys/t_sigaltstack.c
--- a/tests/lib/libc/sys/t_sigaltstack.c        Fri May 01 19:59:47 2020 +0000
+++ b/tests/lib/libc/sys/t_sigaltstack.c        Fri May 01 21:35:30 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_sigaltstack.c,v 1.1 2020/04/30 11:03:29 ryo Exp $ */
+/* $NetBSD: t_sigaltstack.c,v 1.2 2020/05/01 21:35:30 christos Exp $ */
 
 /*-
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_sigaltstack.c,v 1.1 2020/04/30 11:03:29 ryo Exp $");
+__RCSID("$NetBSD: t_sigaltstack.c,v 1.2 2020/05/01 21:35:30 christos Exp $");
 
 #include <signal.h>
 #include <stdbool.h>
@@ -43,7 +43,7 @@
 static void
 handler(int signo __unused)
 {
-       char *sp = alloca(128);
+       char sp[128];
 
        handler_called = true;
 



Home | Main Index | Thread Index | Old Index