Re: Forwarded: Segmentation Fault via recursive loop in Gawk

2024-03-20 Thread Paul Eggert
On 3/20/24 20:57, arn...@skeeve.com wrote: Note that I said EREs, which don't have to provide backreferences. Ah, sorry, I missed that. Thanks for correcting me. In that case there should be a polynomial-time solution.

Re: Forwarded: Segmentation Fault via recursive loop in Gawk

2024-03-20 Thread arnold
Note that I said EREs, which don't have to provide backreferences. Arnold Paul Eggert wrote: > On 3/20/24 01:40, arn...@skeeve.com wrote: > > It's possible to write a POSIX compliant matcher for EREs that doesn't > > have such problems; I know someone doing it. > > I think matching POSIX regula

Re: Forwarded: Segmentation Fault via recursive loop in Gawk

2024-03-20 Thread Paul Eggert
On 3/20/24 01:40, arn...@skeeve.com wrote: It's possible to write a POSIX compliant matcher for EREs that doesn't have such problems; I know someone doing it. I think matching POSIX regular expressions in polynomial time is equivalent to proving P=NP, i.e., you'll win the Turing Award if you

Re: Forwarded: Segmentation Fault via recursive loop in Gawk

2024-03-20 Thread arnold
Hi. Paul Eggert wrote: > In glibc (and Gnulib) the regular-expression code has long been > maintained under the philosophy that the code cannot handle arbitrary > regular expressions. Any code that lets the user specify an arbitrary > regular expression is suspect, and this includes Awk scripts

Re: Forwarded: Segmentation Fault via recursive loop in Gawk

2024-03-19 Thread Bruno Haible
Paul Eggert wrote: > In glibc (and Gnulib) the regular-expression code has long been > maintained under the philosophy that the code cannot handle arbitrary > regular expressions. Any code that lets the user specify an arbitrary > regular expression is suspect, and this includes Awk scripts. (Th

Re: Forwarded: Segmentation Fault via recursive loop in Gawk

2024-03-19 Thread Paul Eggert
In glibc (and Gnulib) the regular-expression code has long been maintained under the philosophy that the code cannot handle arbitrary regular expressions. Any code that lets the user specify an arbitrary regular expression is suspect, and this includes Awk scripts. (This is also true for C libr

Forwarded: Segmentation Fault via recursive loop in Gawk

2024-03-19 Thread arnold
Hello. Please see this report sent to the gawk list concerning regcomp.c. I have attached his "POCFILE". Thanks, Arnold > From: ttfish > Date: Tue, 19 Mar 2024 21:48:34 +0800 > Subject: Segmentation Fault via recursive loop in Gawk > To: bug-g...@gnu.org > Cc: secur...@gnu.org > > Content-Type