Fix regexp compiler with translation table

Jakub Jelinek jakub@redhat.com
Wed May 12 12:03:00 GMT 2004


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  <schwab@suse.de>
> 
> 	* posix/regex_internal.c (build_wcs_buffer): Also set pstr->mbs
> 	when translating.

Do you have a testcase?  It would be greatly appreciated.

	Jakub



More information about the Libc-hacker mailing list