This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: question about regex
On 2020/1/21 3:25, Paul Eggert wrote:
> On 1/20/20 2:41 AM, liqingqing wrote:
>> it's not a easy work to fix bug#24269 by modify the regex algorithm.
>> a possible way is that add a backtrack limit to avoid infinite loop.
>
> If there's an arbitrary backtrack limit, won't that cause the code to mishandle some regular expressions? That is, wouldn't an arbitrary limit cause the code to incorrectly fail to match in some cases? In some sense that would be worse than looping.
>
> Perhaps I am misunderstanding what you're proposing. If so, could you give more details about the proposal?
>
> .
Hello Paul, thanks for your explanation. yes you are right and I totally agree with your opinion.
The proposal is that I want to find a way to fix the bug#24269(infinite loop bugs).
and I think it's very hard for me to totally fix it. So, I send this email and ask for all your suggestions.