[RFC][PATCH]BZ#2337 Fix for spurious free of user buffer on fclose with wide char orientation.

Ryan S. Arnold rsa@us.ibm.com
Fri Oct 6 15:24:00 GMT 2006


RFC regarding bugzilla 2337 -libio in wide mode deallocates user
supplied buffer:

http://sources.redhat.com/bugzilla/show_bug.cgi?id=2337#c4

Please comment on the attached patch, which is also included in the
bugzilla.

I have an orthogonal concern.  I'm not sure the _IO_wsetb() function
should be setting/unsetting the _IO_USER_BUF flag since wide-char
oriented IO operations don't make use of the user supplied buffer
(provided via setvbuf).

Ryan S. Arnold
IBM Linux Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libio.patch
Type: text/x-patch
Size: 3489 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20061006/7c3b95e7/attachment.bin>


More information about the Libc-alpha mailing list