public inbox for glibc-bugs-regex@sourceware.org
help / color / mirror / Atom feed
* [Bug regex/1057] New: regcomp.c assumes wchar_t can represent WEOF
@ 2005-07-08 17:55 eggert at gnu dot org
2005-07-08 17:56 ` [Bug regex/1057] " eggert at gnu dot org
2005-09-06 16:43 ` drepper at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: eggert at gnu dot org @ 2005-07-08 17:55 UTC (permalink / raw)
To: glibc-bugs-regex
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug regex/1057] regcomp.c assumes wchar_t can represent WEOF
2005-07-08 17:55 [Bug regex/1057] New: regcomp.c assumes wchar_t can represent WEOF eggert at gnu dot org
@ 2005-07-08 17:56 ` eggert at gnu dot org
2005-09-06 16:43 ` drepper at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: eggert at gnu dot org @ 2005-07-08 17:56 UTC (permalink / raw)
To: glibc-bugs-regex
------- Additional Comments From eggert at gnu dot org 2005-07-08 17:56 -------
Created an attachment (id=547)
--> (http://sources.redhat.com/bugzilla/attachment.cgi?id=547&action=view)
patch regcomp to not assume WEOF fits in wchar_t
--
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug regex/1057] regcomp.c assumes wchar_t can represent WEOF
2005-07-08 17:55 [Bug regex/1057] New: regcomp.c assumes wchar_t can represent WEOF eggert at gnu dot org
2005-07-08 17:56 ` [Bug regex/1057] " eggert at gnu dot org
@ 2005-09-06 16:43 ` drepper at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: drepper at redhat dot com @ 2005-09-06 16:43 UTC (permalink / raw)
To: glibc-bugs-regex
------- Additional Comments From drepper at redhat dot com 2005-09-06 16:43 -------
Applied to the trunk.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sourceware.org/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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-09-06 16:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-08 17:55 [Bug regex/1057] New: regcomp.c assumes wchar_t can represent WEOF eggert at gnu dot org
2005-07-08 17:56 ` [Bug regex/1057] " eggert at gnu dot org
2005-09-06 16:43 ` drepper at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).