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.17-730-gbae143d
- From: neleai at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 24 May 2013 06:41:01 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.17-730-gbae143d
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 bae143d2702e5ca1265c55b06072afba01bfc07a (commit)
from d4ea44a04b931ead64788f61a65697b8cd158b81 (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=bae143d2702e5ca1265c55b06072afba01bfc07a
commit bae143d2702e5ca1265c55b06072afba01bfc07a
Author: Ondrej Bilka <neleai@seznam.cz>
Date: Fri May 24 08:34:10 2013 +0200
Initialize wide struct info.
Fixes 15381.
Using wide character function is on byte oriented memstream is undefined
behaviour. This behaviour was masked by not initializing wide struct
info. We now initialize it to cause a predictable crash.
diff --git a/ChangeLog b/ChangeLog
index a0387bd..8fe6c2a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-05-24 OndÅ?ej BÃlka <neleai@seznam.cz>
+
+ [BZ #15381]
+ * libio/genops.c (_IO_no_init): Initialize wide struct info.
+
2013-05-23 Edjunior Machado <emachado@linux.vnet.ibm.com>
[BZ #14894]
diff --git a/NEWS b/NEWS
index 152e7a4..1d0d4f2 100644
--- a/NEWS
+++ b/NEWS
@@ -16,9 +16,9 @@ Version 2.18
15007, 15014, 15020, 15023, 15036, 15054, 15055, 15062, 15078, 15084,
15085, 15086, 15160, 15214, 15221, 15232, 15234, 15283, 15285, 15287,
15304, 15305, 15307, 15309, 15327, 15330, 15335, 15336, 15337, 15339,
- 15342, 15346, 15359, 15361, 15366, 15380, 15394, 15395, 15405, 15406,
- 15409, 15416, 15418, 15419, 15423, 15424, 15426, 15429, 15441, 15442,
- 15448, 15480, 15485, 15488, 15490, 15493, 15497, 15506.
+ 15342, 15346, 15359, 15361, 15366, 15380, 15381, 15394, 15395, 15405,
+ 15406, 15409, 15416, 15418, 15419, 15423, 15424, 15426, 15429, 15441,
+ 15442, 15448, 15480, 15485, 15488, 15490, 15493, 15497, 15506.
* CVE-2013-0242 Buffer overrun in regexp matcher has been fixed (Bugzilla
#15078).
diff --git a/libio/genops.c b/libio/genops.c
index 390d8d2..e5c5d5c 100644
--- a/libio/genops.c
+++ b/libio/genops.c
@@ -661,6 +661,10 @@ _IO_no_init (fp, flags, orientation, wd, jmp)
fp->_wide_data->_wide_vtable = jmp;
}
+ else
+ /* Cause predictable crash when a wide function is called on a byte
+ stream. */
+ fp->_wide_data = (struct _IO_wide_data *) -1L;
#endif
fp->_freeres_list = NULL;
}
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
NEWS | 6 +++---
libio/genops.c | 4 ++++
3 files changed, 12 insertions(+), 3 deletions(-)
hooks/post-receive
--
GNU C Library master sources