This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/15381] open_memstream() does not initialize wide character struct info, leading to a crash


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]