This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug localedata/17596] mblen() does not return -1 for invalid input
- From: "raji at linux dot vnet.ibm.com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 20 Nov 2014 17:10:29 +0000
- Subject: [Bug localedata/17596] mblen() does not return -1 for invalid input
- Auto-submitted: auto-generated
- References: <bug-17596-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=17596
Rajalakshmi <raji at linux dot vnet.ibm.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Rajalakshmi <raji at linux dot vnet.ibm.com> ---
Some of the functions to calculate the length like strnlen,wcsnlen,wcswidth
return zero when input size n is passed as 0. Considering that, mblen(str, 0)
returning 0 seems to be valid.
--
You are receiving this mail because:
You are on the CC list for the bug.