This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/4438] vfprintf() segfault with multibyte string and long precision
- From: "madcoder at debian dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 30 Apr 2007 12:56:33 -0000
- Subject: [Bug libc/4438] vfprintf() segfault with multibyte string and long precision
- References: <20070430134618.4438.victor.stinner@inl.fr>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From madcoder at debian dot org 2007-04-30 13:56 -------
Created an attachment (id=1742)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=1742&action=view)
fix for that bug
FWIW here is a patch that should fix it. As you can guess, 'ignore' is an
ignored variable, hence __mbsnrtowcs is only used for mbs validation. So
passing NULL will work.
(yes I know that if passing NULL __mbsnrtowcs does not respect 'len' but it's
not relevant here, as we want to check 'spec' bytes from the mb sequence, and
the wchar_t buffer is made on purpose of 'spec' wchar_t's, so the 'len'
stopping condition will never be triggered, hence passing NULL as a dst will
work).
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4438
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.