This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug regex/1057] New: regcomp.c assumes wchar_t can represent WEOF
- From: "eggert at gnu dot org" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 8 Jul 2005 17:55:01 -0000
- Subject: [Bug regex/1057] New: regcomp.c assumes wchar_t can represent WEOF
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
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.