pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jaime Casanova <jcasanov@systemguards.com.ec>
Cc: pgsql-hackers@postgresql.org
Subject: Re: new regexp_*(text, text, int) functions crash
Date: Sat, 11 Sep 2021 14:42:42 -0400
Message-ID: <105911.1631385762@sss.pgh.pa.us> (raw)
In-Reply-To: <20210911180357.GA6870@ahch-to>
References: <20210911180357.GA6870@ahch-to>

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





view thread (2+ messages)

Message-ID: <105911.1631385762@sss.pgh.pa.us>
Permalink:  ../105911.1631385762@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/105911.1631385762@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jcasanov@systemguards.com.ec
  Subject: Re: new regexp_*(text, text, int) functions crash
  In-Reply-To: <105911.1631385762@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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