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

Started by Jaime Casanovaover 4 years ago2 messages
#1Jaime Casanova
jcasanov@systemguards.com.ec

Hi,

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);

--
Jaime Casanova
Director de Servicios Profesionales
SystemGuards - Consultores de PostgreSQL

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Jaime Casanova (#1)
Re: new regexp_*(text, text, int) functions crash

Jaime Casanova <jcasanov@systemguards.com.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