Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 116606 - mbtowc() doesn't like large SIZE parameter values
mbtowc() doesn't like large SIZE parameter values
Product: Fedora
Classification: Fedora
Component: glibc (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2004-02-23 13:55 EST by Miloslav Trmac
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-04-08 08:31:50 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2004:143 normal SHIPPED_LIVE GNU C Library bugfix update 2004-05-11 00:00:00 EDT
Red Hat Product Errata RHBA-2004:212 normal SHIPPED_LIVE Updated shadow-utils package available 2004-05-11 00:00:00 EDT
Red Hat Product Errata RHBA-2004:213 normal SHIPPED_LIVE Updated ypserv package available 2004-05-11 00:00:00 EDT

  None (edit)
Description Miloslav Trmac 2004-02-23 13:55:58 EST
Version-Release number of selected component (if applicable):

Steps to Reproduce:
#include <limits.h>
#include <locale.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>

main (void)
  wchar_t wc;

  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));
  return EXIT_SUCCESS;

Actual results:

Expected results:
Comment 1 Miloslav Trmac 2004-04-08 08:31:50 EDT
This looks fixed in glibc-2.3.3-18.
Comment 2 John Flanagan 2004-05-11 21:28:25 EDT
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.


Note You need to log in before you can comment on or make changes to this bug.