Re: new regexp_*(text, text, int) functions crash

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jaime Casanova <jcasanov(at)systemguards(dot)com(dot)ec>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: new regexp_*(text, text, int) functions crash
Date: 2021-09-11 18:42:42
Message-ID: 105911.1631385762@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jaime Casanova <jcasanov(at)systemguards(dot)com(dot)ec> writes:
> BTW, this only happens when the third parameter is large. Here is an
> example that consistently crash here:
> select regexp_count('jaime.casanova', 'valid', 102481);

Hah ... pg_regexec has never had a check that the search start position
is sane. Will fix.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Artur Zakirov 2021-09-11 19:55:16 Re: BUG #15293: Stored Procedure Triggered by Logical Replication is Unable to use Notification Events
Previous Message Tom Lane 2021-09-11 18:28:47 Re: Added missing invalidations for all tables publication