From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26346 invoked by alias); 12 May 2004 12:03:45 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 26322 invoked from network); 12 May 2004 12:03:45 -0000 Received: from unknown (HELO sunsite.ms.mff.cuni.cz) (195.113.15.26) by sourceware.org with SMTP; 12 May 2004 12:03:45 -0000 Received: from sunsite.ms.mff.cuni.cz (sunsite.mff.cuni.cz [127.0.0.1]) by sunsite.ms.mff.cuni.cz (8.12.8/8.12.8) with ESMTP id i4C9p63j017550; Wed, 12 May 2004 11:51:06 +0200 Received: (from jakub@localhost) by sunsite.ms.mff.cuni.cz (8.12.8/8.12.8/Submit) id i4C9p5KG017548; Wed, 12 May 2004 11:51:05 +0200 Date: Wed, 12 May 2004 12:03:00 -0000 From: Jakub Jelinek To: Andreas Schwab Cc: libc-hacker@sources.redhat.com Subject: Re: Fix regexp compiler with translation table Message-ID: <20040512095105.GZ5191@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-SW-Source: 2004-05/txt/msg00024.txt.bz2 On Wed, May 12, 2004 at 01:50:34PM +0200, Andreas Schwab wrote: > build_wcs_buffer didn't set mbs when a translation table is used. This > can result in all kinds of random behaviour during parsing due to use of > uninitialized memory. > > 2004-05-12 Andreas Schwab > > * posix/regex_internal.c (build_wcs_buffer): Also set pstr->mbs > when translating. Do you have a testcase? It would be greatly appreciated. Jakub