From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30332 invoked by alias); 8 Jul 2005 17:55:04 -0000 Mailing-List: contact glibc-bugs-regex-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-regex-owner@sources.redhat.com Received: (qmail 30313 invoked by uid 48); 8 Jul 2005 17:55:01 -0000 Date: Fri, 08 Jul 2005 17:55:00 -0000 From: "eggert at gnu dot org" To: glibc-bugs-regex@sources.redhat.com Message-ID: <20050708175459.1057.eggert@gnu.org> Reply-To: sourceware-bugzilla@sources.redhat.com Subject: [Bug regex/1057] New: regcomp.c assumes wchar_t can represent WEOF X-Bugzilla-Reason: CC X-SW-Source: 2005-07/txt/msg00002.txt.bz2 List-Id: 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.