This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug regex/1057] New: regcomp.c assumes wchar_t can represent WEOF


In a couple of places, regcomp.c stores the result of btowc into
a wchar_t value.  This mishandles the case where btowc returns
WEOF. This problem occurs on hosts where wchar_t cannot represent
WEOF.  It was discovered by someone who tried to compile coreutils
(which uses this glibc code outside of glibc) on a host where
wchar_t is 2 bytes and wint_t is 4 bytes.

I'll attach a patch.

-- 
           Summary: regcomp.c assumes wchar_t can represent WEOF
           Product: glibc
           Version: 2.3.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: regex
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: eggert at gnu dot org
                CC: glibc-bugs-regex at sources dot redhat dot com,glibc-
                    bugs at sources dot redhat dot com


http://sources.redhat.com/bugzilla/show_bug.cgi?id=1057

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]