This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.28.9000-161-gf841c97
- From: schwab at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 27 Sep 2018 10:32:03 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.28.9000-161-gf841c97
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via f841c97e515a1673485a2b12b3c280073d737890 (commit)
from 6ca8284e7a522ce3cdc9fdd2e73795c753890634 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=f841c97e515a1673485a2b12b3c280073d737890
commit f841c97e515a1673485a2b12b3c280073d737890
Author: Andreas Schwab <schwab@suse.de>
Date: Thu Sep 27 11:12:13 2018 +0200
Fix stack overflow in tst-setcontext9 (bug 23717)
The function f1a, executed on a stack of size 32k, allocates an object of
size 32k on the stack. Make the stack variables static to reduce
excessive stack usage.
diff --git a/ChangeLog b/ChangeLog
index 85f8e09..a5a64da 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-09-27 Andreas Schwab <schwab@suse.de>
+
+ [BZ #23717]
+ * stdlib/tst-setcontext9.c (f1a): Make st2 static.
+ (do_test): Make st1 static.
+
2018-09-26 Andreas Schwab <schwab@suse.de>
[BZ #23707]
diff --git a/stdlib/tst-setcontext9.c b/stdlib/tst-setcontext9.c
index db83557..0099282 100644
--- a/stdlib/tst-setcontext9.c
+++ b/stdlib/tst-setcontext9.c
@@ -58,7 +58,7 @@ f1b (void)
static void
f1a (void)
{
- char st2[32768];
+ static char st2[32768];
puts ("start f1a");
if (getcontext (&ctx[2]) != 0)
{
@@ -93,7 +93,7 @@ f1a (void)
static int
do_test (void)
{
- char st1[32768];
+ static char st1[32768];
puts ("making contexts");
if (getcontext (&ctx[0]) != 0)
{
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
stdlib/tst-setcontext9.c | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
hooks/post-receive
--
GNU C Library master sources