use fputws_unlocked
Rich Felker
dalias at aerifal.cx
Fri May 27 00:24:54 UTC 2011
On Thu, May 26, 2011 at 11:47:39PM +0200, MirkoVogt wrote:
> >Are you sure you haven't corrupted the FILE object?
>
> I am not quite sure how I might accomplish this, the FILE object is
> a temporary on stack fake structure with f.__filedes set to
> __STDIO_STREAM_FAKE_VSWPRINTF_FILEDES in libc/stdio/vswprintf.c. You
> noticed the 's' in
>
> #7 0x4116ecfc in vswprintf () from /lib/libc.so.0
>
> of my stack dump? No files involved.
Indeed, you are right. I agree that using the unlocked version would
be nicer anyway. But you seem to have found a bug in uClibc's locking
which should also be examined and fixed, because surely it will break
other things too.
Rich
More information about the uClibc
mailing list