This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/15381] open_memstream() does not initialize wide character struct info, leading to a crash
- From: "bugdal at aerifal dot cx" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sun, 21 Apr 2013 02:22:29 +0000
- Subject: [Bug libc/15381] open_memstream() does not initialize wide character struct info, leading to a crash
- Auto-submitted: auto-generated
- References: <bug-15381-131 at http dot sourceware dot org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=15381
Rich Felker <bugdal at aerifal dot cx> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugdal at aerifal dot cx
--- Comment #1 from Rich Felker <bugdal at aerifal dot cx> 2013-04-21 02:22:29 UTC ---
Not exactly a bug. The stream returned by open_memstream is byte-oriented, so
calling any wide character stdio function on it invokes undefined behavior.
Similarly, open_wmemstream returns a wide-oriented stream, so calling any
byte-oriented stdio function on it would invoke undefined behavior.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.