bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/3] sed: Fix infinite loop on some false multi-byte matches


From: Stanislav Brabec
Subject: Re: [PATCH 1/3] sed: Fix infinite loop on some false multi-byte matches
Date: Mon, 27 Feb 2012 17:04:37 +0100

On Sun Feb 12, 2012 at 09:30 PM +0200 Aharon Robbins wrote:
> I have been looking at this and trying to see if I can reproduce
> it in gawk. I can't seem too. Would someone who understands the
> issue supply me with a test awk program that either shows that
> gawk has this bug, or doesn't?

Here is a simple AWK reproducer. There should be no match in the whole
input file. (Replacements use fastmap, pattern match of lines does not.)

Please verify that your mail reader did not mangle EUC-JP strings in the
attachment. The strings are equal as those in sed and C example.

-- 
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o.                          e-mail: address@hidden
Lihovarská 1060/12                            tel: +49 911 7405384547
190 00 Praha 9                                  fax: +420 284 028 951
Czech Republic                                    http://www.suse.cz/

Attachment: test-awk.sh
Description: application/shellscript


reply via email to

[Prev in Thread] Current Thread [Next in Thread]