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.24-112-g326e288
- From: fw at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 2 Sep 2016 13:57:02 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.24-112-g326e288
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 326e288b1e43832c138e5eb4521157d8aacef5b7 (commit)
from 2bad840e9d4b3e714b4f20ad6b46a76e7be1d8fe (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=326e288b1e43832c138e5eb4521157d8aacef5b7
commit 326e288b1e43832c138e5eb4521157d8aacef5b7
Author: Florian Weimer <fweimer@redhat.com>
Date: Fri Sep 2 12:56:50 2016 +0200
vfprintf: Avoid creating a VLA which complicates stack management
diff --git a/ChangeLog b/ChangeLog
index fa9394d..ef10db0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-09-02 Florian Weimer <fweimer@redhat.com>
+
+ * stdio-common/vfprintf.c (process_string_arg): Use MB_LEN_MAX
+ instead of MB_CUR_MAX to avoid variable-length array.
+
2016-09-01 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
* math/Makefile (libm-calls): Remove k_rem_pio2F.
diff --git a/stdio-common/vfprintf.c b/stdio-common/vfprintf.c
index 6e428e9..13ab47a 100644
--- a/stdio-common/vfprintf.c
+++ b/stdio-common/vfprintf.c
@@ -1082,7 +1082,7 @@ static const uint8_t jump_table[] =
LABEL (form_wcharacter): \
{ \
/* Wide character. */ \
- char buf[MB_CUR_MAX]; \
+ char buf[MB_LEN_MAX]; \
mbstate_t mbstate; \
size_t len; \
\
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
stdio-common/vfprintf.c | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources