[Top][All Lists]
[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: |
Paolo Bonzini |
Subject: |
Re: [PATCH 1/3] sed: Fix infinite loop on some false multi-byte matches |
Date: |
Wed, 15 Feb 2012 17:45:25 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20120131 Thunderbird/10.0 |
On 02/15/2012 05:29 PM, Stanislav Brabec wrote:
> int
> main (void)
> {
> struct re_pattern_buffer r;
> struct re_registers s;
> int e, rc = 0;
> if (setlocale (LC_CTYPE, "ja_JP.EUC-JP") == NULL)
> {
> puts ("setlocale failed");
> return 1;
> }
> memset (&r, 0, sizeof (r));
> memset (&s, 0, sizeof (s));
> re_set_syntax (RE_SYNTAX_POSIX_BASIC | RE_NO_POSIX_BACKTRACKING);
One difference is that sed sets RE_NO_SUB here.
I didn't try to run the program with the change, thouhg.
Paolo