[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Probably bug in lib/regexec.c with possessive quantifier
From: |
Dmitry V. Levin |
Subject: |
Re: Probably bug in lib/regexec.c with possessive quantifier |
Date: |
Tue, 25 May 2021 16:55:30 +0300 |
Hi,
On Tue, May 25, 2021 at 12:33:06PM +0300, Egor Ignatov wrote:
> Hi,
>
> So, after updating gnulib, some test cases in
> augeas(https://github.com/hercules-team/augeas) related to regex started
> to fail.
> I found a commit in gnulib that introduced this behavior:
>
> 70b673eb768eb7288639cbbe4642c2912b7d204e
>
> I simplified the bug case to the following:
>
> /re_syntax_options = RE_NO_BK_PARENS;
> pattern = "(.*+)";//
I'm pretty sure this is the same bug I reported a month ago:
https://lists.gnu.org/archive/html/bug-gnulib/2021-04/msg00134.html
The workaround is replacing "(.*+)" with either "(.*)" or "(.+)" depending
on what's appropriate.
--
ldv