pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feednew regexp_*(text, text, int) functions crash
2+ messages / 2 participants
[nested] [flat]
* new regexp_*(text, text, int) functions crash
@ 2021-09-11 18:03 Jaime Casanova <jcasanov@systemguards.com.ec>
2021-09-11 18:42 ` Re: new regexp_*(text, text, int) functions crash Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: Jaime Casanova @ 2021-09-11 18:03 UTC (permalink / raw)
To: pgsql-hackers
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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: new regexp_*(text, text, int) functions crash
2021-09-11 18:03 new regexp_*(text, text, int) functions crash Jaime Casanova <jcasanov@systemguards.com.ec>
@ 2021-09-11 18:42 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2021-09-11 18:42 UTC (permalink / raw)
To: Jaime Casanova <jcasanov@systemguards.com.ec>; +Cc: pgsql-hackers
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2021-09-11 18:42 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-09-11 18:03 new regexp_*(text, text, int) functions crash Jaime Casanova <jcasanov@systemguards.com.ec>
2021-09-11 18:42 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox