Red Hat Bugzilla – Bug 116606
mbtowc() doesn't like large SIZE parameter values
Last modified: 2007-11-30 17:10:37 EST
Version-Release number of selected component (if applicable):
Steps to Reproduce:
setlocale (LC_CTYPE, "en_US.UTF-8");
printf ("%d\n", mbtowc (&wc, "\xc3\xa1", MB_LEN_MAX));
printf ("%d\n", mbtowc (&wc, "\xc3\xa1", SIZE_MAX));
This looks fixed in glibc-2.3.3-18.
An errata has been issued which should help the problem described in this bug report.
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen
this bug report if the solution does not work for you.