[Bug 1471] New: mbrtowc does not set output wchar when converting null char
bugzilla at busybox.net
bugzilla at busybox.net
Thu Apr 1 03:29:01 UTC 2010
https://bugs.busybox.net/show_bug.cgi?id=1471
Host: i386-pc-linux-uclibc
Target: i386-pc-linux-uclibc
Build: i386-pc-linux-uclibc
Summary: mbrtowc does not set output wchar when converting null
char
Product: uClibc
Version: 0.9.30.3
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Locales
AssignedTo: unassigned at uclibc.org
ReportedBy: michael at talamasca.ocis.net
CC: uclibc-cvs at uclibc.org
Estimated Hours: 0.0
Created an attachment (id=1441)
--> (https://bugs.busybox.net/attachment.cgi?id=1441)
Test for broken mbrtowc
The standards require mbrtowc to store an output value in the provided wchar_t
pointer in all non-error conditions. But uClibc does not do this when
converting the terminating zero of a string, instead leaving whatever garbage
was previously there alone.
This causes GNU tar 1.23 to assertion-fail in some cases.
A simple demonstration is attached.
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the uClibc-cvs
mailing list